How to extract audio from a video file using python? -


i want write python program extract audio video file (e.g. video.avi). there library it? , should start from? tried use pymedia, couldn't install on macosx(mountain lion).

edit: problem video.avi not available. writing on , adding frames every second. wanted write code in python video comes , extract audio , write file (e.g. audio.mp3, audio.wav). don't know if ffmpeg can wait video copied video.avi.

and cannot wait video copied , audio extraction. have comes.

i don't have complete solution, ffmpeg docs, looks ffmpeg can read incomplete file piping stdin. example docs:

cat test.wav | ffmpeg -i pipe:0 

if must use python, can call ffmpeg using subprocess.


Comments

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -