LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to combine video and audio into avi file

Solved!
Go to solution

I acquire video frame from my 1394 camera, and acquire sound from my computer microphone, that is good and done separately.

But I need to combine those two files( audio->wav, video->avi) into a single avi file in the run-time, which I can play the avi with sound with other players, like: windows media player.

Could someone please give me some hint? I asked NI support, but they cannot give me a good solution.

I found some companies sold the plugin, but I think that's not my option.

http://www.vitst.com
Virry Test & Control
LabVIEW Certified Developer
0 Kudos
Message 1 of 13
(8,949 Views)

One option is to just play the video and audio files in your program.  You can keep them in sync (though if they start together they should stay in sync).  You can control Windows Media Player using ActiveX to do this.

 

One other option (also using ActiveX) is to purchase Quicktime Pro (USD$30) and you can automate the combining of the files.

 

I am sure there are other ways  - these are just two that I have used before and had good results.

0 Kudos
Message 2 of 13
(8,932 Views)

Do you have the example code which using Quicktime Pro to combine them? 

I will really appreciate that.

http://www.vitst.com
Virry Test & Control
LabVIEW Certified Developer
0 Kudos
Message 3 of 13
(8,914 Views)

Sorry it's only part of a large application.  But ActiveX isn't too hard to figure out - documentation and choosing property nodes and invoking methods.

0 Kudos
Message 4 of 13
(8,904 Views)

Try VirtualDub.  You should be able to call it from LabVIEW using either command line or DLL calls (I have actually done neither).  It is the basis for many video editing applications.

0 Kudos
Message 5 of 13
(8,892 Views)

Do you have some examples in LabVIEW? 

 

http://www.vitst.com
Virry Test & Control
LabVIEW Certified Developer
0 Kudos
Message 6 of 13
(8,887 Views)

Unfortunately, no, since I have never done it.  A quick Google search did not reveal anything, either.

 

Another possibility is using ffmpeg from System Exec.  This may be easier, since ffmpeg was designed as a command line utility and VirtualDub was not.

 

I have not done this, either...

0 Kudos
Message 7 of 13
(8,860 Views)

DFGray

The Link of download page is not available now.

Do you have the file, and documentation?

Could you please send to my mailbox, thank you!

Qia.sky@gmail.com

http://www.vitst.com
Virry Test & Control
LabVIEW Certified Developer
0 Kudos
Message 8 of 13
(8,831 Views)
Solution
Accepted by topic author Qia.sky

Try this location.  The download (direct link) was working when I checked.

0 Kudos
Message 9 of 13
(8,823 Views)

Did you ever try it in Windows 64bit platform?

http://www.vitst.com
Virry Test & Control
LabVIEW Certified Developer
0 Kudos
Message 10 of 13
(8,798 Views)