Nov-20-2024, 06:17 AM
The following FFMpeg command will import a text file to concatenate/join said file together:
Alternatively, the following bash terminal will pipe traversed files in a directory:
My question regards the first statement. Can I substitute
FFMpegs requies that 2 streams be specified, one for stdout, the other for stderr:
ffmpeg -f concat -safe 0 -i "list_Of_Videos.txt" -c copy "output.mp4"
Alternatively, the following bash terminal will pipe traversed files in a directory:
ffmpeg -f concat -i <( for f in *.wav; do echo "file '$(pwd)/$f'"; done ) output.wav
My question regards the first statement. Can I substitute
list_Of_Videos.txt
with a python array list variable, instead?FFMpegs requies that 2 streams be specified, one for stdout, the other for stderr:
process = subprocess.Popen(shlex.split(cmd), stdout=subprocess.PIPE, stderr=subprocess.STDOUT)I don't want to utilize the Python built-in FFMpeg wrapper, but instead looking to work with the separate/stand-alone FFMpeg program.