Page 1 of 1

Video to FLV using VLC ?

Posted: 25 Oct 2006 13:08
by supergrey
Hi I would like to know if it's possible to convert a video (avi, mpeg, wmv...) to FLV format using VLC.
Thanks

Posted: 25 Oct 2006 23:30
by dionoea
It isn't. In fact i don't think that any open source FLV encoder exists.

Posted: 26 Oct 2006 11:12
by FrT
It isn't. In fact i don't think that any open source FLV encoder exists.
FFmpeg can encode to Sorenson (NOT VP6) FLV.

Posted: 26 Oct 2006 22:48
by dionoea
Oh ... i though you meant VP6 :)

Well you can find the soreson fourcc in http://trac.videolan.org/vlc/browser/tr ... g/ffmpeg.c (seems to be SVQ1 and SVQ3 and use that in the vcodec transcode option). Use "flv" for the mux.

Posted: 26 Oct 2006 22:49
by dionoea
Btw, the flv muxing won't work in 0.8.5. I doubt that it will in 0.8.6-test1 (it's worth a try though) and it'll definitively work if you try a 0.9.0 nightly.

Posted: 07 Nov 2006 20:20
by fagao
What kind of access module do I need to use for FLV streaming:

--sout '#transcode{vcodec=SVQ1,vb=256,scale=1,acodec=mp3,ab=32,channels=2}:std{access=http,mux=flv,dst=:8888}'

Posted: 10 Nov 2006 23:56
by StevieG
with version 0.9.0-svn-20061018-1453

I can use vcodec=SVQ1, but if I put the mux=flv then I get the following message:

main error: no sout mux module matched "flv"
stream_out_standard error: no suitable sout mux module for `file/flv://c:\out.flv'

Where can I find the flv mux module?

Posted: 20 Nov 2006 00:04
by ZeusDK
I am also very interested in the FLV approach. Is it working now?

And how can I install the plugin (?) from http://trac.videolan.org/vlc/browser/tr ... g/ffmpeg.c into VideoLan?

Posted: 27 Nov 2006 00:17
by ZeusDK
I also get:

Code: Select all

main error: no sout mux module matched "flv"
What to do about this?

Posted: 28 Nov 2006 00:49
by ZeusDK
Anyone got FLV streaming to work?

Posted: 28 Nov 2006 14:44
by Jean-Baptiste Kempf
I don't think it is doable yet. It should not be very hard to make but VLC does not use ffmpeg libavformat. And flv muxing seems not to have been reimplemented in VLC.

I may mistake on that issue still.

Posted: 28 Nov 2006 16:08
by ZeusDK
Also in version 0.9?

Posted: 10 Feb 2007 14:21
by guyverix
with version 0.9.0-svn-20061018-1453

I can use vcodec=SVQ1, but if I put the mux=flv then I get the following message:

main error: no sout mux module matched "flv"
stream_out_standard error: no suitable sout mux module for `file/flv://c:\out.flv'

Where can I find the flv mux module?
what about mux=h263

or mux=flv1

Posted: 11 Feb 2007 22:23
by dionoea

trouble wih MP3

Posted: 03 Mar 2007 16:40
by yannochka
Hi , when i transcode a wmv netstream in FLV (works fine for the video stream) i have a probleme with sound for mp3 transcoding(no input for audio)
An idea?
best regards.

everything works fine

Posted: 05 Mar 2007 07:28
by yannochka
i got it, it was a missconfiguration thing !

resize with transcoding flv stream

Posted: 13 Mar 2007 15:23
by drudolf
hi,

first of all, thank you for this nice feature to stream in flv format. it such a cool feature i only found in videolan. except that building 0.9.0 took the whole night on my kubuntu machine and with qt4 missing gui seems buggy, cant open any source file, always getting no access module. duno why, but not necessary anyway for the task i want to perform.

nevertheless streaming works pretty well, just one thing doesnt want to work the way i want it to be.

i encode a dvb-t stream with the following command

Code: Select all

/vlc/vlc-trunk/vlc --sout "#transcode{vcodec=FLV1,vb=1600,acodec=mp3,ab=128,samplerate=44100,channels=2,deinterlace,audio-sync}: \ std{access=http{mime=video/x-flv},mux=ffmpeg{mux=flv},dst=0.0.0.0:8081/stream.flv}" \ -vvv dvb: --dvb-frequency=506000000 --dvb-bandwidth=8 --program=16405 --color \ -I dummy --sout-transcode-width=576 --sout-transcode-height=432
when i try to read this stream with vlc again, it gives me

Code: Select all

VLC media player 0.9.0-svn Grishenko [flv @ 0xb11819e0]Bad picture start code [flv @ 0xb11819e0]header damaged
back and so on, just plaing sound after a while. in the streaming instance of vlc it looks fine for me

Code: Select all

... stream_out_transcode private debug: codec video=FLV1 576x432 scaling: 1,000000 1600kb/s ... stream_out_transcode private debug: source 720x576, crop 720x576, destination 576x432, padding 576x432 ...
but perhaps this one is indicating the problem

