[FFmpeg-trac] #1386(FFprobe:open): ffprobe report different widths for some videos

FFmpeg trac at avcodec.org
Tue Jul 24 10:39:17 CEST 2012


#1386: ffprobe report different widths for some videos
-------------------------------------+-------------------------------------
             Reporter:  Đonny        |                    Owner:  stefano
                 Type:  defect       |                   Status:  open
             Priority:  normal       |                Component:  FFprobe
              Version:  unspecified  |               Resolution:
             Keywords:  height site  |               Blocked By:
  XML JSON                           |  Reproduced by developer:  1
             Blocking:               |
Analyzed by developer:  1            |
-------------------------------------+-------------------------------------
Changes (by saste):

 * analyzed:  0 => 1
 * status:  new => open
 * reproduced:  0 => 1


Comment:

 av_dump_format() prints the information stored in the codec context.

 The ffprobe open the codec (avcodec_open2), and set the width/height
 depending on the coded_width/height:
 {{{
     if(avctx->coded_width && avctx->coded_height)
         avcodec_set_dimensions(avctx, avctx->coded_width,
 avctx->coded_height);
     else if(avctx->width && avctx->height)
         avcodec_set_dimensions(avctx, avctx->width, avctx->height);
     }
 }}}

 according to commit 21adafec2a42d5575ff0a36a028849a9b886c055.

 ffprobe -show_frames shows a size of 360x288, so av_dump_format() seems
 right in this regard.

-- 
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/1386#comment:1>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list