rtsp sdp missing profile-level-id and sprop-parameter-sets

About encoding, codec settings, muxers and filter usage
crajc0
New Cone
New Cone
Posts: 6
Joined: 07 May 2010 15:01

rtsp sdp missing profile-level-id and sprop-parameter-sets

Postby crajc0 » 12 Jul 2010 23:20

Hi All,

I found that the rtsp server missing some fmtp information when streaming h.264 video. Here is what I did:
1. from one machine, I stream out an udp video to another machine:

:sout=#transcode{venc=x264{no-cabac,profile=baseline,level=1,keyint=50,vbv-maxrate=512},width=320,height=240,vb=512,fps=15,acodec=none}:std{access=udp{ttl=32}, mux=ts, dst=192.168.10.238:1234}

2. receive from the other machine and stream out as rtsp server:
:sout=#rtp{sdp=rtsp://0.0.0.0:554/chnl1.sdp}

The RTSP sdp has no profile-level-id information included.

However, if on the other rtsp server machine I use:

:sout=#transcode{venc=x264{keyint=50, vbv-maxrate=512},width=320,height=240,vb=512,fps=15,acodec=none}:rtp{sdp=rtsp://0.0.0.0:554/chnl1.sdp}

I then get profile-level-id in sdp.

Can anyone tell me how to make sure that rtsp server always give profile-level-id media information? Is there an external way to force rtsp server to provide this information?

JC

ILEoo
Developer
Developer
Posts: 91
Joined: 05 Nov 2008 16:29

Re: rtsp sdp missing profile-level-id and sprop-parameter-se

Postby ILEoo » 21 Jul 2010 10:52

Should be working fine in just released 1.1.1 (not sure when binaries are ready to download, but it's tagged in git).

crajc0
New Cone
New Cone
Posts: 6
Joined: 07 May 2010 15:01

Re: rtsp sdp missing profile-level-id and sprop-parameter-se

Postby crajc0 » 24 Aug 2010 22:52

thanks! I should try it under 1.1.1. But I am using Centos. I have to compile it. Do you know a link for build instruction? Thanks ahead for your help.

MASHtm
New Cone
New Cone
Posts: 8
Joined: 18 Sep 2008 20:45

Re: rtsp sdp missing profile-level-id and sprop-parameter-se

Postby MASHtm » 03 Sep 2010 14:14

Hi!
Should be working fine in just released 1.1.1 (not sure when binaries are ready to download, but it's tagged in git).
I just tried similar setup on Fedora 13 using rpmfusion vlc 1.1.4...

streaming step 1:

Code: Select all

vlc -I dummy -vvv movie.m2p --sout-mux-caching=5000 --sout-rtp-caching=5000 --sout="#transcode{venc=x264{keyint=25,profile=baseline,crf=26},vcodec=x264,vb=800,scale=0.5,fps=25,acodec=mp4a,ab=96,channels=2,samplerate=48000,audio-sync}:rtp{dst=127.0.0.1,port=10000,mux=ts}"
relaying it with

Code: Select all

vlc -I Dummy -vvv rtp://@:10000 --sout="#rtp{sdp=rtsp://0.0.0.0:5555/test.sdp}
results in an sdp file like

Code: Select all

v=0 o=- 15000190563737668505 15000190563737668505 IN IP4 localhost s=Unnamed i=N/A c=IN IP4 0.0.0.0 t=0 0 a=tool:vlc 1.1.4 a=recvonly a=type:broadcast a=charset:UTF-8 m=audio 0 RTP/AVP 96 b=RR:0 a=rtpmap:96 mpeg4-generic/48000/2 a=fmtp:96 streamtype=5; profile-level-id=15; mode=AAC-hbr; config=1190; SizeLength=13; IndexLength=3; IndexDeltaLength=3; Profile=1; m=video 0 RTP/AVP 97 b=RR:0 a=rtpmap:97 H264/90000 a=fmtp:97 packetization-mode=1
;profile-level-id=42c015;sprop-parameter-sets=Z0LAFbkIC4T/N/4APgA6IAAAAwAgAAAGUeLFyQ==,aM4yyA==;
is missing.

Retrieving the sdp via RTSP shows (mplayer -v)...

Code: Select all

v=0 o=- 15000191698121889144 15000191698121889144 IN IP4 localhost s=Unnamed i=N/A c=IN IP4 0.0.0.0 t=0 0 a=tool:vlc 1.1.4 a=recvonly a=type:broadcast a=charset:UTF-8 a=control:rtsp://127.0.0.1:5555/test.sdp m=audio 0 RTP/AVP 96 b=RR:0 a=rtpmap:96 mpeg4-generic/48000/2 a=fmtp:96 streamtype=5; profile-level-id=15; mode=AAC-hbr; config=1190; SizeLength=13; IndexLength=3; IndexDeltaLength=3; Profile=1; a=control:rtsp://127.0.0.1:5555/test.sdp/trackID=0 m=video 0 RTP/AVP 97 b=RR:0 a=rtpmap:97 H264/90000 a=fmtp:97 packetization-mode=1 a=control:rtsp://127.0.0.1:5555/test.sdp/trackID=1
Using win32 build makes no difference (at least for me).

Regards, MASHtm


Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 9 guests