I'm trying:
- How to concatenate two MP4 files using FFmpeg?
- https://superuser.com/questions/1059245/ffmpeg-join-two-mp4-files-with-ffmpeg-on-command-line
Option A:
ffmpeg -f concat -i list.txt -c copy output
Line 1: unknown keyword 'file' list.txt: Invalid data found when processing input
cat list.txt
file './001-eclipse.mp4'
file './002-sundown.mp4'
file './003-robothear.mp4'
file './004-NOPE-boring-tower.mp4'
Option B:
ffmpeg -i "concat:001-eclipse.mp4|002-sundown.mp4|003-robothear.mp4|004-NOPE-boring-tower.mp4" -c copy output.mp4
ffmpeg version 4.0.2 Copyright (c) 2000-2018 the FFmpeg developers
built with Apple LLVM version 9.1.0 (clang-902.0.39.2)
configuration: --prefix=/usr/local/Cellar/ffmpeg/4.0.2 --enable-shared --enable-pthreads --enable-version3 --enable-hardcoded-tables --enable-avresample --cc=clang --host-cflags= --host-ldflags= --enable-gpl --enable-libmp3lame --enable-libx264 --enable-libxvid --enable-opencl --enable-videotoolbox --disable-lzma
libavutil 56. 14.100 / 56. 14.100
libavcodec 58. 18.100 / 58. 18.100
libavformat 58. 12.100 / 58. 12.100
libavdevice 58. 3.100 / 58. 3.100
libavfilter 7. 16.100 / 7. 16.100
libavresample 4. 0. 0 / 4. 0. 0
libswscale 5. 1.100 / 5. 1.100
libswresample 3. 1.100 / 3. 1.100
libpostproc 55. 1.100 / 55. 1.100
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7feb1d001200] Found duplicated MOOV Atom. Skipped it
Last message repeated 2 times
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'concat:001-eclipse.mp4|002-sundown.mp4|003-robothear.mp4|004-NOPE-boring-tower.mp4':
Metadata:
encoder : Lavf58.12.100
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
Duration: 00:00:13.64, start: 0.000000, bitrate: 161885 kb/s
Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 5376x2688, 54015 kb/s, 25 fps, 25 tbr, 12800 tbn, 50 tbc (default)
Metadata:
handler_name : VideoHandler
Output #0, mp4, to 'output.mp4':
Metadata:
compatible_brands: isomiso2avc1mp41
major_brand : isom
minor_version : 512
encoder : Lavf58.12.100
Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 5376x2688, q=2-31, 54015 kb/s, 25 fps, 25 tbr, 12800 tbn, 12800 tbc (default)
Metadata:
handler_name : VideoHandler
Stream mapping:
Stream #0:0 -> #0:0 (copy)
Press [q] to stop, [?] for help
frame= 341 fps=0.0 q=-1.0 Lsize= 89943kB time=00:00:13.52 bitrate=54497.5kbits/s speed=90.2x
video:89937kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.005972%
It contains only the first video :/
Any ideas?
My version on Mac:
ffmpeg -version
ffmpeg version 4.0.2 Copyright (c) 2000-2018 the FFmpeg developers
built with Apple LLVM version 9.1.0 (clang-902.0.39.2)
configuration: --prefix=/usr/local/Cellar/ffmpeg/4.0.2 --enable-shared --enable-pthreads --enable-version3 --enable-hardcoded-tables --enable-avresample --cc=clang --host-cflags= --host-ldflags= --enable-gpl --enable-libmp3lame --enable-libx264 --enable-libxvid --enable-opencl --enable-videotoolbox --disable-lzma
libavutil 56. 14.100 / 56. 14.100
libavcodec 58. 18.100 / 58. 18.100
libavformat 58. 12.100 / 58. 12.100
libavdevice 58. 3.100 / 58. 3.100
libavfilter 7. 16.100 / 7. 16.100
libavresample 4. 0. 0 / 4. 0. 0
libswscale 5. 1.100 / 5. 1.100
libswresample 3. 1.100 / 3. 1.100
libpostproc 55. 1.100 / 55. 1.100