Results 1 to 5 of 5

Thread: Mencoder and dual-processor

  1. #1
    Join Date
    Apr 2008
    Location
    Zagreb, Croatia
    Beans
    69
    Distro
    Ubuntu 12.04 Precise Pangolin

    Question Mencoder and dual-processor

    I do have a dual core CPU on my notebook. Mencoder uses only one of them while encoding (I see that CPU usage is 50% all the time).

    Is there any mains to force mencoder to use both CPU cores for encoding?

  2. #2
    Join Date
    Jun 2007
    Beans
    377

    Re: Mencoder and dual-processor

    Well, I use ffmpeg instead of mencoder, and what you have to do with ffmpeg is to recompile from source with different compile flags (--cpu=core2 in ffmpeg's case).

    Why not search the net for mencoder compilation from source and see what you turn up? May not be for you if you're brand-new to all this though. If you'd like a look at the ffmpeg compile-from-source guide I followed, check out FakeOutdoorsman's great guide here. Not sure if he's already included some additional things I suggested in the replies though, but the guide itself is terrific!

  3. #3
    Join Date
    Dec 2006
    Beans
    6,933

    Re: Mencoder and dual-processor

    Hi sbrbot,

    Quote Originally Posted by sbrbot View Post
    I do have a dual core CPU on my notebook. Mencoder uses only one of them while encoding (I see that CPU usage is 50% all the time).

    Is there any mains to force mencoder to use both CPU cores for encoding?
    If you are using h264 encoding there is an option:

    threads=<0-16>
    Spawn threads to encode in parallel on multiple CPUs (default: 1).
    This has a slight penalty to compression quality. 0 or 'auto'
    tells x264 to detect how many CPUs you have and pick an appropri-
    ate number of threads.
    Is this what you had in mind? I am not sure about different encoders as I will admit to turning more to FFmpeg these days .

    Andrew
    You think that's air you're breathing now?

  4. #4
    Join Date
    Apr 2008
    Location
    Zagreb, Croatia
    Beans
    69
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Mencoder and dual-processor

    My primary goal is to backup my kids' original cartoon DVDs by encoding them into DivX and to reproduce them on standalone DVD (with DivX support) player. You can imagine how kids treat DVDs.

    For example, I encoded my cartoons into Xvid with these parameters:

    Code:
    mencoder dvd://1 -alang hr -oac mp3lame -lameopts vbr=3 -ovc xvid -xvidencopts bitrate=1000:cartoon:vhq=1 -o CARTOON.avi
    Only one pass took 215 minutes for about 81 minutes of movie on 2.5GHz CPU (actually my CPU is dual core 2x2.5GHz but mencoder uses only one of cores during encoding process). (lavc only needs 18 minutes for this one pass encoding).

    I'll see how to compile mencoder on my own in order to enable dual core support.

    However, I'm not sure if my standalone DVD player supports x264 but probably not.

  5. #5
    Join Date
    Oct 2008
    Location
    mmm
    Beans
    102
    Distro
    Kubuntu 10.04 Lucid Lynx

    Re: Mencoder and dual-processor

    i have made a gui for mencoder ffmpeg and ffmpeg2theora

    anyway

    this is the option

    -ovc xvid -xvidencopts bitrate=900:threads=2

    threads=2

    means dual core if you have more ... change it

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •