Streaming movies over http

About encoding, codec settings, muxers and filter usage
megacrypto
New Cone
New Cone
Posts: 5
Joined: 30 Mar 2009 00:37

Streaming movies over http

Postby megacrypto » 30 Mar 2009 00:46

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

hakova
Blank Cone
Blank Cone
Posts: 16
Joined: 20 Dec 2007 02:45

Re: Streaming movies over http

Postby hakova » 30 Mar 2009 18:44

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

Rémi Denis-Courmont
Developer
Developer
Posts: 15271
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: Streaming movies over http

Postby Rémi Denis-Courmont » 31 Mar 2009 20:16

You cannot do on-demand transcoding over HTTP. You need to transcode all files in advance and serve the result with Apache.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

megacrypto
New Cone
New Cone
Posts: 5
Joined: 30 Mar 2009 00:37

Re: Streaming movies over http

Postby megacrypto » 02 Apr 2009 00:54

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)

Rémi Denis-Courmont
Developer
Developer
Posts: 15271
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: Streaming movies over http

Postby Rémi Denis-Courmont » 02 Apr 2009 16:36

The point is, VLC can't do that currently.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

megacrypto
New Cone
New Cone
Posts: 5
Joined: 30 Mar 2009 00:37

Re: Streaming movies over http

Postby megacrypto » 03 Apr 2009 00:02

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

Rémi Denis-Courmont
Developer
Developer
Posts: 15271
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: Streaming movies over http

Postby Rémi Denis-Courmont » 04 Apr 2009 12:41

Transcode to a file.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

megacrypto
New Cone
New Cone
Posts: 5
Joined: 30 Mar 2009 00:37

Re: Streaming movies over http

Postby megacrypto » 04 Apr 2009 18:42

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 ?!?

Rémi Denis-Courmont
Developer
Developer
Posts: 15271
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: Streaming movies over http

Postby Rémi Denis-Courmont » 04 Apr 2009 19:46

That's not what the command line line is doing
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

megacrypto
New Cone
New Cone
Posts: 5
Joined: 30 Mar 2009 00:37

Re: Streaming movies over http

Postby megacrypto » 04 Apr 2009 22:21

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 :)

abakker
New Cone
New Cone
Posts: 4
Joined: 18 Jan 2008 09:18

Re: Streaming movies over http

Postby abakker » 15 Apr 2009 15:54

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.

Rémi Denis-Courmont
Developer
Developer
Posts: 15271
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: Streaming movies over http

Postby Rémi Denis-Courmont » 15 Apr 2009 18:24

VLC has never been able to do on-demand transcoding over HTTP. In any version.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded


Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 11 guests