d3dvideosink

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

d3dvideosink

GalDa
Hi there,

I'm trying to decode H264 udp stream and sink it to d3dvideosink so I can
use directX rendering on the video.
I can't figure out why d3dvideosink_element gets NULL?



<http://gstreamer-devel.966125.n4.nabble.com/file/t378188/1.png>



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

Re: d3dvideosink

Luca Bacci
Hi,

try setting the element name:
pipe = g_strdup_printf("udpsrc port =...  ...d3dvideosink name=sink ...");

Luca

2018-04-30 11:21 GMT+02:00 GalDa <[hidden email]>:
Hi there,

I'm trying to decode H264 udp stream and sink it to d3dvideosink so I can
use directX rendering on the video.
I can't figure out why d3dvideosink_element gets NULL?



<http://gstreamer-devel.966125.n4.nabble.com/file/t378188/1.png>



--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel


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

Re: d3dvideosink

GalDa
I don't know why it didn't let me past the raw code at first but that is
exactly what I did:

        /* Initialize GStreamer */
        gst_init(&argc, &argv);

        pipe = g_strdup_printf("udpsrc port = 5000 caps = \"application/x-rtp,
media=(string)video, clock-rate=(int)90000, encoding-name=(string)MP2T-ES\"
! rtpbin ! rtpmp2tdepay ! tsdemux ! h264parse ! avdec_h264 ! videoconvert !
d3dvideosink name=sink", NULL);

        /* Build the pipeline */
        pipeline = gst_parse_launch(pipe, &error);

        d3dvideosink_element = gst_bin_get_by_name((GstBin*)pipeline, "sink");



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

Re: d3dvideosink

GalDa
In reply to this post by Luca Bacci
I don't know why it didn't let me past the raw code at first but that is
exactly what I did:

        /* Initialize GStreamer */
        gst_init(&argc, &argv);

        pipe = g_strdup_printf("udpsrc port = 5000 caps = \"application/x-rtp,
media=(string)video, clock-rate=(int)90000, encoding-name=(string)MP2T-ES\"
! rtpbin ! rtpmp2tdepay ! tsdemux ! h264parse ! avdec_h264 ! videoconvert !
d3dvideosink name=sink", NULL);

        /* Build the pipeline */
        pipeline = gst_parse_launch(pipe, &error);

        d3dvideosink_element = gst_bin_get_by_name((GstBin*)pipeline, "sink");



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

Re: d3dvideosink

Luca Bacci
In reply to this post by GalDa
It should work just fine,
Try changing the project subsystem to "console" and set the environment variable GST_DEBUG=4.

After that when your run the application you should see a detailed log

2018-05-02 9:43 GMT+02:00 GalDa <[hidden email]>:
I don't know why it didn't let me past the raw code at first but that is
exactly what I did:

        /* Initialize GStreamer */
        gst_init(&argc, &argv);

        pipe = g_strdup_printf("udpsrc port = 5000 caps = \"application/x-rtp,
media=(string)video, clock-rate=(int)90000, encoding-name=(string)MP2T-ES\"
! rtpbin ! rtpmp2tdepay ! tsdemux ! h264parse ! avdec_h264 ! videoconvert !
d3dvideosink name=sink", NULL);

        /* Build the pipeline */
        pipeline = gst_parse_launch(pipe, &error);

        d3dvideosink_element = gst_bin_get_by_name((GstBin*)pipeline, "sink");



--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel


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