花落阳关 Posted December 8, 2017 Report Share Posted December 8, 2017 Hi! Now I am writing a real time acquire and save to video file program.But 1080*720, 30 fps, it generates a lot of video data via the camera, about 20s for 1G bits. H.264 is a open source encode, how can I use the encoder to convert avi to mp4 or directly generate a mp4 file, has anyone who had achieved the effect?Thanks! Quote Link to comment
bmoyer Posted December 8, 2017 Report Share Posted December 8, 2017 (edited) I use the Command Line Interface of Handbrake to allow LabVIEW to convert the .avi to .mp4 but I'm sure there are better ways. https://handbrake.fr/ Edited December 8, 2017 by bmoyer adding link. 1 Quote Link to comment
花落阳关 Posted December 9, 2017 Author Report Share Posted December 9, 2017 10 hours ago, bmoyer said: I use the Command Line Interface of Handbrake to allow LabVIEW to convert the .avi to .mp4 but I'm sure there are better ways. https://handbrake.fr/ Quote Link to comment
花落阳关 Posted December 9, 2017 Author Report Share Posted December 9, 2017 Thanks for your suggestion, but it is a exe file, cannot be used in the labview program, I need a H.264 dll file or a encapsulated function API for calling. And another question there is only one video type(avi format), if I had encapsulated a dll file, whether or not it must firstly generate a avi file, then convert to mp4. Or maybe I have to encapsulated there function(create mp4 flie, acquire mp4, and close mp4 file), it's very hard for me. Quote Link to comment
ensegre Posted December 9, 2017 Report Share Posted December 9, 2017 http://zone.ni.com/reference/en-XX/help/370281AD-01/imaqvision/imaq_avi2_create/ http://zone.ni.com/reference/en-XX/help/370281AD-01/imaqvision/imaq_avi2_get_codec_names/ Quote Link to comment
花落阳关 Posted December 11, 2017 Author Report Share Posted December 11, 2017 On 2017/12/10 at 1:04 AM, ensegre said: http://zone.ni.com/reference/en-XX/help/370281AD-01/imaqvision/imaq_avi2_create/ http://zone.ni.com/reference/en-XX/help/370281AD-01/imaqvision/imaq_avi2_get_codec_names/ Thanks, I know the two vi, but I had install a h.264 and FFMPEG encoder, but it can't be found in the system, I don't know what's wrong with the question. I had tried to compare the video size of many video encoder and investigated in the website, the result is h.264 encoder is the best, it offers the minimum size with guaranteeing image quality. So how can install the h.264 encoder and found it in the system? Quote Link to comment
bmoyer Posted December 13, 2017 Report Share Posted December 13, 2017 You can include HandBrakeCLI.exe in the installer of your application and make calls to the exe using the command line interface. Call HandBrake.vi Quote Link to comment
ShaunR Posted December 13, 2017 Report Share Posted December 13, 2017 (edited) 45 minutes ago, bmoyer said: You can include HandBrakeCLI.exe in the installer of your application and make calls to the exe using the command line interface. Call HandBrake.vi Many will not like the Handbrake licence. Edited December 13, 2017 by ShaunR Quote Link to comment
花落阳关 Posted December 14, 2017 Author Report Share Posted December 14, 2017 22 hours ago, bmoyer said: You can include HandBrakeCLI.exe in the installer of your application and make calls to the exe using the command line interface. Call HandBrake.vi Thanks, can you generate the vi as 2015 version, I can not open it. Quote Link to comment
bmoyer Posted December 14, 2017 Report Share Posted December 14, 2017 LV2011 in case others have the same difficulty. Call HandBrake.vi Quote Link to comment
花落阳关 Posted December 22, 2017 Author Report Share Posted December 22, 2017 On 2017/12/14 at 10:16 PM, bmoyer said: LV2011 in case others have the same difficulty. Call HandBrake.vi It does't work, I don't know why? Can you solve the problem, thanks! Call HandBrake (2).vi Quote Link to comment
bmoyer Posted January 2, 2018 Report Share Posted January 2, 2018 You need to call the command line interface version of Handbrake. HandBrakeCLI.exe Quote Link to comment
paul yang Posted May 16, 2022 Report Share Posted May 16, 2022 Hi, please share call handbrake.vi again 。 thanks. Quote Link to comment
Rolf Kalbermatter Posted May 16, 2022 Report Share Posted May 16, 2022 6 hours ago, paul yang said: Hi, please share call handbrake.vi again 。 thanks. It's attached in this message. And downloads just fine here. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.