[FFmpeg-trac] #1548(avcodec:new): avcodec ignores profile when using ffmpeg C API

FFmpeg trac at avcodec.org
Thu Jul 19 11:19:02 CEST 2012

#1548: avcodec ignores profile when using ffmpeg C API
             Reporter:  TheSHEEEP    |                    Owner:
                 Type:  defect       |                   Status:  new
             Priority:  important    |                Component:  avcodec
              Version:  0.10.4       |               Resolution:
             Keywords:  Profile,     |               Blocked By:
  h264, Baseline                     |  Reproduced by developer:  0
             Blocking:               |
Analyzed by developer:  0            |

Comment (by TheSHEEEP):

 I got it working!

 You need to use the priv_data instead of the context itself. I got the
 hint when searching for "av_opt_set profile".

 So this works:
 av_opt_set(c->priv_data, "profile", "baseline", AV_OPT_SEARCH_CHILDREN);

 And I actually do it before calling avcodec_open2().

 Consider this resolved. And thanks for the support!

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

More information about the FFmpeg-trac mailing list