using ffmpeg command line with python's subprocess module
iMath
redstone-cold at 163.com
Mon Dec 2 06:34:46 EST 2013
I have few wav files that I can use either of the following command line mentioned here
https://trac.ffmpeg.org/wiki/How%20to%20concatenate%20%28join,%20merge%29%20media%20files
to concatenate
ffmpeg -f concat -i <(for f in ./*.wav; do echo "file '$f'"; done) -c copy output.wav
ffmpeg -f concat -i <(printf "file '%s'\n" ./*.wav) -c copy output.wav
ffmpeg -f concat -i <(find . -name '*.wav' -printf "file '%p'\n") -c copy output.wav
anyone know how to convert either of them to work with python's subprocess module, it would be better if your solution is platform independent .
More information about the Python-list
mailing list