I have a server broadcasting the video generated by a USB webcam using GStream with the following gst-launch command:
gst-launch-1.0 v4l2src ! video/x-raw,width=352,height=288 ! jpegenc! rtpjpegpay ! udpsink host=239.255.12.52 port=5004
Now i need a client to play that broadcast with VLC. I tried playing the following:
rtsp://239.255.12.52:5004
But I only get the following error:
SDP required:
A description in SDP format is required to receive the RTP stream. Note that rtp:// URIs cannot work with dynamic RTP payload format (96).
Then i searched trying to find a sdp file that could help me play the stream. I tried this:
v=0
c=IN IP4 239.255.12.52
t=0
m=video 5004 RTP/AVP 96
a=rtpmap:96 JPEG/90000
But it did'nt work. The vlc log just says:
es error: cannot peek
es error: cannot peek
...
I know the stream is working because i can use gstreamer to play it with the following command:
gst-launch-1.0 udpsrc uri="udp://239.255.12.52:5004" ! application/x-rtp,encoding-name=JPEG,payload=26 ! rtpjpegdepay ! jpegdec ! autovideosink
But i need it play with vlc not gstreamer. Any ideas? Thanks!!