Mencoder AVI to FLV Conversion

The reCAPTCHA PHP library was not found. Please install it into sites/all/modules/recaptcha/recaptcha.

Here is what I am using so far:


#!/bin/sh

mencoder -forceidx \
-lavfopts i_certify_that_my_video_stream_does_not_use_b_frames \
-of lavf -ffourcc FLV1 \
-oac mp3lame -lameopts abr:br=56 -srate 22050 \
-ovc lavc \
-lavcopts vcodec=flv:vbitrate=250:mbd=2:mv0:trell:v4mv:cbp:last_pred=3 \
-vf scale=360:240 \
-o $1.flv $1

UPDATE (07-05-2008):

With newest mencoder versions in Hardy Heron (MEncoder 2:1.0~rc2-0ubuntu13+medibuntu1) it seems this script is broken. New version below.

 mencoder -forceidx -of lavf -oac mp3lame -lameopts abr:br=56 -srate 22050 -ovc lavc -lavcopts vcodec=flv:vbitrate=250:mbd=2:mv0:trell:v4mv:cbp:last_pred=3 -vf scale=360:240 -o $1.flv $1

This seems to work, still testing.

Comments

hi friend

ubuntu 8.10 ok, thanks, great work

Made my night

Thank you!

Spent the last 3 hours trying to go from a non-encrypted DVD to an FLV.
Tried at least 6 wrapper tools, including k9copy, etc (head spinning at this point, can't remember).

With ffmpeg directly, there was no audio (48000 audio in the original) or if I downsampled, it would clip.

This actually worked! (I used acidrip to rip to Xvid avi)

The only downside is that with the updated command as is, the audio is slightly out of sync over time (my video is only 8min long). Not sure if that's an encoder bug or a function of configuration, but it's good enough for this time of night.

mencoder avi 2 flv

Keep us posted.
Interested in what you work out.
Ed

Post new comment

  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.
  • Web page addresses and e-mail addresses turn into links automatically.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
4 + 6 =
Solve this simple math problem and enter the result. E.g. for 1+3, enter 4.