[VLC - Darwin Streaming Server]Problem with multiple stream

About encoding, codec settings, muxers and filter usage
tigershark
New Cone
New Cone
Posts: 3
Joined: 04 Aug 2008 18:57

[VLC - Darwin Streaming Server]Problem with multiple stream

Postby tigershark » 04 Aug 2008 19:22

Hi all,
I have seen a couple of thread about this problem, but i could not a find a clear working solution.
My current system is configured in this way:

- a MS windows PC
- a USB webcam
- a network camera
- VLC
- Darwin Streaming Server

I can stream succesfully each of my two cameras to Darwin Streaming Server sending the generated sdp file to the darwin's movies directory.
But if I send the two streams simoultaneously to darwin, the second one get crippled out because the RTP video port is the same.
So i thought: "Ok, I need only to change the rtp-port-video parameter specifying a different port for each of the streams".
But I can't make it work.

The VLC command line parameters that I use are these:

1) vlc dshow:// --dshow-vdev="TRUST 120 SPACEC@M" --dshow-adev="none" --dshow-size="" --sout "#transcode:rtp" --sout-transcode-vcodec="mp4v" --sout-transcode-vb="96" --sout-transcode-scale="1" --sout-rtp-dst="192.168.104.139" --sout-rtp-port-video="5001" --sout-rtp-ttl="127" --sout-rtp-sdp="file://C:\Program Files\Darwin Streaming Server\Movies\1.sdp"

2)vlc http://192.168.104.103:8000/image?speed=10 --sout "#transcode:rtp" --sout-transcode-vcodec="mp4v" --sout-transcode-vb="192" --sout-transcode-scale="1" --sout-rtp-dst="192.168.104.139" --sout-rtp-port-video="5002" --sout-rtp-ttl="127" --sout-rtp-sdp="file://C:\Program Files\Darwin Streaming Server\Movies\2.sdp"

But whenever I add the --sout-rtp-port-video option i cannot access any of the streams, receiving on the client side this error:

main debug: `rtsp://127.0.0.1/1.sdp' successfully opened
live555 warning: no data received in 10s. Switching to TCP
live555 debug: RTP subsession 'video/MP4V-ES'
live555 error: no data received in 10s, aborting
main debug: EOF reached
main debug: closing input
main debug: removing module "live555"
ffmpeg debug: ffmpeg codec (MPEG-4 Video) stopped
main debug: removing module "ffmpeg"
main debug: thread times: real 0m10.953125s, kernel 0m0.000000s, user 0m0.000000s
main debug: thread 4148 joined (input/decoder.c:191)
main debug: killing decoder fourcc `mp4v', 0 PES in FIFO
main debug: thread times: real 0m10.968750s, kernel 0m0.031250s, user 0m0.000000s
main debug: thread 3976 joined (input/input.c:412)
main: nothing to play

The instance of VLC sending the video produces this log:

main debug: using sout access module "access_output_udp"
stream_out_rtp debug: access out udp{raw,ttl=127}:192.168.104.139:5001
stream_out_rtp debug: maximum RTP packet size: 1450 bytes
stream_out_rtp debug: sdp=v=0
o=- 3097343000 1 IN IP4 127.0.0.1
s=NONE
t=0 0
a=tool:vlc 0.8.6f
c=IN IP4 192.168.104.139
m=video 5001 RTP/AVP 96
b=AS:96
a=rtpmap:96 MP4V-ES/90000
a=fmtp:96 profile-level-id=3; config=000001b001000001b58913000001000000012000c48d8800cd05040f1463000001b24c61766335312e32382e30;

Have you got any idea to make VLC succesfully work with Darwin Streaming Server using an rtp-port-video different form the default port?

kenzo1982
New Cone
New Cone
Posts: 7
Joined: 08 Jul 2008 09:56

Re: [VLC - Darwin Streaming Server]Problem with multiple stream

Postby kenzo1982 » 19 Aug 2008 12:48

Hi,

I supose you would have resolved your problem time ago. Anyway, if you see the sdp generated in the vlc log messages, you would see, in both instaces of vlc for each cam, if rtp video ports are correctly established. I suggest you try followings options instead of --sout-rtp-port-video:
cam1: --sout-rtp-port=5002 --sout-rtp-port-video=5000
cam1: --sout-rtp-port=6002 --sout-rtp-port-video=6000
(choosing any direfents even ports for each cam)

Regards


Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 15 guests