Unable to stream with http

About encoding, codec settings, muxers and filter usage
AIexis
Blank Cone
Blank Cone
Posts: 24
Joined: 13 Apr 2007 18:57

Unable to stream with http

Postby AIexis » 07 Aug 2009 13:11

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.

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

Re: Unable to stream with http

Postby Rémi Denis-Courmont » 07 Aug 2009 15:39

You cannot broadcast an FLV file in real-time just like that. I think only MPEG-TS really works over HTTP as is.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

AIexis
Blank Cone
Blank Cone
Posts: 24
Joined: 13 Apr 2007 18:57

Re: Unable to stream with http

Postby AIexis » 07 Aug 2009 19:31

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

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

Re: Unable to stream with http

Postby Rémi Denis-Courmont » 08 Aug 2009 09:42

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.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

AIexis
Blank Cone
Blank Cone
Posts: 24
Joined: 13 Apr 2007 18:57

Re: Unable to stream with http

Postby AIexis » 08 Aug 2009 10:20

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.

kdh
Cone that earned his stripes
Cone that earned his stripes
Posts: 224
Joined: 16 Jun 2009 22:38

Re: Unable to stream with http

Postby kdh » 08 Aug 2009 20:49

my how-to might apply to you. see page 2 for details.

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


Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 10 guests