Can not create RTP capabilities
CC
zombiecong at gmail.com
Wed Jun 28 03:03:07 UTC 2017
Version: GStreamer 1.10.2
Platform: macOS 10.13 Beta
I use the command , and it works well. And I implement it by C , but the RTP
capabilities is not available。
gst-launch-1.0 -v udpsrc port=12347 !
application/x-rtp,payload=107,encoding-name=H264 ! rtph264depay ! queue !
mux. udpsrc port=12345 !
application/x-rtp,payload=111,encoding-name=OPUS,clock-rate=48000,
channels=2 ! rtpopusdepay ! opusparse ! opusdec ! queue ! voaacenc
bitrate=128000 ! aacparse ! audio/mpeg,mpegversion=4,stream-format=raw !
queue ! flvmux streamable=true name=mux ! queue ! rtmpsink
location=rtmp://localhost:1935/myapp/testav
The code I create rtph264depay RTP capabilities is below.
...
GstCaps *caps;
caps = gst_caps_new_simple ("application/x-rtp",
"encoding-name", G_TYPE_STRING, "H264",
"payload", G_TYPE_INT, 107, NULL);
if (!GST_IS_CAPS(caps)) {
g_printerr ("caps null ??.\n");
return -1;
}
...
--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/Can-not-create-RTP-capabilities-tp4683568.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.
More information about the gstreamer-devel
mailing list