Results 1 to 3 of 3

Thread: x264 encoding not using 100 % of CPU on quad under LINUX

  1. #1
    Member
    Join Date
    May 2007
    Posts
    160
    Thanks
    0
    Thanked
    4 times in 4 posts
    • graysky's system
      • Motherboard:
      • DFI LT P35-T2R
      • CPU:
      • X3360 @ 8.5x400 (vcc=1.12500V)
      • Memory:
      • 2x2 Gb/Corsair Dominator DDR2-1066 (TWIN2X4096-8500C5DF) @ 5-5-5-15 @ 960 MHz (5:6)
      • Graphics card(s):
      • 8800 GTS 512
      • PSU:
      • Corsair HX-620
      • Case:
      • Antec P182
      • Operating System:
      • Debian

    x264 encoding not using 100 % of CPU on quad under LINUX

    I've been using handbrake under Debian/Lenny-amd64 to do some x264 encoding. What I'm finding is that my CPU usage never approaches >99 % on the 2nd pass of a 2-pass encode like it does when booted into Windows XP. As well, the FPS on the 1st and 2nd pass under LINUX are about 12-15 % SLOWER than when I encode the same file w/ the same exact settings under Windows (handbrake again).

    Hardware details: X3360 @ 3.40 GHz (8.5x400), 2x2 GB @ 5-5-5-15 running at 1,000 MHz (4:5), SATA2 HDDs, DFI LT-P35-T2R motherboard.[/i]

    Source video is a 720x480 source ripped from DVD (progressive).

    handbrake-win64
    Run1: 233.5 fps (pass 1) and 41.8 fps (pass 1)
    Run2: 234.8 fps (pass 1) and 41.8 fps (pass 2)

    Time to encode both passes: 03:29

    handbrake-linux64
    Run1: 192.0 fps (pass 1) and 37.8 fps (pass 2)
    Run2: 193.8 fps (pass 1) and 37.7 fps (pass 2)

    Time to encode both passes: 03:54

    Anyway, I have a few questions:

    1) Can someone else with LINUX and a multicore machine report their CPU usage on an x264 encode (2nd pass)? Does it approach 100 %?

    2) Can someone savvy with a CLI x264 encoder help me to see if my inefficient usage is a function of handbrake, or my LINUX kernel? In other words, maybe by using an alternative x264 encoder (mencoder maybe?), I can try an encode using the same settings to see if I get faster FPS and higher CPU usage.

    Thanks all.
    http://encoding.n3.net <--- for all your DVD and audio CD backup needs!


  2. #2
    Comfortably Numb directhex's Avatar
    Join Date
    Jul 2003
    Location
    /dev/urandom
    Posts
    17,074
    Thanks
    228
    Thanked
    1,027 times in 678 posts
    • directhex's system
      • Motherboard:
      • Asus ROG Strix B550-I Gaming
      • CPU:
      • Ryzen 5900x
      • Memory:
      • 64GB G.Skill Trident Z RGB
      • Storage:
      • 2TB Seagate Firecuda 520
      • Graphics card(s):
      • EVGA GeForce RTX 3080 XC3 Ultra
      • PSU:
      • EVGA SuperNOVA 850W G3
      • Case:
      • NZXT H210i
      • Operating System:
      • Ubuntu 20.04, Windows 10
      • Monitor(s):
      • LG 34GN850
      • Internet:
      • FIOS

    Re: x264 encoding not using 100 % of CPU on quad under LINUX

    Are all four cores being used by handbrake?

  3. #3
    Member
    Join Date
    May 2007
    Posts
    160
    Thanks
    0
    Thanked
    4 times in 4 posts
    • graysky's system
      • Motherboard:
      • DFI LT P35-T2R
      • CPU:
      • X3360 @ 8.5x400 (vcc=1.12500V)
      • Memory:
      • 2x2 Gb/Corsair Dominator DDR2-1066 (TWIN2X4096-8500C5DF) @ 5-5-5-15 @ 960 MHz (5:6)
      • Graphics card(s):
      • 8800 GTS 512
      • PSU:
      • Corsair HX-620
      • Case:
      • Antec P182
      • Operating System:
      • Debian

    Re: x264 encoding not using 100 % of CPU on quad under LINUX

    Quote Originally Posted by directhex View Post
    Are all four cores being used by handbrake?
    They are, but not to 100 &#37;. Here's a screenshot of conky on pass 2:


    Can you give it a try on your Hardy box?
    http://encoding.n3.net <--- for all your DVD and audio CD backup needs!


Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 484
    Last Post: 12-03-2008, 08:17 PM
  2. Overclocking Question
    By planetgong in forum PC Hardware and Components
    Replies: 13
    Last Post: 12-12-2005, 09:29 AM
  3. Low cpu utilisation when encoding.
    By Scarlet Infidel in forum PC Hardware and Components
    Replies: 10
    Last Post: 13-08-2005, 05:52 PM
  4. CPU TIM Guide
    By Steve in forum Help! Quick Relief From Tech Headaches
    Replies: 0
    Last Post: 30-05-2004, 02:59 PM

Posting Permissions

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