Skip to content

Instantly share code, notes, and snippets.

@halbtuerke
Created October 17, 2010 18:20
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save halbtuerke/631096 to your computer and use it in GitHub Desktop.
Save halbtuerke/631096 to your computer and use it in GitHub Desktop.
Join multiple *.flv files with ffmpeg
To use this script just copy all flv files into a directory and call the script via:
"join-flvs.sh *.flv"
#!/bin/sh
for file in $@
do
filenames="$filenames -i $file "
done
ffmpeg $filenames -vcodec copy -acodec copy out.flv
@tokland
Copy link

tokland commented Mar 2, 2013

What about cat $@ | ffmpeg -i - -vcodec copy -acodec copy out.flv

@mozbugbox
Copy link

@kebralad
Copy link

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