Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
FS#52378 - [ffmpeg] fails to concatenate video files of mp4 type
Attached to Project:
Arch Linux
Opened by Khurram Mahmood (makh) - Thursday, 05 January 2017, 20:28 GMT
Last edited by Maxime Gauduin (Alucryd) - Thursday, 25 May 2017, 13:13 GMT
Opened by Khurram Mahmood (makh) - Thursday, 05 January 2017, 20:28 GMT
Last edited by Maxime Gauduin (Alucryd) - Thursday, 25 May 2017, 13:13 GMT
|
DetailsDescription:
Hi! Using the following methods one by one, the desired resulting output fails: ffmpeg -i "concat:82_p_1.mp4|82_p_2.mp4|82_p_3.mp4|82_p_4.mp4" -c copy 82_output.mp4 --- ffmpeg -i "concat:82_p_1.mp4|82_p_2.mp4|82_p_3.mp4|82_p_4.mp4" -c copy 82_output.mkv --- ffmpeg -isync -i "concat:82_p_1.mp4|82_p_2.mp4|82_p_3.mp4|82_p_4.mp4" -c copy 82_output.mkv --- ffmpeg -f concat -i 82_p_1.mp4 -i 82_p_2.mp4 -i 82_p_3.mp4 -i 82_p_4.mp4 -c copy 82_output.mp4 --- ffmpeg -f concat -i 82_p_1.mp4 82_p_2.mp4 82_p_3.mp4 82_p_4.mp4 -c copy 82_output.mp4 --- ffmpeg -i "concat:82_p_1.mp4|82_p_2.mp4" output_1_n_2_video.mp4 --- ffmpeg -i 82_p_1.mp4 -i 82_p_2.mp4 -c copy -map 0 -map 1 output.mp4 --- ffmpeg -i 82_p_1.mp4 -i 82_p_2.mp4 -c copy -map 0 -map 1 output.mkv --- for f in *.mp4; do echo "file '$f'" >> mylist.txt; done ffmpeg -f concat -i mylist.txt -c copy 82_output.mp4 OR ffmpeg -f concat -i mylist.txt -codec copy 82_output_1.mp4 OR ffmpeg -f concat -i mylist.txt -f matroska 82_output.mkv The best result I got was that the video time was full, but the second file video was all in grey in the combined file, and the audio seemed ok. Additional info: * package version(s) --- $ pacman -Ss ffmpeg |grep installed extra/ffmpeg 1:3.2.2-2 [installed] extra/ffmpeg2.8 2.8.9-2 [installed] extra/gstreamer0.10-ffmpeg 0.10.13-2 (gstreamer0.10-plugins) [installed] $ uname -a Linux ArchTux 4.8.13-1-ARCH #1 SMP PREEMPT Fri Dec 9 07:24:34 CET 2016 x86_64 GNU/Linux * config and/or log files etc. Steps to reproduce: as above Thankyou & regards |
This task depends upon
Comment by Maxime Gauduin (Alucryd) -
Sunday, 15 January 2017, 16:35 GMT
Are you sure your vids have the same codecs, sounds like they don't? Using the concat demuxer as described in https://trac.ffmpeg.org/wiki/Concatenate works fine here, while the concat protocol does not, but the demuxer is the preferred methd anyway. The page describes how to use the concat filter for videos with different codecs.
Comment by Khurram Mahmood (makh) -
Friday, 20 January 2017, 13:02 GMT
Hi Maxime! ffmpeg -i file.mp4 doest show any difference except for the fractional difference in the bitrates.