Sometimes you download .flv files in parts e.g. Presentation_Part1.flv Presentation_Part2.flv but you would like to see the whole presentation using one file. After searching I found this thread on Ubuntuforums.
The forum post suggests to convert the .flv files to .mp4 files by using the following command:
$ for f in *.flv; do ffmpeg -i "$f" -vcodec copy -acodec copy "${f%.flv}.mp4"; done
By using the above command the 1.flv, 2.flv, 3.flv get converted to 1.mp4, 2.mp4, 3.mp4 etc.
The *.mp4 files get combined into test.mp4 by using following command:
$ MP4Box -add 1.mp4 -cat 2.mp4 -cat 3.mp4 -cat test.mp4
The forum post suggests to convert the .flv files to .mp4 files by using the following command:
$ for f in *.flv; do ffmpeg -i "$f" -vcodec copy -acodec copy "${f%.flv}.mp4"; done
By using the above command the 1.flv, 2.flv, 3.flv get converted to 1.mp4, 2.mp4, 3.mp4 etc.
The *.mp4 files get combined into test.mp4 by using following command:
$ MP4Box -add 1.mp4 -cat 2.mp4 -cat 3.mp4 -cat test.mp4
No comments:
Post a Comment