Jump to: navigation, search

Difference between revisions of "Autopano Video - Concatenate several mp4"

(FFMPEG method)
(FFMPEG method)
Line 6: Line 6:
 
  The concat demuxer was added to ffmpeg 1.1 . You can read about it in the [[http://ffmpeg.org/ffmpeg-formats.html#concat documentation]].
 
  The concat demuxer was added to ffmpeg 1.1 . You can read about it in the [[http://ffmpeg.org/ffmpeg-formats.html#concat documentation]].
 
  Instructions
 
  Instructions
  Create a file "mylist.txt" with all the files you want to have concatenated in the following form ( Lines starting with a dash are ignored ) :
+
  Create a file "Cam01.txt" with all the files you want to have concatenated in the following form ( Lines starting with a dash are ignored ):
# this is a comment
+
  # this is a comment
file '/path/to/file1'
+
  file '/path/to/cam'
file '/path/to/file2'
+
  file '/path/to/file2'<br>
 
  Note that these can be either relative or absolute paths. Then you can encode your files with:
 
  Note that these can be either relative or absolute paths. Then you can encode your files with:
  ffmpeg -f concat -i mylist.txt -c copy output
+
  ffmpeg -f concat -i Cam01.txt -c copy Cam01.mp4

Revision as of 16:29, 28 May 2013

FFMPEG method

    • Concat demuxer (We used that method on Gopro Hero3 black mp4 videos)
The concat demuxer was added to ffmpeg 1.1 . You can read about it in the [documentation].
Instructions
Create a file "Cam01.txt" with all the files you want to have concatenated in the following form ( Lines starting with a dash are ignored ):
 # this is a comment
 file '/path/to/cam'
 file '/path/to/file2'
Note that these can be either relative or absolute paths. Then you can encode your files with: ffmpeg -f concat -i Cam01.txt -c copy Cam01.mp4