Page 1 of 1
How to generate sdp file by vlc
Posted: 12 Sep 2006 11:25
by ificanfly99
hi,everyone,
I want to know how to generate a sdp file by vlc when vlc works as streaming server. I read the vlc help but get nothing these informatioin.
Do you have this kind of experience to generate a sdp?
I heard that the sdp generated by vlc is not the standard sdp,is that true?
Thanks very much for your help.
Posted: 12 Sep 2006 15:56
by sjensen
I use VLC with Darwin Streaming Server (from apple) and it generates a proper sdp file for me no problem.
Code: Select all
root@ubuntu:~# cat StartStream.sh
#!/bin/bash
clear
# $1 = sdp file name, put in /usr/local/movies
# $2 = ip to broadcast udp to
# $3 = port to broadcast udp to
echo \$1 should be the sdp file name \(foo.sdp\)
echo \$2 should be the IP to send the UDP stream to \(the ip of the DSS box\)
echo \$3 should be the port to broadcast to on the DSS box
echo ""
echo Example: StartStream.sh live.sdp 172.16.205.161 1234
echo ""
if [ -z $1 ]
then
echo Missing argument\(s\)
echo ""
exit 0
fi
if [ -z $2 ]
then
echo Missing argument\(s\)
echo ""
exit 0
fi
if [ -z $3 ]
then
echo Missing argument\(s\)
echo ""
exit 0
fi
echo " "
echo " "
echo Don\'t forget to copy /usr/local/movies/$1 to the /home/darwin/movies
echo directory on the darwin server
OUTPUT=`echo '#transcode{vcodec=mp4v,vb=400}:rtp{dst=DESTIP,port=DESTPORT,sdp=fi le:///usr/local/movies/SDP}' | sed s/SDP/$1/g | sed s/DESTIP/$2/g | sed s/DESTPO RT/$3/g`
echo vlc -I dummy v4l:/dev/video0:size=320x240 --no-audio --sout $OUTPUT
vlc -I dummy v4l:/dev/video0:size=320x240 --no-audio --sout $OUTPUT
[/code]
Posted: 13 Sep 2006 07:26
by ificanfly99
Thanks very much for your help! I get it!
Posted: 06 Jan 2007 19:01
by northbiker
Hi everybody,
I try to broadcast from my laptop to a server with darwin on the internet.
Your script help me but I cannot find how I have to configure darwin to get broadcast work.
My purpoose is to put a link like http://server:port/live.sdp (or rtsp) on a webpage to be able to view my stream.
I think I'm not so far but I can't get it
timothe