Problem with flash streaming

For questions and discussion that is NOT (I repeat NOT) specific to a certain Operating System.
panoramix
New Cone
New Cone
Posts: 9
Joined: 23 Nov 2006 12:21

Problem with flash streaming

Postby panoramix » 25 Sep 2007 11:56

Hi,
I need to do some flash streaming, from file or stream, does not really matter to me (if it's only supported from stream, I can open a file with another vlc and then stream) and I saw this is only implemented in 0.9+. So, I downloaded a nightly build for windows, from some days ago (to be more specific, vlc-0.9.0-svn-20070919-1425-win32).
I then try to transcode:
C:\foo\vlc-0.9.0-svn-20070919-1425-win32\vlc-0.9.0-svn-20070919-1425>vlc --sout "#transcode{vcodec=FLV1,acodec=mp3,samplerate=44100}:std{access=http{mime=video/x-flv},mux=ffmpeg{mux=flv},dst=0.0.0.0:8080/stream.flv}" http://127.0.0.1:1234 --loop -vvv --color

If there's nothing streaming on 127.0.0.1:1234, vlc does nothing. But as soon as I'm streaming there, vlc crashes.

I then tried with linux. Downloaded vlc_0.9.0-svn20070922-4-0.tar.gz for Ubuntu Breezy. Compiled a nightly x264 build, a nightly ffmpeg build, and finally vlc:
../configure --prefix=/usr \
--enable-snapshot --enable-debug \
--enable-dbus-control --enable-musicbrainz \
--enable-shared-libvlc \
--enable-lirc \
--with-ffmpeg-tree=../extras/ffmpeg \
--enable-x264 --with-x264-tree=../extras/x264 \
--enable-shout --enable-taglib \
--enable-v4l --enable-cddax \
--enable-vcdx \
--enable-realrtsp --disable-xvmc \
--enable-svg --enable-dvdread \
--enable-dc1394 --enable-dv \
--enable-theora --enable-faad \
--enable-twolame --enable-real \
--enable-flac --enable-tremor \
--with-ffmpeg-mp3lame --with-ffmpeg-faac \
--enable-skins2 --enable-qt4 \
--enable-ncurses \
--enable-aa --enable-caca \
--enable-esd --disable-portaudio \
--enable-jack --enable-xosd \
--enable-galaktos --enable-goom \
--enable-ggi \
--disable-cddax --disable-vcdx \
--disable-quicktime

And then I try to run:
./vlc --sout "#transcode{vcodec=FLV1,vb=800,acodec=mp3,ab=96,samplerate=44100}:std{access=http,dst=0.0.0.0:8090/stream.flv}" http://127.0.0.1:1234 -I dummy

But this is what I'm getting:
VLC media player 0.9.0-svn Grishenko
[00000521] main private: creating httpd
[00000519] stream_out_standard private error: no suitable sout mux module for `http/ffmpeg{mux=flv}://0.0.0.0:8090/stream.flv'
[00000516] stream_out_transcode private error: cannot create chain
[00000515] main stream output error: stream chain failed for `transcode{vcodec=FLV1,vb=800,acodec=mp3,ab=96,samplerate=44100}:std{access=http,dst=0.0.0.0:8090/stream.flv}'
[00000514] main input error: cannot start stream output instance, aborting
[00000540] dummy interface: using the dummy interface module...
[00000554] main private: creating httpd
[00000553] stream_out_standard private error: no suitable sout mux module for `http/ffmpeg{mux=flv}://0.0.0.0:8090/stream.flv'
[00000551] stream_out_transcode private error: cannot create chain
[00000550] main stream output error: stream chain failed for `transcode{vcodec=FLV1,vb=800,acodec=mp3,ab=96,samplerate=44100}:std{access=http,dst=0.0.0.0:8090/stream.flv}'
[00000549] main input error: cannot start stream output instance, aborting
signal 2 received, terminating vlc - do it again in case it gets stuck
[00000513] main playlist: saving Media Library to file /home/capac/.local/share/vlc/ml.xsp


I'm compiling vlc with ffmpeg, so I'm not sure why I'm getting "no suitable sout mux module for `http/ffmpeg{mux=flv}://0.0.0.0:8090/stream.flv'"

Any help would be welcome. Does not matter if from windows or linux.
Thank you so much!!!

panoramix
New Cone
New Cone
Posts: 9
Joined: 23 Nov 2006 12:21

Re: Problem with flash streaming

Postby panoramix » 25 Sep 2007 16:34

Ok, I went a little bit further: next step :-)
If I open a MPEG-2 video file, and stream it like this: (vlc 0.8.6c)
:sout=#transcode{vcodec=mp2v,vb=1024,scale=0.25,acodec=mp3,ab=96,channels=2}:duplicate{dst=std{access=http,mux=asf,dst=127.0.0.1:1234}}

And then, using windows and nightly snapshot:
C:\foo\vlc-0.9.0-svn-20070919-1425-win32\vlc-0.9.0-svn-20070919-1425>vlc --sout "#transcode{vcodec=FLV1,acodec=mp3,samplerate=44100}:std{access=http{mime=video/x-flv},dst=0.0.0.0:8081/stream.flv}" http://127.0.0.1:1234 --loop -vvv --color -I dummy

If I connect to http://127.0.0.1:8081/stream.flv

I can hear the sound, but not the video (using vlc and flvplayer)...
Also, if I use access=file, dst=foo.flv, I get a small file with only audio.
From 127.0.0.1:1234 there is video+audio, as if I just open that stream with vlc, I get audio and video.

Can anyone give me a hand? I'm really desperate...

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: Problem with flash streaming

Postby Jean-Baptiste Kempf » 25 Sep 2007 19:17

Ok, flv streaming is broken on the late SVN versions, take an older version.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

panoramix
New Cone
New Cone
Posts: 9
Joined: 23 Nov 2006 12:21

Re: Problem with flash streaming

Postby panoramix » 26 Sep 2007 09:32

Ok, flv streaming is broken on the late SVN versions, take an older version.
Sorry to ask again, but... what is an older version? One week ago? One month? Several months?
Thanks so much!!!

kudrik
New Cone
New Cone
Posts: 2
Joined: 27 Sep 2007 06:57

Re: Problem with flash streaming

Postby kudrik » 27 Sep 2007 08:44

i install
ffmpeg - ffmpeg-checkout-2007-09-26
./configure --enable-memalign-hack --enable-static --enable-network --enable-libmp3lame --enable-protocol=rtp --enable-protocol=udp --enable-protocol=mms --enable-pp --enable-gpl

vlc vlc-snapshot-20070926
./configure --enable-sdl --disable-gtk --enable-nls --enable-ffmpeg --with-ffmpeg-mp3lame --enable-caca --disable-cddax --disable-vcdx --enable-goom --enable-twolame --disable-gnomevfs

AND
vlc INPUTi --sout "#transcode{vcodec=FLV1,acodec=mp3,samplerate=44100}:std{access=http{mime=video/x-flv},dst=1.2.3.4:8080/stream.flv}" -vvv --color -I dummy.
It is work!

dynamitemedia
Blank Cone
Blank Cone
Posts: 60
Joined: 15 Jul 2007 23:30

Re: Problem with flash streaming

Postby dynamitemedia » 06 Nov 2007 04:24

so do you have this stream a .flv file using teh night build you spoke of?

and can you use VLM at all with that?


Return to “General VLC media player Troubleshooting”

Who is online

Users browsing this forum: No registered users and 13 guests