Format of SDP files for multicast streams

About encoding, codec settings, muxers and filter usage
erpl08
New Cone
New Cone
Posts: 3
Joined: 20 Apr 2006 16:18
Location: Edinburgh, Scotland

Format of SDP files for multicast streams

Postby erpl08 » 20 Apr 2006 17:10

Hi

I'm using VLC 0.8.4a on XP SP2 to successfully multicast mp4v/mp4a over UDP using the DirectShow interface for an Osprey-300 capture card.

Code: Select all

vlc -vvv dshow:// :dshow-vdev="Osprey-300 Analog Video 1" :dshow-adev="Osprey-300 Analog Audio 1" :dshow-size="" --sout=#transcode{vcodec=mp4v,vb=768,scale=1,acodec=mp4a,ab=64,channels=2} :duplicate{dst=std{access=udp,mux=ts,url=239.255.240.12:1234}}
Using vlc I can play this by entering udp://@multicastip:port

What I would now like to be able to do is create an SDP (.sdp) file? to announce the stream which can be placed in an HTML page and served over HTTP having added the necessary MIME type application/sdp .sdp into the web server

So the user simply selects the URL and their VLC/RealNetworks/Helix/WM/QuickTime player - whichever is configured to handle application/sdp - reads the .sdp file and connects to the stream.

Other than the RFC 2327 I can't find any references to the format of the .sdp file so any pointers here would be greatly appreciated.

Any guidance as to the best video and audio codecs to transcode with for the widest range of players would also be appreciated. For 'political' reasons to do with my workplace I need to be able to support VLC and at least one other player/client.

Many thanks
john.smith@ed.ac.uk
phone: + 44 (0) 131 650 6915
Information Tools, EUCS, Main Library, George Sq.
Edinburgh EH8 9LJ, Scotland

wang
Blank Cone
Blank Cone
Posts: 31
Joined: 17 Mar 2006 15:02

Postby wang » 20 Apr 2006 17:22

Same topic as me??? lol :)

DanEE
New Cone
New Cone
Posts: 5
Joined: 25 Apr 2006 11:52

Postby DanEE » 25 Apr 2006 11:53

I have the same question

Piched UQAT

Postby Piched UQAT » 24 May 2006 16:04

Hi, this command line works for multicast stream:

:sout=#transcode{vcodec=mp4v,vb=192,scale=1,acodec=mpga,ab=64,channels=2}:rtp{dst=225.3.3.4,sdp=file://\\205.151.74.114\video3.sdp}}

the code for the web page:

<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Contacts 2006</title>
</head>

<body>

<p align="center">
<!-- begin embedded QuickTime file... -->
<table border='0' cellpadding='0' align="center" width="100%" height="100%">
<!-- begin video window... -->
<tr><td>
<OBJECT classid='clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B' width="100%"
height="100%" codebase='http://www.apple.com/qtactivex/qtplugin.cab'>
<param name='src' value="qtlogo.mov">
<param name='qtsrc' value="file://\\205.151.74.114\video3.sdp">
<param name='autoplay' value="true">
<param name='controller' value="true">
<param name='loop' value="false">
<EMBED src="qtlogo.mov" qtsrc="file://\\205.151.74.114\video3.sdp" width="100%" height="100%" autoplay="true"
controller="true" loop="false" pluginspage='http://www.apple.com/quicktime/download/'>
</EMBED>
</OBJECT>
</td></tr>
<!-- ...end embedded QuickTime file -->
</table>
<p align="center">
<!--webbot bot="HitCounter" i-image="4" I-ResetValue="0" I-Digits="3" U-Custom --></p>
</p>

</body>

</html>

**ALSO FOR UNICAST**

:sout=#transcode{vcodec=mp4v,vb=192,scale=1,acodec=mpga,ab=64,channels=2}:rtp{dst=205.151.73.53,sdp=rtsp://205.151.73.53/contacts}}

and you do not need to enable anything for RTSP works.

the html is the same replace
<param name='qtsrc' value="file://\\205.151.74.114\video3.sdp">
for
<param name='qtsrc' value="sdp=rtsp://205.151.73.53/contacts">

robc
Blank Cone
Blank Cone
Posts: 53
Joined: 22 Dec 2005 22:04
Location: Melbourne, Australia
Contact:

Re: Format of SDP files for multicast streams

Postby robc » 25 May 2006 04:00

Other than the RFC 2327 I can't find any references to the format of the .sdp file so any pointers here would be greatly appreciated.
RFC 2327 is *the* reference for the format of the SDP file - The BNF grammer in appendix A of the RFC document should serve as the best reference that you can get on how to format your SDP file.


Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 12 guests