# Help with mencoder? - converting to flv format

**URL:** <https://www.ruby-forum.com/t/help-with-mencoder-converting-to-flv-format/114871>\
**Category:** Rails\
**Created:** [September 18, 2007, 12:49pm UTC](https://www.ruby-forum.com/t/help-with-mencoder-converting-to-flv-format/114871 "2007-09-18T12:49:48Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![cmaxvv](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/85f322/32.png) [@cmaxvv](https://www.ruby-forum.com/u/cmaxvv)\
**Post date:** [September 18, 2007, 12:49pm UTC](https://www.ruby-forum.com/t/help-with-mencoder-converting-to-flv-format/114871/1 "2007-09-18T12:49:48Z")

</div>

For my app, i need to let people upload movies, and then convert them to  
flv format. I’m using mencoder for this. I can convert older avis to  
flv ok with the options

mencoder -ffourcc FLV1 -of lavf -ovc lavc -lavcopts  
vcodec=flv:vbitrate=200:vqmin=3:vpass=1:acodec=mp3:abitrate=56 -srate  
22050 -oac lavc -lavcopts acodec=mp3:abitrate=32 -lavfopts  
i\_certify\_that\_my\_video\_stream\_does\_not\_use\_b\_frames -vop scale=360:240

but when i try to convert divx or xvid i get problems, such as mencoder  
complaining that it doesn’t have the mp3 codec. I’ve looked on the  
mencoder site (possibly in the wrong places) but can’t find any mp3  
codec.

Basically i’m struggling - has anyone been through this and have a nice  
solution i could blatantly copy? 🙂 Or just some general advice?

any help very much appreciated  
max

---

<div class="post-metadata">

**Author:** ![cmaxvv](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/85f322/32.png) [@cmaxvv](https://www.ruby-forum.com/u/cmaxvv)\
**Post date:** [September 18, 2007, 2:26pm UTC](https://www.ruby-forum.com/t/help-with-mencoder-converting-to-flv-format/114871/2 "2007-09-18T14:26:29Z")

</div>

Max W. wrote:

> For my app, i need to let people upload movies, and then convert them to  
> flv format. I’m using mencoder for this. I can convert older avis to  
> flv ok with the options
> 
> mencoder -ffourcc FLV1 -of lavf -ovc lavc -lavcopts  
> vcodec=flv:vbitrate=200:vqmin=3:vpass=1:acodec=mp3:abitrate=56 -srate  
> 22050 -oac lavc -lavcopts acodec=mp3:abitrate=32 -lavfopts  
> i\_certify\_that\_my\_video\_stream\_does\_not\_use\_b\_frames -vop scale=360:240
> 
> but when i try to convert divx or xvid i get problems, such as mencoder  
> complaining that it doesn’t have the mp3 codec. I’ve looked on the  
> mencoder site (possibly in the wrong places) but can’t find any mp3  
> codec.
> 
> Basically i’m struggling - has anyone been through this and have a nice  
> solution i could blatantly copy? 🙂 Or just some general advice?
> 
> any help very much appreciated  
> max

Actually, i just tried ffmpeg instead and it’s a million times easier,  
for my purposes. Having a very good day now, i’d recommend ffmpeg to  
anyone for converting to flv. 🙂
