[FFmpeg-user] Playback of mp4 file created by concatenating 9 mp4 files

JD jd1008 at gmail.com
Fri Sep 13 20:46:41 EEST 2019


The resulting movie will not play.
To wit:
$ ffplay Cremation_History.mp4
ffplay version 3.4.6 Copyright (c) 2003-2019 the FFmpeg developers
   built with gcc 4.8.5 (GCC) 20150623 (Red Hat 4.8.5-36)
   configuration: --prefix=/usr --bindir=/usr/bin 
--datadir=/usr/share/ffmpeg --docdir=/usr/share/doc/ffmpeg 
--incdir=/usr/include/ffmpeg --libdir=/usr/lib64 --mandir=/usr/share/man 
--arch=x86_64 --optflags='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 
-fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 
-grecord-gcc-switches -m64 -mtune=generic' --extra-ldflags='-Wl,-z,relro 
' --extra-cflags=' ' --enable-libopencore-amrnb 
--enable-libopencore-amrwb --enable-libvo-amrwbenc --enable-version3 
--enable-bzlib --disable-crystalhd --enable-fontconfig --enable-gcrypt 
--enable-gnutls --enable-ladspa --enable-libass --enable-libbluray 
--enable-libcdio --enable-libdrm --enable-indev=jack 
--enable-libfreetype --enable-libfribidi --enable-libgsm 
--enable-libmp3lame --enable-nvenc --enable-openal --enable-opencl 
--enable-opengl --enable-libopenjpeg --enable-libopus 
--disable-encoder=libopus --enable-libpulse --enable-librsvg 
--enable-libsoxr --enable-libspeex --enable-libtheora --enable-libvorbis 
--enable-libv4l2 --enable-libvidstab --enable-libx264 --enable-libx265 
--enable-libxvid --enable-libzvbi --enable-avfilter --enable-avresample 
--enable-postproc --enable-pthreads --disable-static --enable-shared 
--enable-gpl --disable-debug --disable-stripping --shlibdir=/usr/lib64 
--enable-libmfx --enable-runtime-cpudetect
   libavutil      55. 78.100 / 55. 78.100
   libavcodec     57.107.100 / 57.107.100
   libavformat    57. 83.100 / 57. 83.100
   libavdevice    57. 10.100 / 57. 10.100
   libavfilter     6.107.100 /  6.107.100
   libavresample   3.  7.  0 /  3.  7.  0
   libswscale      4.  8.100 /  4.  8.100
   libswresample   2.  9.100 /  2.  9.100
   libpostproc    54.  7.100 / 54.  7.100
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f30cc000920] moov atom not found0/0
Cremation_History.mp4: Invalid data found when processing input

=================================================
This is how the concatenation was done:

$ /bin/ffmpeg -f concat -i flist  -s 1920x1080 -vf 
scale=1920x1080,setdar=16/9,setdar=16/9 -b:a 320k -b:v 4000k 
Cremation_History.mp4
ffmpeg version 3.4.6 Copyright (c) 2000-2019 the FFmpeg developers
   built with gcc 4.8.5 (GCC) 20150623 (Red Hat 4.8.5-36)
   configuration: --prefix=/usr --bindir=/usr/bin 
--datadir=/usr/share/ffmpeg --docdir=/usr/share/doc/ffmpeg 
--incdir=/usr/include/ffmpeg --libdir=/usr/lib64 --mandir=/usr/share/man 
--arch=x86_64 --optflags='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 
-fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 
-grecord-gcc-switches -m64 -mtune=generic' --extra-ldflags='-Wl,-z,relro 
' --extra-cflags=' ' --enable-libopencore-amrnb 
--enable-libopencore-amrwb --enable-libvo-amrwbenc --enable-version3 
--enable-bzlib --disable-crystalhd --enable-fontconfig --enable-gcrypt 
--enable-gnutls --enable-ladspa --enable-libass --enable-libbluray 
--enable-libcdio --enable-libdrm --enable-indev=jack 
--enable-libfreetype --enable-libfribidi --enable-libgsm 
--enable-libmp3lame --enable-nvenc --enable-openal --enable-opencl 
--enable-opengl --enable-libopenjpeg --enable-libopus 
--disable-encoder=libopus --enable-libpulse --enable-librsvg 
--enable-libsoxr --enable-libspeex --enable-libtheora --enable-libvorbis 
--enable-libv4l2 --enable-libvidstab --enable-libx264 --enable-libx265 
--enable-libxvid --enable-libzvbi --enable-avfilter --enable-avresample 
--enable-postproc --enable-pthreads --disable-static --enable-shared 
--enable-gpl --disable-debug --disable-stripping --shlibdir=/usr/lib64 
--enable-libmfx --enable-runtime-cpudetect
   libavutil      55. 78.100 / 55. 78.100
   libavcodec     57.107.100 / 57.107.100
   libavformat    57. 83.100 / 57. 83.100
   libavdevice    57. 10.100 / 57. 10.100
   libavfilter     6.107.100 /  6.107.100
   libavresample   3.  7.  0 /  3.  7.  0
   libswscale      4.  8.100 /  4.  8.100
   libswresample   2.  9.100 /  2.  9.100
   libpostproc    54.  7.100 / 54.  7.100
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1859a80] Auto-inserting h264_mp4toannexb 
bitstream filter
Input #0, concat, from 'flist':
   Duration: N/A, start: 0.000000, bitrate: 402 kb/s
     Stream #0:0(und): Video: h264 (Constrained Baseline) (avc1 / 
0x31637661), yuv420p(tv, bt709), 640x360 [SAR 1:1 DAR 16:9], 306 kb/s, 
30 fps, 30 tbr, 15360 tbn, 60 tbc
     Metadata:
       creation_time   : 2019-08-29T19:28:20.000000Z
       handler_name    :
     Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, 
stereo, fltp, 96 kb/s
     Metadata:
       creation_time   : 2019-08-29T19:28:20.000000Z
       handler_name    :
File 'Cremation_History.mp4' already exists. Overwrite ? [y/N] y
Stream mapping:
   Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264))
   Stream #0:1 -> #0:1 (aac (native) -> aac (native))
Press [q] to stop, [?] for help
[libx264 @ 0x1a67f00] using SAR=1/1
[libx264 @ 0x1a67f00] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.1 
Cache64
[libx264 @ 0x1a67f00] profile High, level 4.0
[libx264 @ 0x1a67f00] 264 - core 148 r2795 aaa9aa8 - H.264/MPEG-4 AVC 
codec - Copyleft 2003-2017 - http://www.videolan.org/x264.html - 
options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 
psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 
8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=3 
lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 
bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 
b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 
keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=abr 
mbtree=1 bitrate=4000 ratetol=1.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 
ip_ratio=1.40 aq=1:1.00
Output #0, mp4, to 'Cremation_History.mp4':
   Metadata:
     encoder         : Lavf57.83.100
     Stream #0:0(und): Video: h264 (libx264) (avc1 / 0x31637661), 
yuv420p(progressive), 1920x1080 [SAR 1:1 DAR 16:9], q=-1--1, 4000 kb/s, 
30 fps, 15360 tbn, 30 tbc
     Metadata:
       creation_time   :
       handler_name    :
       encoder         : Lavc57.107.100 libx264
     Side data:
       cpb: bitrate max/min/avg: 0/0/4000000 buffer size: 0 vbv_delay: -1
     Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, 
stereo, fltp, 320 kb/s
     Metadata:
       creation_time   :
       handler_name    : I
       encoder         : Lavc57.107.100 aac





More information about the ffmpeg-user mailing list