stopping decodebin before it decodes to raw video

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

stopping decodebin before it decodes to raw video

Jon Burgess-4
Hi,

I am wanting to do something like the following, but haven't been able to get it to work:

> gst-launch uridecodebin uri="rtsp://localhost:5554/test_small" ! queue ! decodebin ! video/x-h264 ! customsink

where uri could be an RTSP/RTP source as above, or perhaps say a quicktime movie file on disk.  "customsink" is my own element, which takes *encoded/compressed* data of some form (in this example, h264, but it could also be mpeg4 part2 as an example) - i.e not raw RGB or YUV.

decodebin always seems to decode to raw RGB/YUV, is there a way to get it to decode only to a certain caps? I have read the doco, but it is not clear to me if this is possible.

Thanks,
Jono

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: stopping decodebin before it decodes to raw video

michael smith-6-3
Not with decodebin, no. You can use decodebin2 for this - it has some
signals that the app can connect to to control the autoplugging
process, or for simpler cases you can just tell it what caps it may
output (via a property).

Mike


On Mon, Nov 17, 2008 at 10:05 PM, Jon Burgess <[hidden email]> wrote:

> Hi,
>
> I am wanting to do something like the following, but haven't been able to
> get it to work:
>
>> gst-launch uridecodebin uri="rtsp://localhost:5554/test_small" ! queue !
>> decodebin ! video/x-h264 ! customsink
>
> where uri could be an RTSP/RTP source as above, or perhaps say a quicktime
> movie file on disk.  "customsink" is my own element, which takes
> *encoded/compressed* data of some form (in this example, h264, but it could
> also be mpeg4 part2 as an example) - i.e not raw RGB or YUV.
>
> decodebin always seems to decode to raw RGB/YUV, is there a way to get it to
> decode only to a certain caps? I have read the doco, but it is not clear to
> me if this is possible.
>
> Thanks,
> Jono
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great
> prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>
>

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: stopping decodebin before it decodes to raw video

Jon Burgess-4
Mike,

Not with decodebin, no. You can use decodebin2 for this - it has some
signals that the app can connect to to control the autoplugging
process, or for simpler cases you can just tell it what caps it may
output (via a property).

Thanks, that worked.  For anyone who wants know, this is the gst-launch command I used (with ffdec_h264 and xvimagesink in place of my custom sink, so that video is actually rendered to screen):

> gst-launch uridecodebin uri="rtsp://localhost:5554/test_small" ! queue ! decodebin2 caps="video/x-h264" ! ffdec_h264 ! xvimagesink

Regards,
Jono

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel