how to create a simple rtsp stream

About encoding, codec settings, muxers and filter usage
mairena

how to create a simple rtsp stream

Postby mairena » 16 Apr 2006 10:29

Hi,

I Need help with the following to create a simple rtsp stream.
My computer is at 192.168.1.2
on this computer is a file: video.avi
My public IP is 80.37.22.219
port 1234 is open and directed to 192.168.1.2

From another computer, over the internet, I want to view this stream
rtsp://80.37.22.219:1234/video.avi

Can anyone explain exactly how to set up this rtsp stream, using vlc?

I have managed to view a stream using http, but not rtsp.

Sorry if this has been answered before, but I could not find it.

Thanks,

NAdim

ilyasdeen
New Cone
New Cone
Posts: 3
Joined: 26 Apr 2006 12:45

Postby ilyasdeen » 26 Apr 2006 12:55

Hi,

I have a similar problem too..I managed to play through rtsp using the command below in the stream output dialog. however when i view the stream its jerky.. hope this helps for u!

:sout=#rtp{dst=10.80.104.255,port=554,sdp=rtsp://10.80.104.117:554/birds.ts}

MikeInMass
New Cone
New Cone
Posts: 8
Joined: 21 Jul 2006 04:33
Location: Boston, USA

Simple RTSP command line doesn't work

Postby MikeInMass » 21 Jul 2006 08:21

I tried the following simple command line:

vlc -vvv dshow:// :dshow-vdev="Hauppauge WinTV PV
R PCI II Capture" :dshow-adev="none" :dshow-tuner-channel="12" :sout="#rtp{sdp=rtsp://192.168.1.100:8080/vid.sdp}" --ttl=10

...and then, in another window on the same machine (192.168.1.100), started the client:

vlc rtsp://192.168.1.100:8080/vid.sdp

But it didn't work!

In the server log I saw the client trying to connect:

main debug: Connection from 192.168.1.100
main debug: looking for sout access module: 1 candidate
main debug: set sout option: sout-udp-raw to (null)
main debug: set sout option: sout-udp-ttl to 10
main debug: net: connecting to 192.168.1.100 port 1230
main debug: thread 4896 (sout write thread) created at priority 15 (udp.c:268)
access_output_udp debug: udp access output opened(192.168.1.100:1230)
main debug: using sout access module "access_output_udp"
main debug: Connection from 192.168.1.100

...but the client's log had this:
livedotcom warning: no data received in 10s. Switching to TCP
livedotcom debug: RTP subsession 'audio/MPA'
livedotcom debug: RTP subsession 'video/MPV'
livedotcom error: PLAY failed No RTSP session is currently in progress

livedotcom error: TCP rollover failed, aborting
[...]
main: nothing to play

What was I doing wrong?


Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 9 guests