[gst-devel] missing caps in ffmpeg
Thomas Vander Stichele
thomas at apestaart.org
Sun Sep 11 06:24:20 CEST 2005
Hi,
On Mon, 2005-09-05 at 11:17 +0100, Philip de Nier wrote:
> The ffmpeg ffenc_mpeg2video (and some others like ffenc_h263) are not
> returning the correct caps and the negotiation of links is failing. For
> example, the code below:
> GstElement* encoder = gst_element_factory_make
> ("ffenc_mpeg2video", "encoder");
> GstPad* pad = gst_element_get_pad(encoder, "sink");
> GstCaps* caps = gst_pad_get_caps(pad);
> printf("Caps: %s\n", gst_caps_to_string(caps));
> returns:
> Caps: video/x-raw-yuv, width=(int)[ 16, 4096 ], height=(int)[ 16,
> 4096 ], framerate=(double)[ 0, 1.7976931348623157e+308 ], format=(fourcc)I420
This looks correct to me.
> It should return all 11 caps returned by "gst-inspect ffenc_mpeg2video"?
What 11 caps ? Here's what I get:
Pad Templates:
SRC template: 'src'
Availability: Always
Capabilities:
video/mpeg
width: [ 16, 4096 ]
height: [ 16, 4096 ]
framerate: [ 0, 1.7976931348623157e+308 ]
mpegversion: 2
systemstream: false
SINK template: 'sink'
Availability: Always
Capabilities:
video/x-raw-rgb
video/x-raw-yuv
> I've tried a simple pipeline such as "gst-launch filesrc location=test.dv !
> decodebin ! ffenc_mpeg2video ! filesink location=test-output" and that also
> fails.
I'd like to reproduce your problem but I don't have a .dv sample clip.
Could you try with any of the media provided on
http://gstreamer.freedesktop.org/media or supply us with a (preferably
small) DV test file ?
Thomas
Dave/Dina : future TV today ! - http://www.davedina.org/
<-*- thomas (dot) apestaart (dot) org -*->
Zou een heel klein beetje oorlog soms niet beter kunnen zijn ?
<-*- thomas (at) apestaart (dot) org -*->
URGent, best radio on the net - 24/7 ! - http://urgent.fm/
More information about the gstreamer-devel
mailing list