After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 575545 - [gstffmpegenc] Wrong usage of AVCodec.pix_fmts
[gstffmpegenc] Wrong usage of AVCodec.pix_fmts
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-libav
git master
Other Linux
: Normal normal
: 0.10.9
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2009-03-16 11:53 UTC by Edward Hervey
Modified: 2009-07-31 11:27 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
If we have AVCodec.pix_fmts, get the caps from gstffmpegcodecmap.c (2.89 KB, patch)
2009-03-16 11:55 UTC, Edward Hervey
committed Details | Review

Description Edward Hervey 2009-03-16 11:53:00 UTC
In the _getcaps() implementation, we are being way too restrictive when analyzing the possible PixFmt usable by the encoder.

If there is a list of usable pix_fmt in AVCodec.pix_fmts, we should use those to get caps from gstffmpegcodecmap without creating a AVCodecContext and opening an actual encoder.
Comment 1 Edward Hervey 2009-03-16 11:55:07 UTC
Created attachment 130739 [details] [review]
If we have AVCodec.pix_fmts, get the caps from gstffmpegcodecmap.c
Comment 2 Sebastian Dröge (slomo) 2009-05-07 11:02:00 UTC
Edward, what's keeping this patch from being committed? :)
Comment 3 Sebastian Dröge (slomo) 2009-07-16 18:54:51 UTC
Ping?
Comment 4 Edward Hervey 2009-07-17 06:53:51 UTC
I'm guessing we were in a freeze when I submitted the original patch.

We can commit it.. but we'll need to make sure it doesn't introduce any regression (by running it through insanity).
Comment 5 Sebastian Dröge (slomo) 2009-07-30 11:24:32 UTC
Ok, then commit it and it will be tested extensively before the next release ;)
Comment 6 Edward Hervey 2009-07-31 11:27:55 UTC
SIR YES SIR !

commit 56887682d058c40b911bdd57cc8c59aabd5cb79b
Author: Edward Hervey <bilboed@bilboed.com>
Date:   Fri Jul 31 13:27:28 2009 +0200

    gstffmpegenc: Try getting the caps for the declared pixfmt without a context.
    
    PixFmt that are declared in AVCodec.pix_fmts are ones which are 'officially'
    declared as being supported. We should therefore not have to create a
    AVCodecContext and open an encoder to know if it's supported or not.
    Also, doing it this way allows us to better pickup configuration overrides
    we have in gstffmpegcodecmap for some codecs (like restrictions on width,
    height, framerate like it's the case for dnxhd).
    
    Fixes #575545