Posts Tagged Video

How to convert a video file for the MEMUP Wizzle portable video player

Posted by on Sunday, 11 July, 2010

I own a really cheap MEMUP Wizzle video player. It plays regular mp3 files, but it’s not simple to get videos to run on it.
This device uses a AVI video compression codec (sherpya mencoder-mingw) with some strange options (version 1.0, based Xvid 1.1 video with 20 fps and audio codec 0x0050 mpeg1 layer 2, 44100khz and sample rate 128kbs)
After some research, I found that you can convert your videos easily with, surprise surprise, mencoder 🙂 !

This works perfectly under Linux and even on other OSs (so said, I did not test it).

Here is the command line to convert a video:

mencoder -noodml INPUT_FILE -of avi -o OUTPUT_FILE.avi -ofps 20 -vf-add scale=320:240 -vf-add expand=320:240:-1:-1:1 -srate 44100 -ovc xvid -xvidencopts bitrate=600:max_bframes=0:quant_type=h263:me_quality=4 -oac lavc -lavcopts acodec=mp2:abitrate=128

Replace INPUT_FILE and OUTPUT_FILE with the filenames you wish to convert from and to.


Convert AVI (or something else) to FLV

Posted by on Thursday, 11 March, 2010

To convert a video to the Flash Video format, use the mencoder command like this:

mencoder <SOURCE_VIDEO> -o <OUTPUT_VIDEO>.flv -of lavf -oac mp3lame -lameopts abr:br=56 -srate 22050 -ovc lavc -lavcopts vcodec=flv:vbitrate=500:mbd=2:mv0:trell:v4mv:cbp:last_pred=3

Some (older?) versions of mencoder will require you to add the option -lavfopts i_certify_that_my_video_stream_does_not_use_b_frames

This assumes you have the lamemp3 libs installed and that the output video rate shoud be 500k (good for web content). For better video quality increase the value at vbitrate=500 to something like 1000 or so.

This works fine on Ubuntu 7.04 (and probably any other system with mencoder installed).

On Fedora I use this command line to convert a HD video to 800×450 with good quality:

mencoder <SOURCE_VIDEO> -o <OUTPUT_VIDEO>.flv -of lavf -oac mp3lame -lameopts abr:br=56 -srate 22050 -ovc lavc -lavcopts vcodec=flv:vbitrate=5000:mbd=2:mv0:trell:v4mv:cbp:last_pred=3 -vf scale=800:450