How to do VDPAU acceleration from appsrc-stream example?

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

How to do VDPAU acceleration from appsrc-stream example?

Lauraire
Hi,
 
I would like to adapt the appsrc-stream example to do vdpau acceleration. My problem is that I have a data stream from a server (data packets of differents size) and I want to push it to the buffer...
The pipeline would finaly look like :                                    (guint8)* data -> playbin2 -> vdpauvideopostprocess -> vdpausink
 
Is appsrc-example adapted to this situation? I've understood from the code that a filename is given... it seems strange considering a stream example....?
 
How can I tell that the data of appsrc are data from my stream?
 
 
 

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

Re: How to do VDPAU acceleration from appsrc-stream example?

Lauraire
What I have done so far from the appsrc-example is :

* modifying the pipeline as :

        /* *************** building the pipeline ***************** */
        GstElement * pipeline, *playbin, *postprocess, *videosink;
        pipeline    = gst_pipeline_new ("pipeline");
        playbin     = gst_element_factory_make ("playbin2", "playbin-2");
        postprocess = gst_element_factory_make ("vdpauvideopostprocess", "vdpau-video-post-process");
        videosink   = gst_element_factory_make ("vdpausink", "vdpau-sink");
        /* set to read from appsrc */
        g_object_set (playbin, "uri", "appsrc://", NULL);

        app->playbin = pipeline;

* What do I have to change to signify that the data are from my stream....? In read_data I suppose?