#8105: ffmpeg doesn't recognize MP4 files with MPEG-2 video created by MP4Box
anymore
-------------------------------------+-------------------------------------
Reporter: ptalarbvorm | Owner:
Type: defect | Status: open
Priority: important | Component: avformat
Version: git-master | Resolution:
Keywords: mov | Blocked By:
regression |
Blocking: | Reproduced by developer: 1
Analyzed by developer: 0 |
-------------------------------------+-------------------------------------
Description changed by cehoyos:
Old description:
> Recent versions of ffmpeg do not recognize MP4 files with MPEG-2 video
> created by MP4Box, only the ones created by ffmpeg itself. However old
> versions of ffmpeg such as 3.4.2 didn't have this problem.
>
> {{
> => ffmpeg -i GDTL.mp4
> ffmpeg version 4.1.4 Copyright (c) 2000-2019 the FFmpeg developers
> built with gcc 9.1.1 (GCC) 20190716
> 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 @ 000000000052fd40] error reading header
>
> ==============================
>
> => ffmpeg -i GDTL.mp4
> ffmpeg version 3.4.2 Copyright (c) 2000-2018 the FFmpeg developers
> built with gcc 7.3.0 (GCC)
> configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-
> bzlib --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-libmfx --enable-cuda --enable-cuvid --enable-
> d3d11va --enable-nvenc
> --enable-dxva2 --enable-avisynth
> 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
> libswscale 4. 8.100 / 4. 8.100
> libswresample 2. 9.100 / 2. 9.100
> libpostproc 54. 7.100 / 54. 7.100
> Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'GDTL.mp4':
> Metadata:
> major_brand : isom
> minor_version : 1
> compatible_brands: isom
> creation_time : 2018-09-25T18:53:18.000000Z
> Duration: 01:32:19.78, start: 0.000000, bitrate: 959 kb/s
> Stream #0:0(und): Video: mpeg2video (Main) (mp4v / 0x7634706D),
> yuv420p(tv, smpte170m), 544x
> 480 [SAR 20:17 DAR 4:3], 798 kb/s, 23.98 fps, 23.98 tbr, 24k tbn, 47.95
> tbc (default)
> Metadata:
> creation_time : 2018-09-25T18:53:18.000000Z
> handler_name : [email protected]
> Stream #0:1(und): Audio: ac3 (ac-3 / 0x332D6361), 48000 Hz, stereo,
> fltp, 160 kb/s (default)
>
> Metadata:
> creation_time : 2018-09-25T18:54:16.000000Z
> handler_name : [email protected]
> Side data:
> audio service type: main
> }}
>
> And as a consequence, software that uses ffmpeg demuxers such as mpv and
> LAV Splitter are failing as well.
>
> Here is the link to two sample files, one created with GPAC's MP4Box and
> the other created with ffmpeg 4.1.4.
>
> http://www.mediafire.com/file/5oyqn0056fg28ek/Matsuoka-Riko-MP4s-
> samples.zip/file
New description:
Recent versions of ffmpeg do not recognize MP4 files with MPEG-2 video
created by MP4Box, only the ones created by ffmpeg itself. However old
versions of ffmpeg such as 3.4.2 didn't have this problem.
{{{
ffmpeg -i GDTL.mp4
ffmpeg version 4.1.4 Copyright (c) 2000-2019 the FFmpeg developers
built with gcc 9.1.1 (GCC) 20190716
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 @ 000000000052fd40] error reading header
==============================
=> ffmpeg -i GDTL.mp4
ffmpeg version 3.4.2 Copyright (c) 2000-2018 the FFmpeg developers
built with gcc 7.3.0 (GCC)
configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-
bzlib --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-libmfx --enable-cuda --enable-cuvid --enable-
d3d11va --enable-nvenc
--enable-dxva2 --enable-avisynth
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
libswscale 4. 8.100 / 4. 8.100
libswresample 2. 9.100 / 2. 9.100
libpostproc 54. 7.100 / 54. 7.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'GDTL.mp4':
Metadata:
major_brand : isom
minor_version : 1
compatible_brands: isom
creation_time : 2018-09-25T18:53:18.000000Z
Duration: 01:32:19.78, start: 0.000000, bitrate: 959 kb/s
Stream #0:0(und): Video: mpeg2video (Main) (mp4v / 0x7634706D),
yuv420p(tv, smpte170m), 544x
480 [SAR 20:17 DAR 4:3], 798 kb/s, 23.98 fps, 23.98 tbr, 24k tbn, 47.95
tbc (default)
Metadata:
creation_time : 2018-09-25T18:53:18.000000Z
handler_name : [email protected]
Stream #0:1(und): Audio: ac3 (ac-3 / 0x332D6361), 48000 Hz, stereo,
fltp, 160 kb/s (default)
Metadata:
creation_time : 2018-09-25T18:54:16.000000Z
handler_name : [email protected]
Side data:
audio service type: main
}}}
And as a consequence, software that uses ffmpeg demuxers such as mpv and
LAV Splitter are failing as well.
Here is the link to two sample files, one created with GPAC's MP4Box and
the other created with ffmpeg 4.1.4.
http://www.mediafire.com/file/5oyqn0056fg28ek/Matsuoka-Riko-MP4s-
samples.zip/file
--
--
Ticket URL: <https://trac.ffmpeg.org/ticket/8105#comment:3>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
_______________________________________________
FFmpeg-trac mailing list
[email protected]
https://ffmpeg.org/mailman/listinfo/ffmpeg-trac
To unsubscribe, visit link above, or email
[email protected] with subject "unsubscribe".