Это сработало для меня.Я использую Windows 10.
Я использовал это как источник [https://trac.ffmpeg.org/wiki/Concatenate].
Все мои mp4
файлы и list.txt
находились в одной папке.
Мой list.txt
файл:
file '20190710_141637.mp4'
file '20190710_144949.mp4'
file '20190710_153155.mp4'
file '20190710_160506.mp4'
, затем я запускаю команду:
ffmpeg -f concat -safe 0 -i list.txt -c copy output.mp4
и вывод:
ffmpeg version 4.1.1 Copyright (c) 2000-2019 the FFmpeg developers
built with gcc 8.2.1 (GCC) 20190212
configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-libvidstab --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex --enable-libxvid --enable-libaom --enable-libmfx --enable-amf --enable-ffnvcodec --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --enable-avisynth
libavutil 56. 22.100 / 56. 22.100
libavcodec 58. 35.100 / 58. 35.100
libavformat 58. 20.100 / 58. 20.100
libavdevice 58. 5.100 / 58. 5.100
libavfilter 7. 40.101 / 7. 40.101
libswscale 5. 3.100 / 5. 3.100
libswresample 3. 3.100 / 3. 3.100
libpostproc 55. 3.100 / 55. 3.100
[mov,mp4,m4a,3gp,3g2,mj2 @ 0650ce00] Auto-inserting h264_mp4toannexb bitstream filter
Input #0, concat, from 'list.txt':
Duration: N/A, start: 0.000000, bitrate: 17259 kb/s
Stream #0:0(eng): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, bt709), 1920x1080, 17003 kb/s, SAR 1:1 DAR 16:9, 30.01 fps, 30 tbr, 90k tbn, 180k tbc
Metadata:
rotate : 90
creation_time : 2019-07-10T17:49:48.000000Z
handler_name : VideoHandle
Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 256 kb/s
Metadata:
creation_time : 2019-07-10T17:49:48.000000Z
handler_name : SoundHandle
Output #0, mp4, to 'output.mp4':
Metadata:
encoder : Lavf58.20.100
Stream #0:0(eng): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, bt709), 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 17003 kb/s, 30.01 fps, 30 tbr, 90k tbn, 90k tbc
Metadata:
rotate : 90
creation_time : 2019-07-10T17:49:48.000000Z
handler_name : VideoHandle
Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 256 kb/s
Metadata:
creation_time : 2019-07-10T17:49:48.000000Z
handler_name : SoundHandle
Stream mapping:
Stream #0:0 -> #0:0 (copy)
Stream #0:1 -> #0:1 (copy)
Press [q] to stop, [?] for help
[mov,mp4,m4a,3gp,3g2,mj2 @ 0650ce00] Auto-inserting h264_mp4toannexb bitstream filtereed=33.1x
[mov,mp4,m4a,3gp,3g2,mj2 @ 0650ce00] Auto-inserting h264_mp4toannexb bitstream filterpeed=33.1x
[mov,mp4,m4a,3gp,3g2,mj2 @ 065bf040] Auto-inserting h264_mp4toannexb bitstream filterpeed=29.6x
frame=208306 fps=922 q=-1.0 Lsize=14635199kB time=01:55:42.00 bitrate=17270.5kbits/s speed=30.7x
video:14409412kB audio:216937kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.060511%