Mencoder and FLV (Flash video)
Hello everyone, I'm new to the list but have been using Mencoder for some time now. Guillaume mentioned to me that flv encoding should work in mencoder now. Right now I have mencoder output to mjpeg and then convert to flv with ffmpeg, which sucks. As noted in the latest DOCs (http://mplayerhq.hu/DOCS/HTML/en/menc-feat-enc-libavcodec.html), flv is now a supported libavcodec codec. Unfortunately I could not get it to work at all. This works in ffmpeg: ffmpeg -y -i 1.avi -ar 22050 -acodec mp3 -vcodec flv 2.flv But in mencoder nothing works, this is one of the commands I tried, I tried hundreds of variations: mencoder 1.avi -o 2.flv -ovc lavc -lavcopts vcodec=flv:acodec=mp3:abitrate=56 -srate 22050 Something comes out, but nothing plays correctly. You can get a flv player here: http://www.martijndevisser.com/archives/000021.php I already donated $100 to mplayer when the server died, but since this is important for my company, I will donate another $100 to mplayer or pay the person that gives me the working command. The person can choose if they want the money or if they want it donated in their name. I must be about to repro it on my computer. Thanks, Ryan
On Sun, 25 Sep 2005 15:54:51 -0700 "RyES RyES" <ryes540@hotmail.com> wrote:
But in mencoder nothing works, this is one of the commands I tried, I tried hundreds of variations: mencoder 1.avi -o 2.flv -ovc lavc -lavcopts vcodec=flv:acodec=mp3:abitrate=56 -srate 22050 Something comes out, but nothing plays correctly.
Seems to be just a fourcc problem. Adding "-ffourcc FLV1" works here (plays back in MPlayer).
I will donate another $100 to mplayer or pay the person that gives me the working command.
Donate it to the mplayer project.
On Sun, 25 Sep 2005 16:18:15 -0700 RC <rcooley@spamcop.net> wrote:
On Sun, 25 Sep 2005 15:54:51 -0700 "RyES RyES" <ryes540@hotmail.com> wrote:
But in mencoder nothing works, this is one of the commands I tried, I tried hundreds of variations: mencoder 1.avi -o 2.flv -ovc lavc -lavcopts vcodec=flv:acodec=mp3:abitrate=56 -srate 22050 Something comes out, but nothing plays correctly.
Seems to be just a fourcc problem. Adding "-ffourcc FLV1" works here (plays back in MPlayer).
Err, you also need to make it an flv file. Add: "-of lavf -o1.flv" Just tested, and works with the FLV player on Windows.
Sorry RC, it seems like hotmail put a number of your emails in the SPAM folder, so you did figure it out first. Anyone know how to donate to mplayer through paypal? It seems like the donation info has been removed. Mplayer should really add a paypal donation box somewhere, you would get much more donations that would help out the project. Thanks, Ryan
From: RC <rcooley@spamcop.net> Reply-To: MEncoder usage discussions <mencoder-users@mplayerhq.hu> To: MEncoder usage discussions <mencoder-users@mplayerhq.hu> Subject: Re: [MEncoder-users] Mencoder and FLV (Flash video) Date: Sun, 25 Sep 2005 16:34:46 -0700
On Sun, 25 Sep 2005 16:18:15 -0700 RC <rcooley@spamcop.net> wrote:
On Sun, 25 Sep 2005 15:54:51 -0700 "RyES RyES" <ryes540@hotmail.com> wrote:
But in mencoder nothing works, this is one of the commands I tried, I tried hundreds of variations: mencoder 1.avi -o 2.flv -ovc lavc -lavcopts vcodec=flv:acodec=mp3:abitrate=56 -srate 22050 Something comes out, but nothing plays correctly.
Seems to be just a fourcc problem. Adding "-ffourcc FLV1" works here (plays back in MPlayer).
Err, you also need to make it an flv file. Add: "-of lavf -o1.flv"
Just tested, and works with the FLV player on Windows.
_______________________________________________ MEncoder-users mailing list MEncoder-users@mplayerhq.hu http://mplayerhq.hu/mailman/listinfo/mencoder-users
Hi, On Mon, Sep 26, 2005 at 12:09:46PM -0700, RyES RyES wrote:
Anyone know how to donate to mplayer through paypal? It seems like the donation info has been removed. Mplayer should really add a paypal donation box somewhere, you would get much more donations that would help out the project.
Actually I think there are doubts that money will help unless there is something it is really needed for (the new server). Otherwise you just end up having money and not knowing/agreeing what to do with it... Hmm... reminds me gotta write a mail... Greetings, Reimar Döffinger
Hi, On 9/26/05, RyES RyES <ryes540@hotmail.com> wrote:
Hello everyone, I'm new to the list but have been using Mencoder for some time now. Guillaume mentioned to me that flv encoding should work in mencoder now. Right now I have mencoder output to mjpeg and then convert to flv with ffmpeg, which sucks.
As noted in the latest DOCs (http://mplayerhq.hu/DOCS/HTML/en/menc-feat-enc-libavcodec.html), flv is now a supported libavcodec codec. Unfortunately I could not get it to work at all.
Nice to see that someone is reading the docs :-)
But in mencoder nothing works, this is one of the commands I tried, I tried hundreds of variations: mencoder 1.avi -o 2.flv -ovc lavc -lavcopts vcodec=flv:acodec=mp3:abitrate=56 -srate 22050 Something comes out, but nothing plays correctly.
You can get a flv player here: http://www.martijndevisser.com/archives/000021.php
I already donated $100 to mplayer when the server died, but since this is important for my company, I will donate another $100 to mplayer or pay the person that gives me the working command. The person can choose if they want the money or if they want it donated in their name. I must be about to repro it on my computer.
As RC said, a command line such as: mencoder 1.avi -o 2.flv -ovc lavc -lavcopts vcodec=flv:acodec=mp3:abitrate=56 -srate 22050 -ffourcc FLV1 -of lavf -o1.flv should work all right.... but it would be quite sub-optimal (lavc audio encoder are not too good), and may lead to A/V desync. You probably should dump the audio track as PCM and use lame to encode it, and later remux it back together using the 'audiofile and -oac copy' options. Last but not least, make sure you have libavformat in order to be able to mux to Flash format: FFmpeg libavcodec/libavutil/libavformat CVS MPlayer is not fully functional without a copy of the libavcodec, libavformat and libavutil libraries from FFmpeg. Get FFmpeg CVS via cvs -d:pserver:anonymous@mplayerhq.hu:/cvsroot/ffmpeg login cvs -z3 -d:pserver:anonymous@mplayerhq.hu:/cvsroot/ffmpeg co -P ffmpeg When asked for a password, just hit enter. A directory named ffmpeg will be created. Copy the libavcodec, libavformat and libavutil subdirectories into the main directory just created from the MPlayer checkout. In order to include libavcodec and libavutil in CVS updates, add the following lines to main/CVS/Entries: D/libavcodec//// D/libavformat//// D/libavutil//// Best regards, Guillaume -- Reading doesn't hurt, really! -- Dominik 'Rathann' Mierzejewski
On Mon, 26 Sep 2005 09:11:41 +0200 Guillaume POIRIER <poirierg@gmail.com> wrote:
Last but not least, make sure you have libavformat in order to be able to mux to Flash format:
FFmpeg libavcodec/libavutil/libavformat
CVS MPlayer is not fully functional without a copy of the libavcodec, libavformat and libavutil libraries from FFmpeg. Get FFmpeg CVS via
Actually I first tried with mencoder CVS from today, and it crashed. pre7 worked nicely though. (Are you listening Reimar? ;-) )
Thanks everyone for your help, It turned out that the fourcc didn't work. It worked in mplayer, but now in the actual flash player. What did fix things is "-of lavf", which I should have played with more since Guillaume mentioned it to me before. Plus it would only work on pre7, not the latest CVS, so I hope it works later. I have 1 other question, is there *any* way to get a jpg thumbnail using mencoder? You can do it in ffmpeg with -f image -img jpeg, but there seems to be no way with mencoder. Man, just need this final thing to really get rid of using a seperate ffmpeg.exe. I ended up finalizing on these commands, any comments on improvements on the commands appreciated: // Fast/Low quality mencoder 1.avi -o 2.flv -of lavf -ovc lavc -oac lavc -lavcopts vcodec=flv:vbitrate=250:autoaspect:acodec=mp3:abitrate=56 -vf scale=320:240 -srate 22050 -af lavcresample=22050 -endpos 02:00 // x3 Slower/High quality mencoder 1.avi -o 2.flv -of lavf -ovc lavc -oac lavc -lavcopts vcodec=flv:vbitrate=250:autoaspect:mbd=2:mv0:trell:v4mv:cbp:last_pred=3:predia=2:dia=2:precmp=2:cmp=2:subcmp=2:preme=2:turbo:acodec=mp3:abitrate=56 -vf scale=320:240 -srate 22050 -af lavcresample=22050 -endpos 02:00 Guillaume, so the $100 goes to you. Sorry RC, but I am sure Guillaume will probably donate it too. Guillaume you can email me privately if you need the money or want it donated. If donated, is there an email I should paypal it too? The donation email address seems to be removed now. Thanks all, Ryan
From: Guillaume POIRIER <poirierg@gmail.com> Reply-To: Guillaume POIRIER <poirierg@gmail.com>,MEncoder usage discussions <mencoder-users@mplayerhq.hu> To: MEncoder usage discussions <mencoder-users@mplayerhq.hu> Subject: Re: [MEncoder-users] Mencoder and FLV (Flash video) Date: Mon, 26 Sep 2005 09:11:41 +0200
Hi,
On 9/26/05, RyES RyES <ryes540@hotmail.com> wrote:
Hello everyone, I'm new to the list but have been using Mencoder for some time now. Guillaume mentioned to me that flv encoding should work in mencoder now. Right now I have mencoder output to mjpeg and then convert to flv with ffmpeg, which sucks.
As noted in the latest DOCs (http://mplayerhq.hu/DOCS/HTML/en/menc-feat-enc-libavcodec.html), flv is now a supported libavcodec codec. Unfortunately I could not get it to work at all.
Nice to see that someone is reading the docs :-)
But in mencoder nothing works, this is one of the commands I tried, I tried hundreds of variations: mencoder 1.avi -o 2.flv -ovc lavc -lavcopts vcodec=flv:acodec=mp3:abitrate=56 -srate 22050 Something comes out, but nothing plays correctly.
You can get a flv player here: http://www.martijndevisser.com/archives/000021.php
I already donated $100 to mplayer when the server died, but since this is important for my company, I will donate another $100 to mplayer or pay the person that gives me the working command. The person can choose if they want the money or if they want it donated in their name. I must be about to repro it on my computer.
As RC said, a command line such as:
mencoder 1.avi -o 2.flv -ovc lavc -lavcopts vcodec=flv:acodec=mp3:abitrate=56 -srate 22050 -ffourcc FLV1 -of lavf -o1.flv
should work all right.... but it would be quite sub-optimal (lavc audio encoder are not too good), and may lead to A/V desync. You probably should dump the audio track as PCM and use lame to encode it, and later remux it back together using the 'audiofile and -oac copy' options.
Last but not least, make sure you have libavformat in order to be able to mux to Flash format:
FFmpeg libavcodec/libavutil/libavformat
CVS MPlayer is not fully functional without a copy of the libavcodec, libavformat and libavutil libraries from FFmpeg. Get FFmpeg CVS via
cvs -d:pserver:anonymous@mplayerhq.hu:/cvsroot/ffmpeg login cvs -z3 -d:pserver:anonymous@mplayerhq.hu:/cvsroot/ffmpeg co -P ffmpeg
When asked for a password, just hit enter. A directory named ffmpeg will be created. Copy the libavcodec, libavformat and libavutil subdirectories into the main directory just created from the MPlayer checkout.
In order to include libavcodec and libavutil in CVS updates, add the following lines to main/CVS/Entries:
D/libavcodec//// D/libavformat//// D/libavutil////
Best regards, Guillaume -- Reading doesn't hurt, really! -- Dominik 'Rathann' Mierzejewski
_______________________________________________ MEncoder-users mailing list MEncoder-users@mplayerhq.hu http://mplayerhq.hu/mailman/listinfo/mencoder-users
participants (4)
-
Guillaume POIRIER -
RC -
Reimar Döffinger -
RyES RyES