Back Forum Reply New

Playing FLV files in MPC. FLV codec?

Hey all,
Is there a FLV codec that lets you just play FLV files in any media player? The FLV player program really isn't that flexible. I have loads of cool vids that I downloaded from YouTube that I'd love to just watch in a bog standard media player.

FLV files can contain Sorenson Spark or VP6 correct? ffdshow handles FLV1 and there is still a dshow decoder for VP6 available.

I think your problem though would be the lack of any dshow flv parser.

Yeah, I wonder how hard it would be to write one... How open is the FLV format? I suppose if ffdshow can decode it the details must be somewhere.


Originally Posted by QjimboYeah, I wonder how hard it would be to write one... How open is the FLV format? I suppose if ffdshow can decode it the details must be somewhere.

mplayer is capable of playing the one FLV file I have:

(1,Leak,gaea) /cygdrive/c/Video/mplayer 12% ./mplayer -demuxer 35 e:/Download/LVCleese_LG.flv
MPlayer dev-CVS-050222-01:18-3.4.2 (C) 2000-2005 MPlayer Team
CPU: Intel Pentium 4/Xeon/Celeron Foster (Family: 8, Stepping: 9)
Detected cache-line size is 64 bytes
CPUflags:  MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 0 SSE2: 0
Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2getch2: 6 can't get number of input events  [disabling console input]
Playing e:/Download/LVCleese_LG.flv.
libavformat file format detected.
VIDEO:  [FLV1]  400x300  0bpp  1000.000 fps    0.0 kbps ( 0.0 kbyte/s)
==========================================================================
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
AUDIO: 44100 Hz, 2 ch, 16 bit (0x9), ratio: 14000-gt;176400 (112.0 kbit)
Selected audio codec: [mp3] afm:mp3lib (mp3lib MPEG layer-2, layer-3)
==========================================================================
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffflv] vfm:ffmpeg (FFmpeg Flash video)
==========================================================================
Checking audio filter chain for 44100Hz/2ch/16bit -gt; 44100Hz/2ch/16bit...
AF_pre: af format: 2 bps, 2 ch, 44100 hz, little-endian 16-bit signed int
AF_pre: 44100Hz 2ch little-endian 16-bit signed int
AO: [dsound] 44100Hz 2ch little-endian 16-bit signed int (2 bps)
Building audio filter chain for 44100Hz/2ch/16bit -gt; 44100Hz/2ch/16bit...
Starting playback...
VDec: vo config request - 400 x 300 (preferred csp: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is undefined - no prescaling applied.
VO: [directx] 400x300 =gt; 400x300 Planar YV12
A:  51.7 V:  51.7 A-V: -0.007 ct:  0.001 776/776  3%  0%  0.0% 10 0

(notice the quot;-demuxer 35quot; here, that what makes it work with the (old) mplayer version I have - maybe it's detected automatically nowadays...)

So the code for a FLV parser is already there - someone would have to pour it into DirectShow form, though...

(Oh, and the video can be found here; while it's an ad you might want to give it a go if you're a John Cleese fan... )

np: Christian Kleine - Shifts Of Wood (Real Ghosts)

it would be great if playback of .flv files was possible in a media player. is it possible to convert .flv files to another format? and then play them in a media player?

mencoder or ffmpeg should be able to convert/remux.
¥
Back Forum Reply New