Page 1 of 1
Stream to flash video
Posted: 29 Mar 2007 01:13
by toejam
How to stream with VLC player to output *.flv Flash Video?
I have searched the forum and someone said it works. But for me it doesn't.
I use VLC player version 0.8.6a
Code: Select all
:sout=#transcode{vcodec=FLV1,acodec=mp3,sameplerate=44100}:std{access=http{mime=video/x-flv},mux=ffmpeg{mux=flv},dst=0.0.0.0:1234/stream.flv}
I get an error in console like:
[00000619] main private: creating httpd
[00000623] ffmpeg private error: could not write header
Posted: 30 Mar 2007 00:28
by dionoea
This needs 0.9.0 VLC or later built with a fairly recent version of ffmpeg. (unless someone backported my changes before 0.8.6a was released ... but i doubt it)
Btw, the mime isn't needed in the sout chain anymore.
Posted: 02 Apr 2007 16:50
by toejam
I have downloaded vlc 0.9.0
But can you explain step-by-step how to stream *.flv Flash Video output on vlc?
Posted: 02 Apr 2007 23:49
by dionoea
Using your command line it should work fine. (If you're using windows, i'm not sure that we're building with the appropriate ffmpeg version yet ... but it's worth a try)
Posted: 03 Apr 2007 17:39
by toejam
Thank you it works now but I have a new problem about the audio.
It works fine with no audio.
I get audio-input: mpeg_audio decoder debug: MPGA channels:2 sample rate:48000 bitrate:64 and ffmpeg flv want to have sample rate 44100.
How to force sample rate from 48000Hz to 44100Hz?
Posted: 03 Apr 2007 22:12
by dionoea
you can add samplerate=44.1 or 44100 in transcode (I never know if what unit we use)
live FLV stream...
Posted: 07 Apr 2007 15:52
by JoeShmo
I dont mean to hijack a thread, but I too am trying to do the flv encoding, and it appears to work on the vlc side, but being somewhat new to flash, I'm wondering how to embed the player in a brower to point to VLC's stream. All the examples I can find on google are using just flv files, which I can get to work just fine in a browser...
I do realize that flash embedding in an html page is not within the scope of VLC stuff, but it would be helpful if someone could at least point me to a howto for live stuff if not posting some example code.. thanks
(vlc 0.9.0 4-4-07 snapshot, ffmpeg 3-27-2007)
the source is an rtsp stream from an axis 214 camera. I am able to stream to Windows media using asf, or quicktime as mov. so my next task is to try for flash...
(edit: although it looked like it worked in 0.8.6a, I was compiling 0.9.0 with the same configure options when I posted, and of course 0.9.0 comes up with all sorts of stuff in red when I try to create that broadcast, one of which is complaing about using ffmpeg as a mux.. and scouring the internet (and videolan.org) for a nice ./configure line proved fruitless, so I'll post somewhere else asking for a good configure line).