[FFmpeg-trac] #1548(avcodec:new): avcodec ignores profile when using ffmpeg C API
FFmpeg
trac at avcodec.org
Thu Jul 19 10:57:47 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):
The problem with error was, as it seems, that I have to use av_set_opt
AFTER avcodec_open2(c, codec, NULL).
When I do it like this:
{{{
if (avcodec_open2(c, codec, NULL) < 0)
{
av_log(c, AV_LOG_ERROR, "%s","could not open video codec\n");
exit(1);
}
av_opt_set(c, "profile", "baseline", AV_OPT_SEARCH_CHILDREN);
}}}
The error is gone, but the video remains of "High" profile. I really start
to think that this is a bug.
--
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/1548#comment:8>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list