About SDP file generated by sout command

About encoding, codec settings, muxers and filter usage
nanger
New Cone
New Cone
Posts: 1
Joined: 30 Mar 2009 16:14

About SDP file generated by sout command

Postby nanger » 30 Mar 2009 16:20

hello,everyone
I want to know the differences between the SDP files generated by VLC(or Darwin Streaming Server Broadcaster) and the SDP file obtained by RTSP DESCRIBE method.

When I'm streaming a media using VLC, I can generate a SDP file using such command as "sdp=file://test.sdp". and I can open the streaming media by opening this SDP file using VLC. In the meanwhile, I also use RTSP DESCRIBE method to request the SDP file from the VLC(or Darwin streaming server), and then get another SDP file.But I can't open the media using this SDP file.
what is the reason?
Thank you!

below are two SDP files corresponding to the same streaming media


SDP file generated by VLC command
v=0

o=- 14806485098228088832 14806485098228088832 IN IP4 nanger

s=Unnamed

i=N/A

c=IN IP4 127.0.0.1

t=0 0

a=tool:vlc 0.9.8a

a=recvonly

a=type:broadcast

a=charset:UTF-8

m=audio 1234 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 1236 RTP/AVP 97

b=RR:0

a=rtpmap:97 H264/90000

a=fmtp:97 packetization-mode=1;profile-level-id=4d401e;sprop-parameter-sets=J01AHqkYMB73oA==,KM4C+IA=;



SDP file obtained by RTSP DESCRIBE request
v=0

o=StreamingServer 3447403513 1110207734000 IN IP4 127.0.0.1

s=\small.mp4

u=http:///

e=admin@

c=IN IP4 0.0.0.0

b=AS:2097279

t=0 0

a=control:*

a=isma-compliance:2,2.0,2

a=range:npt=0- 70.00000

m=video 0 RTP/AVP 96

b=AS:2097151

a=rtpmap:96 H264/90000

a=control:trackID=3

a=cliprect:0,0,480,380

a=framesize:96 380-480

a=fmtp:96 packetization-mode=1;profile-level-id=4D401E;sprop-parameter-sets=J01AHqkYMB73oA==,KM4C+IA=

a=mpeg4-esid:201

m=audio 0 RTP/AVP 97

b=AS:127

a=rtpmap:97 mpeg4-generic/48000/2

a=control:trackID=4

a=fmtp:97 profile-level-id=15;mode=AAC-hbr;sizelength=13;indexlength=3;indexdeltalength=3;config=1190

a=mpeg4-esid:101

Rémi Denis-Courmont
Developer
Developer
Posts: 15267
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: About SDP file generated by sout command

Postby Rémi Denis-Courmont » 31 Mar 2009 20:06

By design, the SDP from RTSP DESCRIBE has no connection informations, so it is impossible to even fetch the media.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

Di9rkSchooner
New Cone
New Cone
Posts: 7
Joined: 17 May 2009 01:08

Re: About SDP file generated by sout command

Postby Di9rkSchooner » 18 May 2009 11:38

Hi, can you tell me how you manage to output an sdp file using the above comand line method?

I have been using

sdp=file://test.sdp

but no file is created, I have posted here but no reply, everybody just assumes it works and won't help.

Rémi Denis-Courmont
Developer
Developer
Posts: 15267
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: About SDP file generated by sout command

Postby Rémi Denis-Courmont » 18 May 2009 17:22

Everybody assumes it works because it does work.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

Di9rkSchooner
New Cone
New Cone
Posts: 7
Joined: 17 May 2009 01:08

Re: About SDP file generated by sout command

Postby Di9rkSchooner » 21 May 2009 00:23

Yes it works if you remove the 'mux=xxx' command, thank's for your help Remi, if only everybody was as helpful as you, that's what forums are all about. Great social skills you have.

vlcvn
New Cone
New Cone
Posts: 2
Joined: 19 Jul 2009 06:35

Re: About SDP file generated by sout command

Postby vlcvn » 21 Jul 2009 17:51

Hi nanager,
can you send vlc commands for me (that SDP file generated) ?
Thanks

Incarnate
New Cone
New Cone
Posts: 5
Joined: 03 Jun 2010 08:26

Re: About SDP file generated by sout command

Postby Incarnate » 03 Jun 2010 08:29

Haha,
Rémi Denis-Courmont really letting people have it ha?


regardless,
Hope this helps Di9rkSchooner.

--sout=#'rtp{mp4a-latm,dst=<ip>,port-audio=<even-portnumber>,port-video=<diff even-portnumber>,sdp="file://new.sdp"}'


Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 5 guests