Diffculty streaming MJPEG streams simultaneously

About encoding, codec settings, muxers and filter usage
incarnateX
New Cone
New Cone
Posts: 3
Joined: 12 Oct 2007 13:17

Diffculty streaming MJPEG streams simultaneously

Postby incarnateX » 15 Nov 2007 17:58

Hello all,

I am experiencing a strange problem when using VLC with Darwin. I have two incoming streams to VLC over HTTP from two different cameras which are transcoded to MP4V and streamed out over RTP. The RTP sessions are being described via SDP to the Darwin server and it so happens that when the two different streams are tested from the client both show the same video.

Following are commands I am using to transcode and stream from VLC to Darwin.

vlc --sout "#transcode:rtp" --sout-transcode-vcodec="mp4v" --sout-transcode-vb="64" --sout-rtp-dst="127.0.0.1" --sout-rtp-ttl="127" --sout-rtp-sdp="file:///usr/local/movies/cam1.sdp" http://username:password@cam1ip:cam1port/nphMotionJpeg?Resolution=320x240&Quality=Motion

vlc --sout "#transcode:rtp" --sout-transcode-vcodec="mp4v" --sout-transcode-vb="64" --sout-rtp-dst="127.0.0.1" --sout-rtp-ttl="127" --sout-rtp-sdp="file:///usr/local/movies/cam2.sdp" http://username:password@cam2ip:cam2port/nphMotionJpeg?Resolution=320x240&Quality=Motion

Following are the commands I am using to play the stream:

vlc rtsp://localhost/cam1.sdp

vlc rtsp://localhost/cam2.sdp

Both play the video from cam1. I tried changing the RTP video ports using the --sout-rtp-port-video option. I specified port 1232(default otherwise) for cam1 and 1233 for cam2. But even in this case the video from the stream which was started first shows up in both the clients when playing. The camera streams do not have any audio streams.

Why is the Darwin server showing the same video for the different streams? Or the problem is not with Darwin at all?

Please help
Santosh.

Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 10 guests