Page 1 of 1

Unable to stream with http

Posted: 07 Aug 2009 13:11
by AIexis
Hi all,
I would like to stream a video playlist with VLC, to be played with a flash player on a web page.
VLC is started on the server with this command line:
:sout=#transcode{sfilter=logo,soverlay=logo,vcodec=FLV1,vb=1200,scale=1,acodec=mp3,ab=96,channels=1,samplerate=44100}:duplicate{dst=std{access=http,url=127.0.0.1:8080/stream.flv},dst=display}

Well.... I can't get anything on my local VLC (I try to read http://server's.ip:8080/stream.flv )

If I try this:
:sout=#transcode{sfilter=logo,soverlay=logo,vcodec=FLV1,vb=1200,scale=1,acodec=mp3,ab=96,channels=1,samplerate=44100}:duplicate{dst=std{access=mmsh,mux=asfh,dst=0.0.0.0:1234},dst=display}
it works.
It seems to be a problem with http protocol, but I don't know where.

I would like to use http because I think flash player is unable to read mms streams.
Thank you for your help.

Re: Unable to stream with http

Posted: 07 Aug 2009 15:39
by Rémi Denis-Courmont
You cannot broadcast an FLV file in real-time just like that. I think only MPEG-TS really works over HTTP as is.

Re: Unable to stream with http

Posted: 07 Aug 2009 19:31
by AIexis
You cannot broadcast an FLV file in real-time just like that. I think only MPEG-TS really works over HTTP as is.
Ok, thank you for your reply.
MPEG-TS is not compatible with a flash player, but I tried anyway, just for my "science".
:sout=#transcode{sfilter=logo,soverlay=logo,vcodec=mp1v,vb=1200,scale=1,acodec=mp3,ab=96,channels=1,samplerate=44100}:duplicate{dst=std{access=http,mux=ts,dst=0.0.0.0:8080},dst=display}

I get an error :
"La diffusion / le transcodage a échoué:
VLC n’a pas pu ouvrir l’encodeur."
(sorry, french :mrgreen: )

I suppose that I have to add an mpeg encoder somewhere, but I don't know which, and where...
No matter, mpeg is not usable for me.

Is there any way to stream to a flash player ? :?

Re: Unable to stream with http

Posted: 08 Aug 2009 09:42
by Rémi Denis-Courmont
All builds from VideoLAN have mp encoding built-in. If you don't have it, you need to ask from whoever you downloaded the build.

Re: Unable to stream with http

Posted: 08 Aug 2009 10:20
by AIexis
I have download VLC from VLC'site!
http://www.videolan.org/vlc/download-windows.html
The installation file is named vlc-1.0.1-win32.exe

VlC is running on windows server 2003.

Re: Unable to stream with http

Posted: 08 Aug 2009 20:49
by kdh
my how-to might apply to you. see page 2 for details.

viewtopic.php?f=4&t=60947&start=15