[FFmpeg-trac] #6958(avcodec:open): ffprobe can't show correct coded_height for h264 1080p videos

FFmpeg trac at avcodec.org
Thu Jan 11 12:27:09 EET 2018


#6958: ffprobe can't show correct coded_height for h264 1080p videos
-------------------------------------+-------------------------------------
             Reporter:  lizhong1008  |                    Owner:
                 Type:  defect       |                   Status:  open
             Priority:  important    |                Component:  avcodec
              Version:  git-master   |               Resolution:
             Keywords:  h264         |               Blocked By:
  codecpar regression                |  Reproduced by developer:  1
             Blocking:               |
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------
Changes (by cehoyos):

 * status:  new => open
 * reproduced:  0 => 1
 * component:  avformat => avcodec
 * priority:  normal => important
 * keywords:   => h264 codecpar regression
 * analyzed:  1 => 0


Old description:

> Summary of the bug:
>
> Use ffprobe to analyze a h264 1080p(920x1080) video, it will show the
> coded_height is 1080, which is different from the value parsed from
> h264_decode_frame (1088).
>
> Looks like ffprobe always show coded_height/coded_width equal to
> height/width
>
> How to reproduce:
>
> ./ffprobe -report -show_streams ~/Videos/test_1080p.h264
> ffprobe started on 2018-01-11 at 17:25:35
> Report written to "ffprobe-20180111-172535.log"
> ffprobe version N-89764-g76a3753 Copyright (c) 2007-2018 the FFmpeg
> developers
>   built with gcc 4.8.5 (GCC) 20150623 (Red Hat 4.8.5-11)
>   configuration: --enable-libmfx --enable-libx264 --enable-gpl --disable-
> optimizations --enable-debug=3
>   libavutil      56.  7.100 / 56.  7.100
>   libavcodec     58.  9.100 / 58.  9.100
>   libavformat    58.  3.100 / 58.  3.100
>   libavdevice    58.  0.100 / 58.  0.100
>   libavfilter     7. 11.101 /  7. 11.101
>   libswscale      5.  0.101 /  5.  0.101
>   libswresample   3.  0.101 /  3.  0.101
>   libpostproc    55.  0.100 / 55.  0.100
> Input #0, h264, from '/samba/anonymous/Videos/test_1080p.h264':
>   Duration: N/A, bitrate: N/A
>     Stream #0:0: Video: h264 (High), yuv420p(progressive), 1920x1080 [SAR
> 1:1 DAR 16:9], 25 fps, 25 tbr, 1200k tbn, 50 tbc
> [STREAM]
> index=0
> codec_name=h264
> codec_long_name=H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10
> profile=High
> codec_type=video
> codec_time_base=1/50
> codec_tag_string=[0][0][0][0]
> codec_tag=0x0000
> width=1920
> height=1080
> coded_width=1920
> coded_height=1080
> has_b_frames=1
> sample_aspect_ratio=1:1
> display_aspect_ratio=16:9
> pix_fmt=yuv420p
> level=40
> color_range=unknown
> color_space=unknown
> color_transfer=unknown
> color_primaries=unknown
> chroma_location=left
> field_order=progressive
> timecode=N/A
> refs=1
> is_avc=false
> nal_length_size=0
> id=N/A
> r_frame_rate=25/1
> avg_frame_rate=25/1
> time_base=1/1200000
> start_pts=N/A
> start_time=N/A
> duration_ts=N/A
> duration=N/A
> bit_rate=N/A
> max_bit_rate=N/A
> bits_per_raw_sample=8
> nb_frames=N/A
> nb_read_frames=N/A
> nb_read_packets=N/A
> DISPOSITION:default=0
> DISPOSITION:dub=0
> DISPOSITION:original=0
> DISPOSITION:comment=0
> DISPOSITION:lyrics=0
> DISPOSITION:karaoke=0
> DISPOSITION:forced=0
> DISPOSITION:hearing_impaired=0
> DISPOSITION:visual_impaired=0
> DISPOSITION:clean_effects=0
> DISPOSITION:attached_pic=0
> DISPOSITION:timed_thumbnails=0
> [/STREAM]

New description:

 Summary of the bug:

 Use ffprobe to analyze a h264 1080p(920x1080) video, it will show the
 coded_height is 1080, which is different from the value parsed from
 h264_decode_frame (1088).

 Looks like ffprobe always show coded_height/coded_width equal to
 height/width

 How to reproduce:
 {{{
 ./ffprobe -report -show_streams ~/Videos/test_1080p.h264
 ffprobe started on 2018-01-11 at 17:25:35
 Report written to "ffprobe-20180111-172535.log"
 ffprobe version N-89764-g76a3753 Copyright (c) 2007-2018 the FFmpeg
 developers
   built with gcc 4.8.5 (GCC) 20150623 (Red Hat 4.8.5-11)
   configuration: --enable-libmfx --enable-libx264 --enable-gpl --disable-
 optimizations --enable-debug=3
   libavutil      56.  7.100 / 56.  7.100
   libavcodec     58.  9.100 / 58.  9.100
   libavformat    58.  3.100 / 58.  3.100
   libavdevice    58.  0.100 / 58.  0.100
   libavfilter     7. 11.101 /  7. 11.101
   libswscale      5.  0.101 /  5.  0.101
   libswresample   3.  0.101 /  3.  0.101
   libpostproc    55.  0.100 / 55.  0.100
 Input #0, h264, from '/samba/anonymous/Videos/test_1080p.h264':
   Duration: N/A, bitrate: N/A
     Stream #0:0: Video: h264 (High), yuv420p(progressive), 1920x1080 [SAR
 1:1 DAR 16:9], 25 fps, 25 tbr, 1200k tbn, 50 tbc
 [STREAM]
 index=0
 codec_name=h264
 codec_long_name=H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10
 profile=High
 codec_type=video
 codec_time_base=1/50
 codec_tag_string=[0][0][0][0]
 codec_tag=0x0000
 width=1920
 height=1080
 coded_width=1920
 coded_height=1080
 has_b_frames=1
 sample_aspect_ratio=1:1
 display_aspect_ratio=16:9
 pix_fmt=yuv420p
 level=40
 color_range=unknown
 color_space=unknown
 color_transfer=unknown
 color_primaries=unknown
 chroma_location=left
 field_order=progressive
 timecode=N/A
 refs=1
 is_avc=false
 nal_length_size=0
 id=N/A
 r_frame_rate=25/1
 avg_frame_rate=25/1
 time_base=1/1200000
 start_pts=N/A
 start_time=N/A
 duration_ts=N/A
 duration=N/A
 bit_rate=N/A
 max_bit_rate=N/A
 bits_per_raw_sample=8
 nb_frames=N/A
 nb_read_frames=N/A
 nb_read_packets=N/A
 DISPOSITION:default=0
 DISPOSITION:dub=0
 DISPOSITION:original=0
 DISPOSITION:comment=0
 DISPOSITION:lyrics=0
 DISPOSITION:karaoke=0
 DISPOSITION:forced=0
 DISPOSITION:hearing_impaired=0
 DISPOSITION:visual_impaired=0
 DISPOSITION:clean_effects=0
 DISPOSITION:attached_pic=0
 DISPOSITION:timed_thumbnails=0
 [/STREAM]
 }}}

--

Comment:

 Regression since 6f69f7a8

--
Ticket URL: <https://trac.ffmpeg.org/ticket/6958#comment:3>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list