[FFmpeg-trac] #6056(ffmpeg:new): ffmpeg/ffprobe return "unspecified pixel format" on mp4s that html5 video plays OK

FFmpeg trac at avcodec.org
Mon Jan 2 19:20:59 EET 2017


#6056: ffmpeg/ffprobe return "unspecified  pixel format" on mp4s that html5 video
plays OK
-------------------------------------+-------------------------------------
             Reporter:  rasa         |                     Type:  defect
               Status:  new          |                 Priority:  normal
            Component:  ffmpeg       |                  Version:  git-
             Keywords:  h264         |  master
  regression                         |               Blocked By:
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------
 '''Q:''' What you were trying to accomplish?

   Upload .mp4 video to youtube (ultimately).

 '''Q:''' What is the problem you encountered?

   ffmpeg & ffprobe fail with "unspecified pixel format."

 '''Q:''' What is the exact command line you were using?

 {{{
 wget http://mediadownload.iqm2.com/LincolnCityOR/1531_480.mp4 # 9,482,426
 bytes
 ffprobe 1531_480.mp4
 }}}

 '''Q:''' What is the full, uncut console output provided by `ffmpeg -v 9
 -loglevel 99 -i`?

 {{{
 ffmpeg -v 9 -loglevel 99 -i 1531_480.mp4
 ffmpeg version N-82966-g6993bb4 Copyright (c) 2000-2016 the FFmpeg
 developers
   built with gcc 5.4.0 (GCC)
   configuration: --enable-gpl --enable-version3 --enable-dxva2 --enable-
 libmfx --enable-nvenc --enable-avisynth --enable-bzlib --enable-fontconfig
 --enable-frei0r --enable-gnutls --enab
 le-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-
 libcaca --enable-libfreetype --enable-libgme --enable-libgsm --enable-
 libilbc --enable-libmodplug --enable-libmp3la
 me --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-
 libopenh264 --enable-libopenjpeg --enable-libopus --enable-librtmp
 --enable-libsnappy --enable-libsoxr --enable-libspee
 x --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-
 libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack
 --enable-libwebp --enable-libx264 --enable-li
 bx265 --enable-libxavs --enable-libxvid --enable-libzimg --enable-lzma
 --enable-decklink --enable-zlib
   libavutil      55. 43.100 / 55. 43.100
   libavcodec     57. 70.100 / 57. 70.100
   libavformat    57. 61.100 / 57. 61.100
   libavdevice    57.  2.100 / 57.  2.100
   libavfilter     6. 68.100 /  6. 68.100
   libswscale      4.  3.101 /  4.  3.101
   libswresample   2.  4.100 /  2.  4.100
   libpostproc    54.  2.100 / 54.  2.100
 Splitting the commandline.
 Reading option '-v' ... matched as option 'v' (set logging level) with
 argument '9'.
 Reading option '-loglevel' ... matched as option 'loglevel' (set logging
 level) with argument '99'.
 Reading option '-i' ... matched as input url with argument '1531_480.mp4'.
 Finished splitting the commandline.
 Parsing a group of options: global .
 Applying option v (set logging level) with argument 9.
 Successfully parsed a group of options.
 Parsing a group of options: input url 1531_480.mp4.
 Successfully parsed a group of options.
 Opening an input file: 1531_480.mp4.
 [file @ 00000000005a6a20] Setting default whitelist 'file,crypto'
 Probing mov,mp4,m4a,3gp,3g2,mj2 score:100 size:2048
 [mov,mp4,m4a,3gp,3g2,mj2 @ 000000000043a7c0] Format
 mov,mp4,m4a,3gp,3g2,mj2 probed with size=2048 and score=100
 [mov,mp4,m4a,3gp,3g2,mj2 @ 000000000043a7c0] type: 70797466 'ftyp'
 parent:'root' sz: 24 8 9482426
 [mov,mp4,m4a,3gp,3g2,mj2 @ 000000000043a7c0] ISO: File Type Major Brand:
 mp42
 [mov,mp4,m4a,3gp,3g2,mj2 @ 000000000043a7c0] type: 766f6f6d 'moov'
 parent:'root' sz: 79874 32 9482426
 [mov,mp4,m4a,3gp,3g2,mj2 @ 000000000043a7c0] type: 6468766d 'mvhd'
 parent:'moov' sz: 108 8 79866
 [mov,mp4,m4a,3gp,3g2,mj2 @ 000000000043a7c0] time scale = 90000
 [mov,mp4,m4a,3gp,3g2,mj2 @ 000000000043a7c0] type: 6b617274 'trak'
 parent:'moov' sz: 48711 116 79866
 [mov,mp4,m4a,3gp,3g2,mj2 @ 000000000043a7c0] type: 64686b74 'tkhd'
 parent:'trak' sz: 92 8 48703
 [mov,mp4,m4a,3gp,3g2,mj2 @ 000000000043a7c0] type: 6169646d 'mdia'
 parent:'trak' sz: 48611 100 48703
 [mov,mp4,m4a,3gp,3g2,mj2 @ 000000000043a7c0] type: 6468646d 'mdhd'
 parent:'mdia' sz: 32 8 48603
 [mov,mp4,m4a,3gp,3g2,mj2 @ 000000000043a7c0] type: 726c6468 'hdlr'
 parent:'mdia' sz: 68 40 48603
 [mov,mp4,m4a,3gp,3g2,mj2 @ 000000000043a7c0] ctype=  (0x00000000)
 [mov,mp4,m4a,3gp,3g2,mj2 @ 000000000043a7c0] stype= vide
 [mov,mp4,m4a,3gp,3g2,mj2 @ 000000000043a7c0] type: 666e696d 'minf'
 parent:'mdia' sz: 48503 108 48603
 [mov,mp4,m4a,3gp,3g2,mj2 @ 000000000043a7c0] type: 64686d76 'vmhd'
 parent:'minf' sz: 20 8 48495
 [mov,mp4,m4a,3gp,3g2,mj2 @ 000000000043a7c0] type: 666e6964 'dinf'
 parent:'minf' sz: 36 28 48495
 [mov,mp4,m4a,3gp,3g2,mj2 @ 000000000043a7c0] type: 66657264 'dref'
 parent:'dinf' sz: 28 8 28
 [mov,mp4,m4a,3gp,3g2,mj2 @ 000000000043a7c0] type url  size 12
 [mov,mp4,m4a,3gp,3g2,mj2 @ 000000000043a7c0] Unknown dref type
 0x08206c7275 size 12
 [mov,mp4,m4a,3gp,3g2,mj2 @ 000000000043a7c0] type: 6c627473 'stbl'
 parent:'minf' sz: 48439 64 48495
 [mov,mp4,m4a,3gp,3g2,mj2 @ 000000000043a7c0] type: 64737473 'stsd'
 parent:'stbl' sz: 175 8 48431
 [mov,mp4,m4a,3gp,3g2,mj2 @ 000000000043a7c0] size=159 4CC= avc1/0x31637661
 codec_type=0
 [mov,mp4,m4a,3gp,3g2,mj2 @ 000000000043a7c0] type: 63766149 'Iavc'
 parent:'stsd' sz: 4278190080 8 73
 [mov,mp4,m4a,3gp,3g2,mj2 @ 000000000043a7c0] type: 74747310 '?stt'
 parent:'stbl' sz: 1207959665 183 48431
 [mov,mp4,m4a,3gp,3g2,mj2 @ 000000000043a7c0] type: 00003508 5'
 parent:'moov' sz: 133758976 48827 79866
 [mov,mp4,m4a,3gp,3g2,mj2 @ 000000000043a7c0] type: 00c0cb83 'â╦└'
 parent:'root' sz: 2206560512 79906 9482426
 [mov,mp4,m4a,3gp,3g2,mj2 @ 000000000043a7c0] on_parse_exit_offset=9482426
 [mov,mp4,m4a,3gp,3g2,mj2 @ 000000000043a7c0] Before
 avformat_find_stream_info() pos: 9482426 bytes read:65536 seeks:2
 nb_streams:1
 [mov,mp4,m4a,3gp,3g2,mj2 @ 000000000043a7c0] stream 0: start_time:
 -307445734561825.875 duration: 143.830
 [mov,mp4,m4a,3gp,3g2,mj2 @ 000000000043a7c0] format: start_time:
 -9223372036854.775 duration: 143.830 bitrate=527 kb/s
 [mov,mp4,m4a,3gp,3g2,mj2 @ 000000000043a7c0] Could not find codec
 parameters for stream 0 (Video: h264, 1 reference frame (avc1 /
 0x31637661), none(left), 640x480, 1/60000): unspecified
  pixel format
 Consider increasing the value for the 'analyzeduration' and 'probesize'
 options
 [mov,mp4,m4a,3gp,3g2,mj2 @ 000000000043a7c0] After
 avformat_find_stream_info() pos: 9482426 bytes read:65536 seeks:2 frames:0
 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '1531_480.mp4':
   Metadata:
     major_brand     : mp42
     minor_version   : 0
     compatible_brands: isommp42
     creation_time   : 2016-12-20T00:28:03.000000Z
   Duration: 00:02:23.83, bitrate: 527 kb/s
     Stream #0:0(eng), 0, 1/30000: Video: h264, 1 reference frame (avc1 /
 0x31637661), none(left), 640x480, 0/1, 30k tbr, 30k tbn, 60k tbc (default)
     Metadata:
       creation_time   : 2016-12-20T00:28:03.000000Z
       handler_name    : Mainconcept MP4 Video Media Handler
       encoder         :
                       : AVC Coding
 Successfully opened the file.
 At least one output file must be specified
 [AVIOContext @ 00000000005a6b60] Statistics: 65536 bytes read, 2 seeks
 }}}

 '''Q:''' What is sufficient information, including any required input
 files, to reproduce the bug and confirm a potential fix?

 * I have searched bugzilla and google, and have spent several hours trying
 numerous options to ffmpeg/ffprobe but cannot get around this issue.

 * Not only can't Youtube process these mp4 (stuck at 0% processed), but
 Handbrake, and other video converter tools fail to process the videos as
 well.

 * Chrome, Firefox, and IE, all play the videos fine:
 {{{
 <html><body>
 <video controls
 src="http://MediaHTTP.IQM2.com/LincolnCityOR/1531_480.mp4"/>
 </body></html>
 }}}
   so the files are not corrupted.

 * ffmpeg/ffprobe can read all .mp4s on
 http://lincolncityor.iqm2.com/Citizens/Media.aspx that were created before
 1-Dec-2016. ffmpeg/ffprobe return "unspecified pixel format" on all .mp4s
 on http://lincolncityor.iqm2.com/Citizens/Media.aspx that were created
 after 1-Dec-2016:
 {{{
 -rw-rw-rw-  1 ross 0 556963170 2016-11-30 17:29 1521_480.mp4 # works
 -rw-rw-rw-  1 ross 0 455722475 2016-12-07 15:12 1523_480.mp4 # fails
 -rw-rw-rw-  1 ross 0 314842417 2016-12-13 15:13 1527_480.mp4 # fails
 -rw-rw-rw-  1 ross 0 607703953 2016-12-27 15:15 1528_480.mp4 # fails
 -rw-rw-rw-  1 ross 0 636391003 2016-12-27 15:17 1530_480.mp4 # fails
 -rw-rw-rw-  1 ross 0   9482426 2016-12-27 15:18 1531_480.mp4 # fails
 -rw-rw-rw-  1 ross 0  38956543 2016-12-27 15:17 1532_480.mp4 # fails
 -rw-rw-rw-  1 ross 0 484210825 2016-12-27 15:18 1533_480.mp4 # fails
 }}}

 * Here's the mediainfo output:
 {{{
 mediainfo -f 1531_480.mp4
 General
 Count                                    : 323
 Count of stream of this kind             : 1
 Kind of stream                           : General
 Kind of stream                           : General
 Stream identifier                        : 0
 Count of video streams                   : 1
 Video_Format_List                        : AVC
 Video_Format_WithHint_List               : AVC
 Codecs Video                             : AVC
 Video_Language_List                      : English
 Complete name                            : 1531_480.mp4
 File name                                : 1531_480
 File extension                           : mp4
 Format                                   : MPEG-4
 Format                                   : MPEG-4
 Format/Extensions usually used           : mp4 m4v m4a m4b m4p 3gpp 3gp
 3gpp2 3g2 k3g jpm jpx mqv ismv isma f4v
 Commercial name                          : MPEG-4
 Format profile                           : Base Media / Version 2
 Internet media type                      : video/mp4
 Codec ID                                 : mp42
 Codec ID                                 : mp42 (isom/mp42)
 Codec ID/Url                             :
 http://www.apple.com/quicktime/download/standalone.html
 CodecID_Compatible                       : isom/mp42
 Codec                                    : MPEG-4
 Codec                                    : MPEG-4
 Codec/Extensions usually used            : mp4 m4v m4a m4b m4p 3gpp 3gp
 3gpp2 3g2 k3g jpm jpx mqv ismv isma f4v
 File size                                : 9482426
 File size                                : 9.04 MiB
 File size                                : 9 MiB
 File size                                : 9.0 MiB
 File size                                : 9.04 MiB
 File size                                : 9.043 MiB
 Duration                                 : 143830
 Duration                                 : 2 min 23 s
 Duration                                 : 2 min 23 s 830 ms
 Duration                                 : 2 min 23 s
 Duration                                 : 00:02:23.830
 Duration                                 : 00:02:23.830
 Overall bit rate                         : 527424
 Overall bit rate                         : 527 kb/s
 Stream size                              : 499559
 Stream size                              : 488 KiB (5%)
 Stream size                              : 488 KiB
 Stream size                              : 488 KiB
 Stream size                              : 488 KiB
 Stream size                              : 487.9 KiB
 Stream size                              : 488 KiB (5%)
 Proportion of this stream                : 0.05268
 Encoded date                             : UTC 2016-12-20 00:28:03
 Tagged date                              : UTC 2016-12-20 00:28:03
 File creation date                       : UTC 2016-12-27 23:18:51.320
 File creation date (local)               : 2016-12-27 15:18:51.320
 File last modification date              : UTC 2016-12-27 23:18:51.340
 File last modification date (local)      : 2016-12-27 15:18:51.340
 IsTruncated                              : Yes

 Video
 Count                                    : 335
 Count of stream of this kind             : 1
 Kind of stream                           : Video
 Kind of stream                           : Video
 Stream identifier                        : 0
 StreamOrder                              : 0
 ID                                       : 1
 ID                                       : 1
 Format                                   : AVC
 Format/Info                              : Advanced Video Codec
 Format/Url                               :
 http://developers.videolan.org/x264.html
 Commercial name                          : AVC
 Internet media type                      : video/H264
 Codec ID                                 : avc1
 Codec ID/Info                            : Advanced Video Coding
 Codec                                    : avc1
 Codec                                    : AVC
 Codec/Family                             : AVC
 Codec/Info                               : Advanced Video Codec
 Codec/Url                                :
 http://www.apple.com/quicktime/download/standalone.html
 Codec/CC                                 : avc1
 Duration                                 : 143830
 Duration                                 : 2 min 23 s
 Duration                                 : 2 min 23 s 830 ms
 Duration                                 : 2 min 23 s
 Duration                                 : 00:02:23.830
 Duration                                 : 00:02:23.830
 Bit rate                                 : 499638
 Bit rate                                 : 500 kb/s
 Width                                    : 640
 Width                                    : 640 pixels
 Height                                   : 480
 Height                                   : 480 pixels
 Pixel aspect ratio                       : 1.000
 Display aspect ratio                     : 1.333
 Display aspect ratio                     : 4:3
 Rotation                                 : 0.000
 Stream size                              : 8982867
 Stream size                              : 8.57 MiB (95%)
 Stream size                              : 9 MiB
 Stream size                              : 8.6 MiB
 Stream size                              : 8.57 MiB
 Stream size                              : 8.567 MiB
 Stream size                              : 8.57 MiB (95%)
 Proportion of this stream                : 0.94732
 Language                                 : en
 Language                                 : English
 Language                                 : English
 Language                                 : en
 Language                                 : eng
 Language                                 : en
 Encoded date                             : UTC 2016-12-20 00:28:03
 Tagged date                              : UTC 2016-12-20 00:28:03
 mdhd_Duration                            : 143830
 }}}

--
Ticket URL: <https://trac.ffmpeg.org/ticket/6056>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list