Created
October 17, 2010 18:20
-
-
Save halbtuerke/631096 to your computer and use it in GitHub Desktop.
Join multiple *.flv files with ffmpeg
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
To use this script just copy all flv files into a directory and call the script via: | |
"join-flvs.sh *.flv" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
for file in $@ | |
do | |
filenames="$filenames -i $file " | |
done | |
ffmpeg $filenames -vcodec copy -acodec copy out.flv |
Don't work.
For working cmd line, See:
http://ffmpeg.org/trac/ffmpeg/wiki/How%20to%20concatenate%20(join,%20merge)%20media%20files
Apart from ffmpeg, there is another easier way to jon FLV files at: http://www.faasoft.com/articles/join-flv-files.html
It also applies to join MP4, MOV, AVI, WMV, MKV, MP3, WAV, etc.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What about
cat $@ | ffmpeg -i - -vcodec copy -acodec copy out.flv