Video to FLV using VLC ?

About encoding, codec settings, muxers and filter usage
supergrey
New Cone
New Cone
Posts: 6
Joined: 25 Oct 2006 13:05
Contact:

Video to FLV using VLC ?

Postby supergrey » 25 Oct 2006 13:08

Hi I would like to know if it's possible to convert a video (avi, mpeg, wmv...) to FLV format using VLC.
Thanks
Gregory D

dionoea
Cone Master
Cone Master
Posts: 5157
Joined: 03 Dec 2003 23:09
Location: Paris, France

Postby dionoea » 25 Oct 2006 23:30

It isn't. In fact i don't think that any open source FLV encoder exists.
Antoine Cellerier
dionoea
(Please do not use private messages for support questions)

FrT
New Cone
New Cone
Posts: 3
Joined: 23 Oct 2006 11:33

Postby FrT » 26 Oct 2006 11:12

It isn't. In fact i don't think that any open source FLV encoder exists.
FFmpeg can encode to Sorenson (NOT VP6) FLV.

dionoea
Cone Master
Cone Master
Posts: 5157
Joined: 03 Dec 2003 23:09
Location: Paris, France

Postby dionoea » 26 Oct 2006 22:48

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.
Antoine Cellerier
dionoea
(Please do not use private messages for support questions)

dionoea
Cone Master
Cone Master
Posts: 5157
Joined: 03 Dec 2003 23:09
Location: Paris, France

Postby dionoea » 26 Oct 2006 22:49

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.
Antoine Cellerier
dionoea
(Please do not use private messages for support questions)

fagao
New Cone
New Cone
Posts: 1
Joined: 07 Nov 2006 20:18

Postby fagao » 07 Nov 2006 20:20

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}'

StevieG
Blank Cone
Blank Cone
Posts: 17
Joined: 10 Nov 2005 20:51

Postby StevieG » 10 Nov 2006 23:56

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?

ZeusDK
Blank Cone
Blank Cone
Posts: 18
Joined: 18 Nov 2006 11:35

Postby ZeusDK » 20 Nov 2006 00:04

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?

ZeusDK
Blank Cone
Blank Cone
Posts: 18
Joined: 18 Nov 2006 11:35

Postby ZeusDK » 27 Nov 2006 00:17

I also get:

Code: Select all

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

ZeusDK
Blank Cone
Blank Cone
Posts: 18
Joined: 18 Nov 2006 11:35

Postby ZeusDK » 28 Nov 2006 00:49

Anyone got FLV streaming to work?

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:

Postby Jean-Baptiste Kempf » 28 Nov 2006 14:44

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.
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.

ZeusDK
Blank Cone
Blank Cone
Posts: 18
Joined: 18 Nov 2006 11:35

Postby ZeusDK » 28 Nov 2006 16:08

Also in version 0.9?

guyverix
New Cone
New Cone
Posts: 7
Joined: 10 Feb 2007 14:15
Contact:

Postby guyverix » 10 Feb 2007 14:21

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

dionoea
Cone Master
Cone Master
Posts: 5157
Joined: 03 Dec 2003 23:09
Location: Paris, France

Postby dionoea » 11 Feb 2007 22:23

Antoine Cellerier
dionoea
(Please do not use private messages for support questions)

yannochka
New Cone
New Cone
Posts: 2
Joined: 03 Mar 2007 16:35

trouble wih MP3

Postby yannochka » 03 Mar 2007 16:40

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.

yannochka
New Cone
New Cone
Posts: 2
Joined: 03 Mar 2007 16:35

everything works fine

Postby yannochka » 05 Mar 2007 07:28

i got it, it was a missconfiguration thing !

drudolf
New Cone
New Cone
Posts: 4
Joined: 13 Mar 2007 15:04

resize with transcoding flv stream

Postby drudolf » 13 Mar 2007 15:23

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.

drudolf
New Cone
New Cone
Posts: 4
Joined: 13 Mar 2007 15:04

solved my trancoding issue

Postby drudolf » 14 Mar 2007 04:32

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

JoeShmo
New Cone
New Cone
Posts: 7
Joined: 07 Apr 2007 15:37
Location: New York

compiling...

Postby JoeShmo » 07 Apr 2007 17:46

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.

20fan
New Cone
New Cone
Posts: 1
Joined: 06 Feb 2008 15:59

Re: Video to FLV using VLC ?

Postby 20fan » 06 Feb 2008 16:06

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.

rogerdpack
Big Cone-huna
Big Cone-huna
Posts: 574
Joined: 19 Jul 2008 23:48
Operating System: windows

Re: Video to FLV using VLC ?

Postby rogerdpack » 28 Jul 2010 15:25

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...


Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 16 guests