GNOME Bugzilla – Bug 578160
ffenc_h263 doesn't list the resolutions it actually supports
Last modified: 2009-11-10 11:32:08 UTC
Please describe the problem: When listing the caps of ffenc_h263, it doesn't state which resolutions it can accept on its src, while gstffmpegcodecmap.c indicates the following: /* 128x96, 176x144, 352x288, 704x576, and 1408x1152. slightly reordered * because we want automatic negotiation to go as close to 320x240 as * possible. */ const static gint widths[] = { 352, 704, 176, 1408, 128 }; const static gint heights[] = { 288, 576, 144, 1152, 96 }; Steps to reproduce: gst-inspect ffenc_h263 or run gst-launch videotestsrc ! video/x-raw-yuv, width=640, height=480 ! ffenc_h263 ! ffdec_h263 ! xvimagesink Actual results: in the first case, there's no mention of the finite resolutions supported by ffenc_h263. in the second case, the pipeline fails with: WARNING: erroneous pipeline: could not link videotestsrc0 to ffenc_h2630 Expected results: in the first case, I'd expect the resolutions to be listed in some way. in the second case, I'd expect an error message or warning about the resolution being unacceptable. Does this happen every time? yes Other information:
Created attachment 147325 [details] [review] Make sure we use restricted caps when applicable