Page 1 of 1

SDP file raw video

Posted: 28 Nov 2017 16:43
by xamix
Hi,

I'm in the process of testing a RTP stream that I generate in accordance with RFC4175: https://tools.ietf.org/html/rfc4175#section-6.2
The RTP contain raw RGB image with 8bits depth for each color (24bits per pixels)

The following is my SDP file (raw.sdp):
v=0
o=- 1 1 IN IP4 192.168.99.200
s=-
c=IN IP4 192.168.99.100
t=0 0
a=recvonly
a=type:broadcast
m=video 5004 RTP/AVP 99
a=rtpmap:99 raw/90000
a=fmtp:99 sampling=RGB; width=80; height=60; depth=8; colorimetry=SMPTE240M

Can someone indicate to me how to play the RTP stream by passing SDP file as parameter to vlc?
I tryed with command line "vlc.exe raw.sdp" but it seem that nothing is done, even the port 5004 is not opened because I see in Wireshark that the port is not opened (ICMP message indicate that port is not reachable)
Also I tried with the GUI by selecting rtp://192.168.99.200:5004 in network stream, now the port seem to be opened because no more ICMP message are sent but it indicate to me:

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 (99).


But I don't know how to indicate the sdp file with a local folder.

Any idea?

Regards.

Re: SDP file raw video

Posted: 28 Nov 2017 17:21
by Rémi Denis-Courmont
Open a file containing the SDP.

Re: SDP file raw video

Posted: 28 Nov 2017 17:32
by xamix
I'have already done that, VLC is opening but nothing is playing and as I said, no UDP port is opened on the passed port 5004 with this technique.
I'have take a look into VLC source code and what I've found is that my raw format seem handled by VLC in output server mode because rtpfmt.c as code relying on that:

case VLC_CODEC_RGB24:
rtp_fmt->ptname = "RAW";
rtp_fmt->pf_packetize = rtp_packetize_rgb24;
if( asprintf( &rtp_fmt->fmtp,
"sampling=RGB; width=%d; height=%d; "
"depth=8; colorimetry=SMPTE240M",
p_fmt->video.i_visible_width,
p_fmt->video.i_visible_height ) == -1 )
{
rtp_fmt->fmtp = NULL;
return VLC_ENOMEM;
}
But I cannot found any parsing or codec for input stream with the format.

Also the following file https://github.com/videolan/vlc/blob/5a ... /rtp/rtp.c may indicate in comment that SDP parser is not implemented:
/*
* TODO: so much stuff
* - send RTCP-RR and RTCP-BYE
* - dynamic payload types (need SDP parser)
* - multiple medias (need SDP parser, and RTCP-SR parser for lip-sync)
* - support for stream_filter in case of chained demux (MPEG-TS)
*/

Re: SDP file raw video

Posted: 28 Nov 2017 19:00
by Rémi Denis-Courmont
SDP are handled by live555 because there are no sponsors to develop proper support in VLC. So you'd have to check live555.

Re: SDP file raw video

Posted: 28 Nov 2017 19:15
by xamix
I will check live555.

In the mean time I'have checked 'ffmpeg' which have a parser for SDP with RFC4175 (raw uncompressed video on RTP) since begining of this year:
https://github.com/FFmpeg/FFmpeg/blob/m ... _rfc4175.c

But it seem to handle only 'YCbCr-4:2:2' color format, not RGB format for the moment.
SDP are handled by live555 because there are no sponsors to develop proper support in VLC. So you'd have to check live555.
VLC do not use also ffmpeg for SDP?

Regards