(ConsolePipelineTester.exe:6464): GStreamer-CRITICAL **: UDPSRC AUDIO PIPELINE: gst_element_make_from_uri: assertion 'gst_uri_is_valid (uri)' failed
mapcol
markopacaklocarno at gmail.com
Thu Aug 25 15:02:48 UTC 2016
I try to run this pipeline starting from udpsrc up to udpsink on Visual
Studio 2013 but I can't make it work:
#include <gst\gst.h>
#include <gst\rtp\rtp.h>
#include <stdio.h>
#include <stdlib.h>
#include <iostream>
#include <Windows.h>
GMainLoop* loop = NULL;
GstElement* pipe = NULL;
// patterns
const char* pattern_1 = "udpsrc port=5521 ! \"application/x-rtp,
media=(string)audio, payload=(int)96, clock-rate=(int)90000,
encoding-name=(string)L16\" ! rtpjitterbuffer ! rtpL16depay ! decodebin !
audioconvert ! audioresample ! autoaudiosink";
int main(int argc, char *argv[])
{
gst_init(&argc, &argv);
loop = g_main_loop_new(NULL, FALSE);
pipe = gst_parse_launch(pattern_1, NULL);
if (pipe == NULL)
std::cout << "Pipeline failed" << std::endl;
else
std::cout << "Pipeline correct" << std::endl;
g_main_loop_run(loop);
gst_element_set_state(pipe, GST_STATE_PLAYING);
system("pause");
return 0;
}
But I get the following error on the conosle:
*(ConsolePipelineTester.exe:6464): GStreamer-CRITICAL **:
gst_element_make_from_uri: assertion 'gst_uri_is_valid (uri)' failed
Pipeline correct*
Does anyone know how to solve this? practically I'm not able to receive udp
streaming
--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/ConsolePipelineTester-exe-6464-GStreamer-CRITICAL-UDPSRC-AUDIO-PIPELINE-gst-element-make-from-uri-asd-tp4679241.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.
More information about the gstreamer-devel
mailing list