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 |
Hi, try setting the element name:2018-04-30 11:21 GMT+02:00 GalDa <[hidden email]>: Hi there, _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
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 |
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 |
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 _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
Free forum by Nabble | Edit this page |