Streaming with VLC and DSS

About encoding, codec settings, muxers and filter usage
maynard
New Cone
New Cone
Posts: 4
Joined: 13 May 2008 13:24

Streaming with VLC and DSS

Postby maynard » 13 May 2008 13:33

First of all; can darwin streaming server recieve two unique LIVE streams, and then send out the same unique streams out? i can without problem recieve one LIVE stream and one on-demand, but as soon as i try to open two LIVE streams, dv cam and webcam, I get the same stream(the first one of the two i start) on both pictures. here is my transcoding lines:

#webcam
vlc -I dummy v4l:// :v4l-vdev="/dev/video0" :v4l-adev="/dev/dsp" --sout '#transcode{vcodec=h264,vb=600,width=640,height=480,
deinterlace,acodec=mp4a,ab=160,channels=2}
:rtp{dst=xxx.xx.xx.xx,port=8002,port-audio=40000,
port-video=40002,ttl=127,sdp=file:///dss/movies/webcam.sdp}'

#dv cam
vlc -I dummy dv/rawdv:///dev/raw1394 --dv-caching 10000 --sout
'#transcode{vcodec=h264,vb=720,width=640,height=480,deinterlace,acodec=mp4a,
ab=160,channels=2}
:duplicate{dst=display,dst=rtp{dst=xxx.xx.xx.xx,port=8004,port-audio=40000,
port-video=40002,ttl=127,sdp=file:///dss/movies/dv.sdp}}'

i have also tried to change the port audio and video on one of them to 40004 and 40006, still no luck. if anyone could i'd be very grateful.
anyone knows whats wrong?

rbarrero
Blank Cone
Blank Cone
Posts: 31
Joined: 19 Feb 2008 09:27

Re: Streaming with VLC and DSS

Postby rbarrero » 14 May 2008 08:40

Hi... try this command syntax and tell me what you get:

./vlc -vvv YOUR_INPUT --sout '#transcode{venc=ffmpeg,vcodec=h264,vb=600,scale=1}:rtp{dst=xxx.xxx.xxx.xxx,port-audio=41350,port-video=51350,sdp=file:///path/to/file.sdp'

Specify the venc, declare port-audio on far different port than port-video. Don't use "port=".

Tell me if this works for you!

Thanks,

Rafael

rbarrero
Blank Cone
Blank Cone
Posts: 31
Joined: 19 Feb 2008 09:27

Re: Streaming with VLC and DSS

Postby rbarrero » 16 May 2008 03:18

From my thread...

####
Hi everyone... I never got a response on this (in here or IRC), but I was able to resolve my problem.

Solution: VLC-0.8.6f works. Never expected 0.9.0-git to have broken RTP support.

With vlc 0.8.fI'm now able to:
1. define ports for video and audio (and they actually work)
2. stream multiple RTP streams to another machine and have no interference problem
3. data actually is streamed via udp (rtp)

Hope this helps!

Thanks,

Rafael
####

maynard
New Cone
New Cone
Posts: 4
Joined: 13 May 2008 13:24

Re: Streaming with VLC and DSS

Postby maynard » 16 May 2008 13:51

this is promising. gonna try this later today. i'm running 0.8.6c now, but hope upgrading to f will do it for me too. will let you know.

maynard
New Cone
New Cone
Posts: 4
Joined: 13 May 2008 13:24

Re: Streaming with VLC and DSS

Postby maynard » 18 May 2008 00:12

can not explain how good i feel now. you were right, there was a bug in the 0-8-6c. i downloaded the 0.8.6f and build it myself with this configure line. but first i got the x264 here:
http://www.jbkempf.com/blog/post/2008/0 ... -Hardy-804
and the ffmpeg here:
http://www.jbkempf.com/blog/post/2007/0 ... Feisty-704

./configure --prefix=/usr --enable-snapshot --enable-debug --enable-libtool --enable-dbus-control --enable-musicbrainz --enable-mozilla --enable-lirc --with-ffmpeg-tree=../extras/ffmpeg --enable-x264 --with-x264-tree=../extras/x264 --enable-shout --enable-taglib --enable-v4l --enable-dvb --enable-realrtsp --disable-xvmc --enable-svg --enable-dvdread --enable-dc1394 --enable-dv --enable-theora --enable-faad --enable-twolame --enable-real --enable-flac --enable-tremor --with-ffmpeg-mp3lame --with-ffmpeg-faac --enable-skins2 --enable-qt4 --enable-ncurses --enable-aa --enable-caca --enable-esd --disable-portaudio --enable-jack --enable-xosd --enable-galaktos --enable-goom --enable-ggi --disable-cddax --disable-vcdx --disable-quicktime


i got three streams working now, two live ones and one other. so good stuff. thanks to everyone that helped out. hope this helps you as well.


Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 13 guests