Code: Select all

main private debug: looking for crop padd module: 0 candidates main private error: no crop padd module matched "any"
without the size parametere it streams the file properly and the client can read it.
so is resizing and cropping not implemented yet in the newest version of VLC media player 0.9.0-svn Grishenko for flv streaming or is it my command?

if its not my fault, i would be really thankful if this feature could be implemented in the near future then :lol:

furthermore, is it possible to write that flv stream to a pipe while its streaming over http? any example code would be nice.

so thanks for your help.

solved my trancoding issue

Posted: 14 Mar 2007 04:32
by drudolf
solved the issue. seems like my problem was related to

Ticket #1043
missing video filters: corrupt transcode and no screenshot support

i had ffmpeg compiled with --enable-swscaler, so no working cropping.
now i recompiled newest ffmpeg without it and it works.

now i am happy :lol: and good night everybody

compiling...

Posted: 07 Apr 2007 17:46
by JoeShmo
Well, I'm trying to get this to work as well, using vlc-0.9.0 and ffmpeg 20070329 cvs.

I'm guessing that its something in the compiling (or actually configure options) as at the moment, its not likeing the mux=ffmpeg{mux=flv} option, and I'm getting all sorts of other errors and warnings when running vlc.

So could anyone who has this working please post their configure line for vlc as well as ffmpeg.

ffmpeg:

Code: Select all

./configure --enable-pthreads --enable-pp --enable-libtheora --enable-libvorbis --enable-libogg --enable-liba52 --enable-libdts --enable-debug --disable-mmx --disable-iwmmxt --enable-libmp3lame --enable-xvid --enable-encoder=mp3 --enable-decoder=wmav1 --enable-decoder=wmav2 --enable-encoder=wmav2 --enable-encoder=wmav1 --enable-encoder=wmv3 --enable-encoder=wmv2 --enable-encoder=wmv1 --enable-encoder=mjpeg --enable-encoder=mjpegb --enable-encoder=dvvideo --enable-encoder=adpcm_ima_qt --enable-encoder=h263p --enable-encoder=h263 --enable-encoder=mpeg4 --enable-decoder=mpeg4 --enable-decoder=msmpeg4 --enable-encoder=msmpeg4 --enable-encoder=msmpeg4v1 --enable-encoder=msmpeg4v2 --enable-encoder=mp4a --enable-decoder=mp4a --enable-decoder=mp4v --enable-encoder=mp4v --enable-decoder=AVRn --enable-decoder=MJPG --enable-decoder=AVDJ --enable-decoder=mjpa --enable-decoder=mjpeg --enable-encoder=dvcpro50 --enable-decoder=dvcpro50 --enable-decoder=dvvideo --enable-decoder=rawvideo --enable-decoder=uncompressed --enable-decoder=dv5p --enable-decoder=dv5n --enable-decoder=dv1n --enable-decoder=dv1p --enable-decoder=dvhp --enable-decoder=dvh6 --enable-decoder=dvh5 --enable-amr_nb --enable-amr_wb --enable-encoder=swf --enable-decoder=aac --enable-encoder=x264 --enable-x264 --enable-gpl --enable-decoder=mpeg4a --enable-encoder=mpeg4a
and vlc:

Code: Select all

./configure --disable-gtk --enable-sdl --enable-ffmpeg --with-ffmpeg-mp3lame --enable-mad --enable-libdvbpsi --enable-a52 --enable-dts --enable-libmpeg2 --enable-dvdnav --enable-faad --enable-vorbis --enable-ogg --enable-theora --enable-faac --enable-mkv --enable-freetype --enable-fribidi --enable-speex --enable-flac --enable-live555 --enable-caca --enable-skins --disable-skins2 --enable-alsa --disable-kde --enable-qt --disable-xwidgets --enable-ncurses --enable-release --enable-ffmpeg --with-ffmpeg-faac --with-ffmpeg-mp3lame --enable-rtsp --enable-mostly-builtin --enable-sout
anyone see anything that should be added? basically, I want to be able to deal with anything thats thrown at me. Current project is to take a live stream from my axis 214 camera and transcode to flv.

I almost said the heck with it, and was going to purchase flash media server, but $4,500 for a novelty function is a little obsurd.

Re: Video to FLV using VLC ?

Posted: 06 Feb 2008 16:06
by 20fan
if you were frustrated enough, you could always go the:
Upload to U-toob, then just use the realplayer downloader and store them, or snag the .flv files from your temp directories ... i believe that there are several different sites that actually function as an upload/convert/then give you a link to download it again.

Seems like alot of hassle though, especially if you are doing any kind of an amount of files. VLC works so slick in what it already does, that I can hardly wait for it to be capable of doing both to and from flv's.

Re: Video to FLV using VLC ?

Posted: 28 Jul 2010 15:25
by rogerdpack
It seems that FLV is supported as input:

http://www.videolan.org/vlc/features.html

and output:

viewtopic.php?f=4&t=76874

now, though I haven't tried it personally...