Getting pad capabilities from PIPELINE.

Ashwini Sharma ak.ashwini at gmail.com
Fri Oct 7 01:57:56 PDT 2011


My aim is to get the original video size. Thats why I get the caps at
ffmpegcsp. But I get the size 1280x720 which should not be the case until
after videoscale.

My doubt is why i am getting the size 1280x720 at ffmpegcsp, which is placed
before the videsocale.

Any reason to that?

-Ashwini

On Fri, Oct 7, 2011 at 1:57 PM, Mike Mitchell
<mike.mitchell at panometric.net>wrote:

> I don't understand the problem as you described it.
>
> Have you tired: gst-launch -v --gst-plugin-spew
>
> In your psuedo pipeline, the scaling is last, so the video will still be
> 704x480 until after videoscale.  But it's my understanding you needs caps at
> the output of video scale to tell it to upscale. If you provide that it will
> probably do what you want.
>
> *Mike Mitchell*
>
>
>
>
>
> On Thu, Oct 6, 2011 at 9:33 PM, Ashwini Sharma <ak.ashwini at gmail.com>wrote:
>
>> Hi All,
>>
>>    I want to the get the negotiated caps of a pad, to find the resolution
>> (width and height) and frame-rate of the video.
>>
>> My pipeline looks like
>>
>>
>>  filesrc->mpegtsdemux->decodebin->ffmpegcolorspace->videoscale->xvimagesink.
>>
>> In this pipeline I am scaling my video to 1280x720 resolution from 704x480
>>
>> When I get the "src" or "sink" pad of ffmpegcolorspace and print the caps
>> from that, the width and height are returned as 1280x720 and not the
>> original one 704x480.
>>
>> Can someone please tell me where am I going wrong.
>>
>> Thanks,
>> Ashwini Kumar
>>
>> _______________________________________________
>> gstreamer-devel mailing list
>> gstreamer-devel at lists.freedesktop.org
>> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>>
>>
>
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20111007/9c32f4fd/attachment.htm>


More information about the gstreamer-devel mailing list