![]() Basic encoding using default formats (mpeg4 video and ac3 audio). It was suggested in ticket 5686 that the cat command could be used in cases where the file list is too long and the concat protocol works but the concat demuxer does not. To copy/passthrough a stream (audio or video) without reencoding it: ffmpeg -i video.wmv -map 0:3 -c:v libx264 -map 0:a -c:a copy video.mp4. ![]() I only worry about the limit on command length. First, you need to create a txt file with the names and paths of all the individual files that you want to concatenate. ![]() There are two steps to using this command. That is, they have the same height, width, pixel formats, codecs, etc. I don't mind using the concat protocol instead of the concat demuxer. paths in the concat demuxer input (you must provide the -safe 0 option to ffmpeg). You can concatenate these files using the concat demuxer ( documentation) easily if their properties match. Could this problem be caused by bad splitting of the ts files? ![]() I read in ticket 2801 that the concat demuxer needs the files to be split cleanly on keyframes. Running ffprobe -show_format -show_streams on both of the files and comparing the outputs shows only the following differences: I have tried the command without the +genpts flag as well, but there is no change in the resulting mkv.Ĭoncatenating the ts files with the concat protocol results in an mkv with the correct duration and no pauses in the picture during playback.įfmpeg -fflags +genpts -i "concat:$file_list" -c copy output.mkv Also, the picture periodically freezes for a very small fraction of a second, but I don't detect any pause in the audio I suspect these stutters are the source of the extra 8 seconds. ![]() Example for now necessary input via pipe protocol: file file:input01.mp4 instead of the old file input01.mp4. The result is a playable mkv, but the duration is 8 seconds longer than the duration of the original ts stream. The piped input needs to specify both the concat file and the protocol file: in the concat code. I concatenate some ts files with the concat demuxer and create a mkv file using stream copying with the following command:įfmpeg -f concat -safe 0 -fflags +genpts -i file_list.txt -c copy output.mkv Is it possible to use the concat demuxer with an input format For example. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |