Page 1 of 1
Streaming movies over http
Posted: 30 Mar 2009 00:46
by megacrypto
Hi all,
im trying to make a website to allow me watch my movies from anywhere with internet (something like orb or windows media server) but using ubuntu linux. im sure this has been asked a million times, but i've been at it for the last 3 days now and still feel that im going around in circles.
this is what i got working until now:
cvlc -vvv /storage/videos/1.avi –sout '#transcode{vcodec=mp1v,vb=512,acodec=mpga,ab=64,scale=0.5,deinterlace}:standard{access=file,dst=testout.ts,mux=ts}' vlc://quit
but this creates a file (testout.ts) .. what i want to do is to click on my link from the web browser and my apache will then (using vlc) transcode the selected file and starts streaming it out.
My other concern is that im running all of this out of ubuntu server 8.10 which i have no desktop installed on it (its my home server and i connect to it using ssh, so i dont need to overload it with a desktop) so, my question is: should i be using vlc or vls to acheive what im trying to do?
thanks all for your help
Re: Streaming movies over http
Posted: 30 Mar 2009 18:44
by hakova
I am not an expert of vlc by any means, so please excuse my ignorance if my suggestion is not helpful or even accurate. I believe you should change your 'dst' parameter to the port number you would like to broadcast from, such as 8080 for example. You can also define here the IP of the computer to which this stream will be served (e.g. dst=192.168.0.1:8080). I believe since you define your destination (dst) as testout.ts, vlc is creating that file for you. Also, don't forget to open the port you broadcast from, from your firewall settings (for the example above, 8080).
HTH,
Hakan
Re: Streaming movies over http
Posted: 31 Mar 2009 20:16
by Rémi Denis-Courmont
You cannot do on-demand transcoding over HTTP. You need to transcode all files in advance and serve the result with Apache.
Re: Streaming movies over http
Posted: 02 Apr 2009 00:54
by megacrypto
You cannot do on-demand transcoding over HTTP. You need to transcode all files in advance and serve the result with Apache.
so how come the upnp programs such as ushare do this? i came across it some time ago, but i can not seem to find it again (that is the code that it used to stream out the movies)
Re: Streaming movies over http
Posted: 02 Apr 2009 16:36
by Rémi Denis-Courmont
The point is, VLC can't do that currently.
Re: Streaming movies over http
Posted: 03 Apr 2009 00:02
by megacrypto
ok .. could you kindly explain what the following does:
Code: Select all
<agent command="vlc" arguments="-I dummy %in --sout #transcode{venc=ffmpeg,vcodec=mp2v,vb=4096,fps=25,aenc=ffmpeg,acodec=mpga,ab=192,samplerate=44100,channels=2}:standard{access=file,mux=ps,dst=%out} vlc:quit"/>
i go this from within the config file of mediatomb
Re: Streaming movies over http
Posted: 04 Apr 2009 12:41
by Rémi Denis-Courmont
Transcode to a file.
Re: Streaming movies over http
Posted: 04 Apr 2009 18:42
by megacrypto
Transcode to a file.
i know that, but what i meant was why would mediatomb transcode to a file when i click a link of a movie. what i'm guessing is that when a user clicks on a movie link, mediatomb will start transcoding to a file, and will also start streaming that transcoded file ... does that sound right ?!?
Re: Streaming movies over http
Posted: 04 Apr 2009 19:46
by Rémi Denis-Courmont
That's not what the command line line is doing
Re: Streaming movies over http
Posted: 04 Apr 2009 22:21
by megacrypto
That's not what the command line line is doing
we established what the command line is doing ... it transcodes to a file. what i was asking is your thoughts on what i posted earlier as to what is being to the file afterwards ... but for some reason your answers are very limited
..... are you an AI answering these questions
Re: Streaming movies over http
Posted: 15 Apr 2009 15:54
by abakker
The point is, VLC can't do that currently.
Can you elaborate? With 0.8.6a I transcoded a live DV camera to MPEG4 and offered it for download via HTTP
(VideoLan client on Windows) plenty of times. Was this removed in 0.9.x?
When I try to transcode my built-in Webcam to H.264 on 0.9.9. on Vista now, VLC crashes by the way without showing the local playback at all.
Re: Streaming movies over http
Posted: 15 Apr 2009 18:24
by Rémi Denis-Courmont
VLC has never been able to do on-demand transcoding over HTTP. In any version.