[FFmpeg-trac] #9496(undetermined:new): "error reading header" while reading a mp4 file

FFmpeg trac at avcodec.org
Fri Nov 5 01:54:30 EET 2021


#9496: "error reading header" while reading a mp4 file
-------------------------------------+-------------------------------------
             Reporter:  rpr          |                     Type:  defect
               Status:  new          |                 Priority:  normal
            Component:               |                  Version:
  undetermined                       |  unspecified
             Keywords:               |               Blocked By:
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------
 Summary of the bug:
 ffprobe and ffmpeg report "error reading header" while reading an mp4 file
 which can be played fine with vlc. The file was created with handbrake.

 On Ubuntu 20.04 I tested ffmpeg 4.2.4, 4.4.1 from a PPA and also compiled
 the latest snapshot - all the versions have this issue.

 How to reproduce:
 {{{
 $ ffprobe Questions.mp4
 ffprobe version N-104464-g82e3251dd2 Copyright (c) 2007-2021 the FFmpeg
 developers
   built with gcc 9 (Ubuntu 9.3.0-17ubuntu1~20.04)
   configuration:
   libavutil      57.  7.100 / 57.  7.100
   libavcodec     59. 12.100 / 59. 12.100
   libavformat    59.  8.100 / 59.  8.100
   libavdevice    59.  0.101 / 59.  0.101
   libavfilter     8. 16.100 /  8. 16.100
   libswscale      6.  1.100 /  6.  1.100
   libswresample   4.  0.100 /  4.  0.100
 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x56127a11dd00] error reading header
 Questions.mp4: Invalid data found when processing input
 }}}

 On the other hand, mediainfo can read the same file:
 {{{
 $ mediainfo Questions.mp4
 General
 Complete name                            : Questions.mp4
 Format                                   : MPEG-4
 Format profile                           : Base Media / Version 2
 Codec ID                                 : mp42 (mp42/isom/avc1)
 File size                                : 1.51 GiB
 Duration                                 : 54 min 9 s
 Overall bit rate mode                    : Variable
 Overall bit rate                         : 3 997 kb/s
 Encoded date                             : UTC 2012-04-26 11:53:54
 Tagged date                              : UTC 2012-04-26 12:30:40
 Writing application                      : HandBrake 0.9.6 2012022900

 Video
 ID                                       : 1
 Format                                   : MPEG Video
 Format version                           : Version 2
 Format profile                           : Main at Main
 Format settings, BVOP                    : No
 Format settings, Matrix                  : Default
 Codec ID                                 : mp4v-61
 Duration                                 : 54 min 9 s
 Bit rate mode                            : Variable
 Bit rate                                 : 3 867 kb/s
 Maximum bit rate                         : 12.1 Mb/s
 Width                                    : 720 pixels
 Height                                   : 480 pixels
 Display aspect ratio                     : 4:3
 Frame rate mode                          : Constant
 Frame rate                               : 29.970 (30000/1001) FPS
 Standard                                 : NTSC
 Color space                              : YUV
 Chroma subsampling                       : 4:2:0
 Bit depth                                : 8 bits
 Scan type                                : Progressive
 Compression mode                         : Lossy
 Bits/(Pixel*Frame)                       : 0.373
 Time code of first frame                 : 00:00:00:00
 Time code source                         : Group of pictures header
 Stream size                              : 1.46 GiB (97%)
 Encoded date                             : UTC 2012-04-26 11:53:54
 Tagged date                              : UTC 2012-04-26 12:30:40
 Color primaries                          : BT.601 NTSC
 Transfer characteristics                 : BT.709
 Matrix coefficients                      : BT.601

 Audio
 ID                                       : 2
 Format                                   : AC-3
 Format/Info                              : Audio Coding 3
 Commercial name                          : Dolby Digital
 Codec ID                                 : ac-3
 Duration                                 : 54 min 9 s
 Bit rate mode                            : Constant
 Bit rate                                 : 128 kb/s
 Channel(s)                               : 2 channels
 Channel layout                           : L R
 Sampling rate                            : 48.0 kHz
 Frame rate                               : 31.250 FPS (1536 SPF)
 Compression mode                         : Lossy
 Stream size                              : 49.6 MiB (3%)
 Title                                    : Surround
 Service kind                             : Complete Main
 Encoded date                             : UTC 2012-04-26 11:53:54
 Tagged date                              : UTC 2012-04-26 12:30:39
 }}}

 Patches should be submitted to the ffmpeg-devel mailing list and not this
 bug tracker.
-- 
Ticket URL: <https://trac.ffmpeg.org/ticket/9496>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list