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

FFmpeg trac at avcodec.org
Tue Mar 19 23:45:15 CET 2013

#1386: ffprobe report different widths for some videos
             Reporter:  Đonny        |                    Owner:  stefano
                 Type:  defect       |                   Status:  closed
             Priority:  normal       |                Component:  avcodec
              Version:  unspecified  |               Resolution:  fixed
             Keywords:  coded_width  |               Blocked By:
  coded_height vp6f avcodec_open2    |  Reproduced by developer:  1
             Blocking:               |
Analyzed by developer:  1            |
Changes (by saste):

 * keywords:  height site XML JSON => coded_width coded_height vp6f
 * resolution:   => fixed
 * status:  open => closed
 * component:  FFprobe => avcodec


 Should be fixed in:
 commit 33b054986767a76bff64fe3091cca2eea07c27de
 Author: Stefano Sabatini <stefasab at gmail.com>
 Date:   Mon Mar 18 23:17:55 2013 +0100

     lavc/utils: add VP6F hack for setting correct video size in stream

     For some obscure reasons avcodec_set_dimensions() resets the
     so that the resulting value set in the stream is equal to the
     corresponding coded_width/height, which is not the same as the correct
     width/height in case of the H.264 and VP6F codecs.

     This adds a codec-specific hack for VP6F which disables the call to
     avcodec_set_dimensions() in avcodec_open2(), like it is done with
 H264. A
     proper fix needs to be found yet.

     Fix trac ticket #1386.

     Based on a patch by Michael Niedermayer.

     Trolled-By: Daemon404

     See thread:
     Subject: [FFmpeg-devel] [PATCH] ffprobe: Stash and use width and
 height before opening the codec
     Date: Fri,  1 Mar 2013 10:41:34 -0500

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

More information about the FFmpeg-trac mailing list