Difference between revisions of "Flash Video"

From VideoLAN Wiki
Jump to navigation Jump to search
(Small streaming flash video howto.)
Line 6: Line 6:
 
==Compatibility==
 
==Compatibility==
 
H.263 flash video is supported by the latest VLC, with some bugs. There is a [[Fixing .flv to .avi with Ffmpeg|workaround]] using [[ffmpeg]] for this. VP6 is also supported by ffmpeg, and should be supported in the future.
 
H.263 flash video is supported by the latest VLC, with some bugs. There is a [[Fixing .flv to .avi with Ffmpeg|workaround]] using [[ffmpeg]] for this. VP6 is also supported by ffmpeg, and should be supported in the future.
 +
 +
==Streaming Flash Video With VLC==
 +
 +
Starting from VLC revision 18876 (which means 0.9.0-svn after 17/02/2007), you can stream flash with VLC. You also need to build VLC with a fairly recent ffmpeg version (r7593 21/01/2007 or newer).
 +
 +
You can then use the following command line to do HTTP Flash Video streaming:
 +
% ./vlc <input> --sout "#transcode{vcodec=FLV1,acodec=mp3}:std{access=http,dst=0.0.0.0:8081/stream.flv}"
 +
You can then point any flash based player to that stream using <nowiki>http://<ip>:8081/stream.flv</nowiki> .
 +
 +
Note that flash only accepts 3 audio sample rates (44.1 kHz, 22.05 kHz and 11.025 kHz). If your source audio uses something else, muxing will fail. You can change the sampling rate by adding samplerate=44100 in transcode.

Revision as of 15:09, 18 February 2007

flv
VLC can decode this container.
The module name to use at the command line is flv.

Flash Video is a file format mainly used for playing data in a Flash player on a webpage. It has the extension .flv.

There are 2 types of flv file, one based on H.263 (since Flash 6) and another based on VP6 (since Flash 8).

Compatibility

H.263 flash video is supported by the latest VLC, with some bugs. There is a workaround using ffmpeg for this. VP6 is also supported by ffmpeg, and should be supported in the future.

Streaming Flash Video With VLC

Starting from VLC revision 18876 (which means 0.9.0-svn after 17/02/2007), you can stream flash with VLC. You also need to build VLC with a fairly recent ffmpeg version (r7593 21/01/2007 or newer).

You can then use the following command line to do HTTP Flash Video streaming:

% ./vlc <input> --sout "#transcode{vcodec=FLV1,acodec=mp3}:std{access=http,dst=0.0.0.0:8081/stream.flv}"

You can then point any flash based player to that stream using http://<ip>:8081/stream.flv .

Note that flash only accepts 3 audio sample rates (44.1 kHz, 22.05 kHz and 11.025 kHz). If your source audio uses something else, muxing will fail. You can change the sampling rate by adding samplerate=44100 in transcode.