How to link appsink to other gstelements?

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

How to link appsink to other gstelements?

ms
This post was updated on .
i have an encoded video file "sample.264" (using gst-lauch to generate and only has video stream), i have decoded and displayed frames onto screen. My pipeline is same as:
appsrc -> decodebin -> video converter (videoscale) -> video output (xvimagesink)
But, it run so fast. I wanna synchronize to display exactly in realtime, so i add appsink to my pipeline:
appsrc -> decodebin -> appsink (store decoded data)
And now, i have some trouble:
+ How to set PTS to GstBuffer?
+ How to display decoded data which stored in appsink?
Please suggest for me, thank so much
Reply | Threaded
Open this post in threaded view
|

Re: How to link appsink to other gstelements?

Jan Spurný
Hi,

have you tried forcing caps like this:

gst-launch filesrc location=sample.264 ! h264parse ! video/x-h264,framerate=\(fraction\)5/1 ! decodebin ! xvimagesink

?

On Mon, 05 Mar 2012 07:46:18 +0100 (CET)
ms <[hidden email]> wrote:

> i has an encoded video file "sample.264" (using gst-lauch to generate and
> only has video stream), i have decoded and displayed frames onto screen. My
> pipeline is same as:
> *appsrc -> decodebin -> video converter (videoscale) -> video output
> (xvimagesink)*
> But, it run so fast. I wanna synchronize to display exactly in realtime, so
> i add *appsink* to my pipeline:
> *appsrc -> decodebin -> appsink (store decoded data)*
> And now, i have some trouble:
> + How to set PTS to GstBuffer?
> + How to display decoded data which stored in appsink?
> Please suggest me, thank so much
>
> --
> View this message in context: http://gstreamer-devel.966125.n4.nabble.com/How-to-link-appsink-to-other-gstelements-tp4445271p4445271.html
> Sent from the GStreamer-devel mailing list archive at Nabble.com.
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
ms
Reply | Threaded
Open this post in threaded view
|

Re: How to link appsink to other gstelements?

ms
This post was updated on .
yes, i have try command:
gst-launch-0.10 filesrc location=dump_es.264 ! h264parse ! decodebin ! xvimagesink
It works fine. But i have another question: How to use h264parse in source code. Thank so much.