PDA

View Full Version : mencoder not working any more?


spottyrover
28th July 2008, 07:01
I have been using mencoder with x264 codec for a year now for capturing soccer (football) from foxtel using the composite input.
I am using ubuntu hardy now before it was debian via kanotix
I have updated to a new computer and now I get this error
"x264 [error]: no ratecontrol method specified
x264_encoder_open failed.
FATAL: Cannot initialize video driver."
the command is
"mencoder -oac mp3lame=1 -fps 25 -ovc x264=1 -tv driver=v4l2:norm=pal-i:input=1:adevice=/dev/dsp:audiorate=48000:width=384:height=288 -af volume=-7 -endpos 03:10:00 -o /media/sdb1_TV/1_TV/Soccer/soccer-game1.avi tv:// "

I am looking for good quality over size since it is a fast moving screen when initially testing I found this to be the best.

Any advice on how to fix it or for a better system I would be very greatfull


Thanks Dave

talen9
28th July 2008, 08:08
Try updating (=recompiling) mencoder/mplayer, seems like it's compiled against an old version of x264 (one that defaulted to - I think - CRF mode if it was not specified in the command line). This x264 behaviour was changed in revision 655, on May 2, 2007 ;)

With the O.S. upgrade, its likely that a recent x264 library was installed, breaking the compatibility with the command line you have been using before.


EDIT: thinking better, you don't have to recompile anything :) just add a parameter to your command line, something like "-x264enc crf=22" should obtain you similar or better output than before :)

spottyrover
31st July 2008, 12:19
thanks for your help
I will give the crf=22 option a go first

Dave

DarkZell666
31st July 2008, 12:52
EDIT: thinking better, you don't have to recompile anything :) just add a parameter to your command line, something like "-x264enc crf=22" should obtain you similar or better output than before :)

Actually it's "-x264encopts crf=22" :p

talen9
31st July 2008, 15:41
Whooops! :o Thanks to DarkZell666 for the correction!

I said "something like ..", though :p

spottyrover
3rd August 2008, 14:35
Thanks guys that worked fine

next challange geting the sound to sync after 30 min of recording
I will start a new thread for it

Dave