gstreamer vaapi pipeline not working? (vaapidownload)

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

gstreamer vaapi pipeline not working? (vaapidownload)

David Kosir
I'm experimenting with gstreamer-vaapi and I find this as working:
---------
gst-launch-0.10 -v filesource location=/path/to/file.mp4 ! qtdemux !
vaapidecode ! vaapisink
---------

I want to be able to output video to my window, so for the first step
I've tried this but without any success
---------
gst-launch-0.10 -v filesource location=/path/to/file.mp4 ! qtdemux !
vaapidecode ! vaapidownload | fakesink
---------


this example is trivial as I'm still learning gstreamer, so my idea is
to provide my own opengl texture for gstreamer to play vaapi-decoded
video. Any tips for that will be highly appreciated.

Thanks!
_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: gstreamer vaapi pipeline not working? (vaapidownload)

Holger Kaelberer
Hi

On 03/14/2012 06:06 AM, David Kosir wrote:

> I want to be able to output video to my window, so for the first step
> I've tried this but without any success
> ---------
> gst-launch-0.10 -v filesource location=/path/to/file.mp4 ! qtdemux !
> vaapidecode ! vaapidownload | fakesink
                              ^^^
Use '!' instead of '|' here.

If you want the decoded video displayed in a specific XWindow use the XOverlay interface, which is
implemented by vaapisink:
http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-base-libs/html/gst-plugins-base-libs-gstxoverlay.html

Note, that you don't need vaapidownload for that. vaapidownload does a readback of the decoded data
from GPU to RAM which will slow down your decoding by factor 4 or more compared to a pure
vaapi-based pipeline. You probably want to do that only if you need to post-process after the decoder.

Holger
_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel