Page 1 of 1

run vlc using libvlc as rtsp server

Posted: 02 Jan 2011 07:59
by moti.lahiani
Hello all

I'm new to vlc, rtsp and streaming
i have a project that i need to play a video file (avi container with codec h264/mpeg/mpeg4) or audio file (mp3,wav...) while the file is downloading.
the idea i have is:
when the file is downloading open vlc rtsp server and stream the file to 127.0.0.1: 8000 and open a vlc rtsp client and read the stream from 127.0.0.1:8000
my problems are:
1) i dont know from where the file is downloading so the server cannot read from that ip (to stream the file)
2) is this is the right way to do that? is there any/better options?
3) how can i or what i need to configure in the libvlc command line so the vlc will act as server? what will be the command line to send to server?

any help will be useful
Thanks

Re: run vlc using libvlc as rtsp server

Posted: 02 Jan 2011 14:28
by Jean-Baptiste Kempf
How are you downloading?

Re: run vlc using libvlc as rtsp server

Posted: 04 Jan 2011 13:05
by moti.lahiani
Thanks for your reply

An application is download the file from some where and i get the path (in the temp directory) where the file is download to.
and i want to show/play the file while its still downloading

Re: run vlc using libvlc as rtsp server

Posted: 05 Jan 2011 17:18
by Jean-Baptiste Kempf
What protocol are you downloading it from?