View Full Version : anyone using handbrake 0.93 - what's your CPU usage?
graysky
29th November 2008, 19:22
Since switching to LINUX, I've been hurting for MeGUI and all the power/flexibility it has. Recently, Handbrake 0.93 was released and I got the LINUX-x64 version running on my Debian Lenny-amd64 box. I have to say, I'm pretty impressed with it. I do have one issue I can't seem to solve: inefficient usage of my X3360.
MeGUI would max out all four cores on the 2nd pass of an x264 encode. By comparison, Handbrake only uses 66-70 % of them at any given time. This is running without any IVTC or Deinterlacing filter, pure x264 encoding of a 720x480 DVD source. See in the screenshot of Gnome's system monitor. I'm using the 'movie' and as you can see, the usage seems to bounce around from 60-80 % or so. If I look at the processes table of my Gnome system monitor, the average usage of ghb is 66 %.
I'd like to hear from others with multicore CPUs using Handbrake - what is your CPU usage on a 2nd pass x264 encode?
http://img100.imageshack.us/img100/7716/screenshotsystemmonitornv7.png
Adub
29th November 2008, 23:12
Okay, I am running Handbrake on x64 Sabayon (Gentoo). I have to say my cpu usage is not 100%, in fact's it only around 60%, yet I still get faster encodes of tv shows for my ipod than I do with MeGUI on Windows. CPU usage isn't everything. Look at overall speed (fps) of your encodes.
Some times, your decoder is the problem, although I sort of doubt it if you are coming straight from dvd.
Edit: http://i34.photobucket.com/albums/d125/Merlin7777/snapshot2.png
killerhex
30th November 2008, 02:15
where did you guys get your PCs
Adub
30th November 2008, 02:24
Built it myself, why?
killerhex
30th November 2008, 03:07
im building one for ubuntu OS
graysky
30th November 2008, 11:38
Okay, I am running Handbrake on x64 Sabayon (Gentoo). I have to say my cpu usage is not 100%, in fact's it only around 60%, yet I still get faster encodes of tv shows for my ipod than I do with MeGUI on Windows. CPU usage isn't everything. Look at overall speed (fps) of your encodes.
Thanks for the reply. I'm glad to hear someone else w/ and amd64 LINUX sees the same as I am. BTW, what is the system monitoring app you're using? What is your windows manager? And finally, what are the hardware specs on your machine?
where did you guys get your PCs
I too built this machine myself. I'm sure you can build your own. It is very simple to do.
graysky
30th November 2008, 15:06
It does seem as though the LINUX version of Handbrake is slower than the Windows version for some reason. I pulled a chapter off a DVD that's progressive and ran the Windows version of Handbrake against the LINUX x64 version using the same encoding settings on the same machine. Below are the FPS values for pass1 and pass2 on each platform along with the approx. CPU usage. I can post the logs if anyone is interested.
Based on these data, there does seem to be something negatively affecting the speed of the LINUX x64 version of Handbrake by about 12 % compared to the windows version.
O/S details: Windows XP Pro x64 SP2 with all the hotfixes; Debian Lenny amd-64
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.
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
Approx. CPU usage Pass 1: 85-95 %
Approx. CPU usage Pass 2: 95-100 %
This was for pass1 (left) and pass2 (right) under Windows:
http://img65.imageshack.us/img65/5774/handbrakewin64usageqw1.gif
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
Approx. CPU usage Pass 1: 65-75 %
Approx. CPU usage Pass 2: 75-85 %
I drew a black line about where pass 2 started:
http://img167.imageshack.us/img167/4079/linuxvb7.gif
RunningSkittle
30th November 2008, 17:08
Post your x264 command line, or else all other information is totally useless.
graysky
30th November 2008, 17:33
Post your x264 command line, or else all other information is totally useless.
Windows log:### CLI Query: -i "D:\DVD\VIDEO_TS\VTS_01_PGC_01_1.VOB" -t 1 -c 1 -o "e:\incoming\1.mkv" -f mkv --crop 6:10:0:0 -P -e x264 -b 1800 -2 -T -a 1 -E faac -B 160 -R 0 -6 stereo -D 1 --markers="e:\tmp\VTS_01_PGC_01_1.VOB-1-chapters.csv" -x ref=3:mixed-refs=1:bframes=6:weightb=1:direct=auto:b-pyramid=1:me=umh:subq=9:analyse=all:8x8dct=1:trellis=1:no-fast-pskip=1:psy-rd=1,1 -v
#########################################
[07:05:08] hb_init: checking cpu count
[07:05:08] hb_init: starting libhb thread
HandBrake 0.9.3 (2008112300) - http://handbrake.fr/
4 CPUs detected
Opening D:\DVD\VIDEO_TS\VTS_01_PGC_01_1.VOB...
[07:05:08] hb_scan: path=D:\DVD\VIDEO_TS\VTS_01_PGC_01_1.VOB, title_index=1
[07:05:08] scan: trying to open with libdvdread
[07:05:08] dvd: not a dvd - trying as a stream/file instead
[07:05:08] file is MPEG DVD Program Stream
[07:05:08] add_audio_to_title: added AC3 audio stream 0x80bd
[07:05:08] scan: decoding previews for title 1
[07:05:08] scan: audio 0x80bd: AC-3, rate=48000Hz, bitrate=448000 Unknown (AC3) (5.1 ch)
[07:05:09] scan: 10 previews, 720x480, 23.976 fps, autocrop = 0/10/0/0, aspect 16:9, PAR 32:27
[07:05:09] scan: title (0) job->width:720, job->height:400
[07:05:09] libhb: scan thread found 1 valid title(s)
+ title 1:
+ vts 0, ttn 0, cells 0->0 (0 blocks)
+ duration: 00:05:13
+ size: 720x480, aspect: 1.78, 23.976 fps
+ autocrop: 0/10/0/0
+ chapters:
+ 1: cells 0->0, 0 blocks, duration 00:05:13
+ audio tracks:
+ 1, Unknown (AC3) (5.1 ch), 48000Hz, 448000bps
+ subtitle tracks:
Reading chapter markers from file e:\tmp\VTS_01_PGC_01_1.VOB-1-chapters.csv
Invalid sample rate 0, using input rate 48000
Modified x264 options for pass 1 to append turbo options: ref=3:mixed-refs=1:bframes=6:weightb=1:direct=auto:b-pyramid=1:me=umh:subq=9:analyse=all:8x8dct=1:trellis=1:no-fast-pskip=1:psy-rd=1,1:ref=1:subme=1:me=dia:analyse=none:trellis=0:no-fast-pskip=0:8x8dct=0:weightb=0
[07:05:09] 2 job(s) to process
[07:05:09] starting job
[07:05:09] job configuration:
[07:05:09] * source
[07:05:09] + D:\DVD\VIDEO_TS\VTS_01_PGC_01_1.VOB
[07:05:09] + title 1, chapter(s) 1 to 1
[07:05:09] * destination
[07:05:09] + e:\incoming\1.mkv
[07:05:09] + container: Matroska (.mkv)
[07:05:09] + chapter markers
[07:05:09] * video track
[07:05:09] + decoder: mpeg2
[07:05:09] + bitrate 9801 kbps
[07:05:09] + frame rate: same as source (around 23.976 fps)
[07:05:09] + loose anamorphic
[07:05:09] + storage dimensions: 720 * 480 -> 720 * 464, crop 6/10/0/0
[07:05:09] + pixel aspect ratio: 853 / 720
[07:05:09] + display dimensions: 853 * 464
[07:05:09] + encoder: x264
[07:05:09] + options: ref=3:mixed-refs=1:bframes=6:weightb=1:direct=auto:b-pyramid=1:me=umh:subq=9:analyse=all:8x8dct=1:trellis=1:no-fast-pskip=1:psy-rd=1,1:ref=1:subme=1:me=dia:analyse=none:trellis=0:no-fast-pskip=0:8x8dct=0:weightb=0
[07:05:09] + bitrate: 1800 kbps, pass: 1
[07:05:09] * audio track 0
[07:05:09] + decoder: Unknown (AC3) (5.1 ch) (track 1, id 80bd)
[07:05:09] + bitrate: 448 kbps, samplerate: 48000 Hz
[07:05:09] + mixdown: Stereo
[07:05:09] + encoder: faac
[07:05:09] + bitrate: 160 kbps, samplerate: 48000 Hz
[07:05:09] dvd: not a dvd - trying as a stream/file instead
[07:05:09] reader: first SCR 442553179
[07:05:09] mpeg2: "Chapter 1" (1) at frame 0 time 12012
[07:05:09] encx264: keyint-min: 24, keyint-max: 240
[07:05:09] encx264: encoding with stored aspect 853/720
x264 [info]: using SAR=853/720
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 PHADD SSE4.1 Cache64
x264 [info]: profile Main, level 3.0
No accelerated IMDCT transform found
[07:05:09] sync: expecting 7533 video frames
[07:05:09] sync: first pts is 12012
[07:05:41] reader: done. 1 scr changes
[07:05:41] sync: got 7399 frames, 7533 expected
[07:05:41] work: average encoding speed for job is 233.503693 fps
[07:05:41] mpeg2 done: 7400 frames
[07:05:41] render: lost time: 0 (0 frames)
[07:05:41] render: gained time: 0 (0 frames) (0 not accounted for)
x264 [info]: slice I:101 Avg QP:16.22 size: 34138 PSNR Mean Y:46.77 U:49.88 V:49.93 Avg:47.57 Global:47.26
x264 [info]: slice P:2890 Avg QP:17.74 size: 15079 PSNR Mean Y:44.73 U:48.41 V:48.15 Avg:45.61 Global:45.19
x264 [info]: slice B:4409 Avg QP:19.93 size: 5140 PSNR Mean Y:43.37 U:47.70 V:47.41 Avg:44.36 Global:44.08
x264 [info]: consecutive B-frames: 12.6% 28.0% 9.9% 10.8% 16.2% 22.4% 0.1%
x264 [info]: mb I I16..4: 32.5% 0.0% 67.5%
x264 [info]: mb P I16..4: 32.1% 0.0% 0.0% P16..4: 62.8% 0.0% 0.0% 0.0% 0.0% skip: 5.1%
x264 [info]: mb B I16..4: 7.2% 0.0% 0.0% B16..8: 32.2% 0.0% 0.0% direct:29.2% skip:31.4% L0:30.5% L1:50.9% BI:18.6%
x264 [info]: final ratefactor: 21.42
x264 [info]: direct mvs spatial:99.9% temporal:0.1%
x264 [info]: SSIM Mean Y:0.9788087
x264 [info]: PSNR Mean Y:43.946 U:48.009 V:47.730 Avg:44.889 Global:44.517 kb/s:1806.26
[07:05:41] starting job
[07:05:41] job configuration:
[07:05:41] * source
[07:05:41] + D:\DVD\VIDEO_TS\VTS_01_PGC_01_1.VOB
[07:05:41] + title 1, chapter(s) 1 to 1
[07:05:41] * destination
[07:05:41] + e:\incoming\1.mkv
[07:05:41] + container: Matroska (.mkv)
[07:05:41] + chapter markers
[07:05:41] * video track
[07:05:41] + decoder: mpeg2
[07:05:41] + bitrate 9801 kbps
[07:05:41] + frame rate: same as source (around 23.976 fps)
[07:05:41] + loose anamorphic
[07:05:41] + storage dimensions: 720 * 480 -> 720 * 464, crop 6/10/0/0
[07:05:41] + pixel aspect ratio: 853 / 720
[07:05:41] + display dimensions: 853 * 464
[07:05:41] + encoder: x264
[07:05:41] + options: ref=3:mixed-refs=1:bframes=6:weightb=1:direct=auto:b-pyramid=1:me=umh:subq=9:analyse=all:8x8dct=1:trellis=1:no-fast-pskip=1:psy-rd=1,1
[07:05:41] + bitrate: 1800 kbps, pass: 2
[07:05:41] * audio track 0
[07:05:41] + decoder: Unknown (AC3) (5.1 ch) (track 1, id 80bd)
[07:05:41] + bitrate: 448 kbps, samplerate: 48000 Hz
[07:05:41] + mixdown: Stereo
[07:05:41] + encoder: faac
[07:05:41] + bitrate: 160 kbps, samplerate: 48000 Hz
[07:05:41] dvd: not a dvd - trying as a stream/file instead
[07:05:41] encx264: keyint-min: 24, keyint-max: 240
[07:05:41] reader: first SCR 442553179
[07:05:41] encx264: encoding with stored aspect 853/720
x264 [info]: using SAR=853/720
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 PHADD SSE4.1 Cache64
[07:05:41] mpeg2: "Chapter 1" (1) at frame 0 time 12012
x264 [info]: profile High, level 3.0
No accelerated IMDCT transform found
[07:05:41] sync: expecting 7533 video frames
[07:05:41] sync: first pts is 12012
[07:08:38] reader: done. 1 scr changes
[07:08:39] sync: got 7399 frames, 7533 expected
[07:08:39] work: average encoding speed for job is 41.846779 fps
[07:08:40] mpeg2 done: 7400 frames
[07:08:40] render: lost time: 0 (0 frames)
[07:08:40] render: gained time: 0 (0 frames) (0 not accounted for)
x264 [info]: slice I:101 Avg QP:18.37 size: 27052 PSNR Mean Y:44.32 U:50.61 V:50.77 Avg:45.59 Global:45.31
x264 [info]: slice P:2895 Avg QP:20.28 size: 15729 PSNR Mean Y:44.08 U:48.91 V:48.87 Avg:45.16 Global:44.96
x264 [info]: slice B:4404 Avg QP:22.22 size: 4832 PSNR Mean Y:43.13 U:48.11 V:48.05 Avg:44.24 Global:44.10
x264 [info]: consecutive B-frames: 12.7% 28.0% 9.9% 10.8% 16.2% 22.4% 0.1%
x264 [info]: mb I I16..4: 7.3% 75.6% 17.0%
x264 [info]: mb P I16..4: 0.7% 5.9% 1.4% P16..4: 55.3% 19.8% 13.3% 0.3% 0.3% skip: 3.0%
x264 [info]: mb B I16..4: 0.0% 0.4% 0.1% B16..8: 40.9% 1.5% 2.3% direct: 2.4% skip:52.3% L0:38.2% L1:41.7% BI:20.1%
x264 [info]: 8x8 transform intra:74.1% inter:77.4%
x264 [info]: direct mvs spatial:94.8% temporal:5.2%
x264 [info]: ref P L0 54.4% 26.8% 18.8%
x264 [info]: ref B L0 76.5% 23.5%
x264 [info]: ref B L1 94.0% 6.0%
x264 [info]: SSIM Mean Y:0.9760169
x264 [info]: PSNR Mean Y:43.516 U:48.459 V:48.406 Avg:44.618 Global:44.434 kb/s:1802.62
[07:08:40] libhb: work result = 0
Rip done!
HandBrake has exited.
LINUX log:
Handbrake Version: 0.9.3 (2008112300)
[07:43:02] hb_scan: path=/mnt/D/DVD/VIDEO_TS/VTS_01_PGC_01_1.VOB, title_index=1
[07:43:02] scan: trying to open with libdvdread
[07:43:02] dvd: not a dvd - trying as a stream/file instead
[07:43:02] file is MPEG DVD Program Stream
[07:43:02] add_audio_to_title: added AC3 audio stream 0x80bd
[07:43:02] scan: decoding previews for title 1
[07:43:02] scan: audio 0x80bd: AC-3, rate=48000Hz, bitrate=448000 Unknown (AC3) (5.1 ch)
[07:43:02] scan: 10 previews, 720x480, 23.976 fps, autocrop = 0/10/0/0, aspect 16:9, PAR 32:27
[07:43:02] scan: title (0) job->width:720, job->height:400
[07:43:02] libhb: scan thread found 1 valid title(s)
[07:43:02] lingui: Custom Preset: test
[07:43:02] 2 job(s) to process
[07:43:02] starting job
[07:43:02] job configuration:
[07:43:02] * source
[07:43:02] + /mnt/D/DVD/VIDEO_TS/VTS_01_PGC_01_1.VOB
[07:43:02] + title 1, chapter(s) 1 to 1
[07:43:02] * destination
[07:43:02] + ./VTS_01_PGC_01_1.VOB-1.mkv
[07:43:02] + container: Matroska (.mkv)
[07:43:02] + chapter markers
[07:43:02] * video track
[07:43:02] + decoder: mpeg2
[07:43:02] + bitrate 9801 kbps
[07:43:02] + frame rate: same as source (around 23.976 fps)
[07:43:02] + loose anamorphic
[07:43:02] + storage dimensions: 720 * 480 -> 720 * 464, crop 6/10/0/0
[07:43:02] + pixel aspect ratio: 853 / 720
[07:43:02] + display dimensions: 853 * 464
[07:43:02] + encoder: x264
[07:43:02] + options: ref=3:mixed-refs:bframes=6:weightb:direct=auto:b-pyramid:me=umh:subme=9:analyse=all:8x8dct:trellis=1:no-fast-pskip:psy-rd=1,1:ref=1:subme=1:me=dia:analyse=none:trellis=0:no-fast-pskip=0:8x8dct=0:weightb=0
[07:43:02] + bitrate: 1800 kbps, pass: 1
[07:43:02] * audio track 0
[07:43:02] + decoder: Unknown (AC3) (5.1 ch) (track 1, id 80bd)
[07:43:02] + bitrate: 448 kbps, samplerate: 48000 Hz
[07:43:02] + mixdown: Stereo
[07:43:02] + encoder: faac
[07:43:02] + bitrate: 160 kbps, samplerate: 48000 Hz
[07:43:02] encx264: keyint-min: 24, keyint-max: 240
[07:43:02] dvd: not a dvd - trying as a stream/file instead
[07:43:02] encx264: encoding with stored aspect 853/720
x264 [info]: using SAR=853/720
[07:43:02] reader: first SCR 442553179
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 PHADD SSE4.1 Cache64
x264 [info]: profile Main, level 3.0
No accelerated IMDCT transform found
[07:43:02] sync: expecting 7533 video frames
[07:43:02] mpeg2: "Chapter 1" (1) at frame 0 time 12012
[07:43:02] sync: first pts is 12012
[07:43:41] reader: done. 1 scr changes
[07:43:41] sync: got 7399 frames, 7533 expected
[07:43:41] work: average encoding speed for job is 191.995621 fps
[07:43:41] mpeg2 done: 7400 frames
[07:43:41] render: lost time: 0 (0 frames)
[07:43:41] render: gained time: 0 (0 frames) (0 not accounted for)
x264 [info]: slice I:101 Avg QP:16.22 size: 34141 PSNR Mean Y:46.77 U:49.88 V:49.93 Avg:47.57 Global:47.26
x264 [info]: slice P:2890 Avg QP:17.74 size: 15078 PSNR Mean Y:44.73 U:48.41 V:48.15 Avg:45.61 Global:45.19
x264 [info]: slice B:4409 Avg QP:19.94 size: 5140 PSNR Mean Y:43.37 U:47.70 V:47.41 Avg:44.36 Global:44.08
x264 [info]: consecutive B-frames: 12.6% 28.0% 9.9% 10.8% 16.2% 22.4% 0.1%
x264 [info]: mb I I16..4: 32.5% 0.0% 67.5%
x264 [info]: mb P I16..4: 32.1% 0.0% 0.0% P16..4: 62.8% 0.0% 0.0% 0.0% 0.0% skip: 5.1%
x264 [info]: mb B I16..4: 7.2% 0.0% 0.0% B16..8: 32.2% 0.0% 0.0% direct:29.2% skip:31.4% L0:30.4% L1:50.9% BI:18.7%
x264 [info]: final ratefactor: 21.42
x264 [info]: direct mvs spatial:99.9% temporal:0.1%
x264 [info]: SSIM Mean Y:0.9788079
x264 [info]: PSNR Mean Y:43.946 U:48.010 V:47.732 Avg:44.889 Global:44.517 kb/s:1806.25
[07:43:41] starting job
[07:43:41] job configuration:
[07:43:41] * source
[07:43:41] + /mnt/D/DVD/VIDEO_TS/VTS_01_PGC_01_1.VOB
[07:43:41] + title 1, chapter(s) 1 to 1
[07:43:41] * destination
[07:43:41] + ./VTS_01_PGC_01_1.VOB-1.mkv
[07:43:41] + container: Matroska (.mkv)
[07:43:41] + chapter markers
[07:43:41] * video track
[07:43:41] + decoder: mpeg2
[07:43:41] + bitrate 9801 kbps
[07:43:41] + frame rate: same as source (around 23.976 fps)
[07:43:41] + loose anamorphic
[07:43:41] + storage dimensions: 720 * 480 -> 720 * 464, crop 6/10/0/0
[07:43:41] + pixel aspect ratio: 853 / 720
[07:43:41] + display dimensions: 853 * 464
[07:43:41] + encoder: x264
[07:43:41] + options: ref=3:mixed-refs:bframes=6:weightb:direct=auto:b-pyramid:me=umh:subme=9:analyse=all:8x8dct:trellis=1:no-fast-pskip:psy-rd=1,1
[07:43:41] + bitrate: 1800 kbps, pass: 2
[07:43:41] * audio track 0
[07:43:41] + decoder: Unknown (AC3) (5.1 ch) (track 1, id 80bd)
[07:43:41] + bitrate: 448 kbps, samplerate: 48000 Hz
[07:43:41] + mixdown: Stereo
[07:43:41] + encoder: faac
[07:43:41] + bitrate: 160 kbps, samplerate: 48000 Hz
[07:43:41] encx264: keyint-min: 24, keyint-max: 240
[07:43:41] encx264: encoding with stored aspect 853/720
x264 [info]: using SAR=853/720
[07:43:41] dvd: not a dvd - trying as a stream/file instead
[07:43:41] reader: first SCR 442553179
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 PHADD SSE4.1 Cache64
[07:43:41] mpeg2: "Chapter 1" (1) at frame 0 time 12012
x264 [info]: profile High, level 3.0
No accelerated IMDCT transform found
[07:43:42] sync: expecting 7533 video frames
[07:43:42] sync: first pts is 12012
[07:46:57] reader: done. 1 scr changes
[07:46:58] sync: got 7399 frames, 7533 expected
[07:46:58] work: average encoding speed for job is 37.820969 fps
[07:46:59] mpeg2 done: 7400 frames
[07:46:59] render: lost time: 0 (0 frames)
[07:46:59] render: gained time: 0 (0 frames) (0 not accounted for)
x264 [info]: slice I:101 Avg QP:18.37 size: 27086 PSNR Mean Y:44.32 U:50.61 V:50.76 Avg:45.60 Global:45.31
x264 [info]: slice P:2895 Avg QP:20.28 size: 15733 PSNR Mean Y:44.08 U:48.91 V:48.86 Avg:45.17 Global:44.96
x264 [info]: slice B:4404 Avg QP:22.22 size: 4829 PSNR Mean Y:43.13 U:48.11 V:48.05 Avg:44.24 Global:44.10
x264 [info]: consecutive B-frames: 12.7% 28.0% 9.9% 10.8% 16.2% 22.4% 0.1%
x264 [info]: mb I I16..4: 7.5% 75.5% 17.0%
x264 [info]: mb P I16..4: 0.7% 5.9% 1.4% P16..4: 55.4% 19.8% 13.3% 0.3% 0.3% skip: 3.0%
x264 [info]: mb B I16..4: 0.0% 0.4% 0.1% B16..8: 40.9% 1.5% 2.3% direct: 2.4% skip:52.4% L0:38.2% L1:41.7% BI:20.0%
x264 [info]: 8x8 transform intra:74.0% inter:77.5%
x264 [info]: direct mvs spatial:95.1% temporal:4.9%
x264 [info]: ref P L0 54.4% 26.8% 18.8%
x264 [info]: ref B L0 76.6% 23.4%
x264 [info]: ref B L1 94.0% 6.0%
x264 [info]: SSIM Mean Y:0.9760228
x264 [info]: PSNR Mean Y:43.517 U:48.458 V:48.405 Avg:44.618 Global:44.435 kb/s:1802.70
[07:46:59] libhb: work result = 0
Adub
1st December 2008, 19:39
BTW, what is the system monitoring app you're using? What is your windows manager? And finally, what are the hardware specs on your machine?
1) KSysGuard
2) KDE, Compiz disabled.
3) Q6600, stock, 4gb ram (ddr2 800)
Sharktooth
1st December 2008, 20:43
system monitor, ksysguard and windows task manager are all approximated measure systems...
Adub
1st December 2008, 20:55
Do you have a "non-approximated" measurement system? Or is that just inherent in software monitoring systems?
graysky
2nd December 2008, 00:09
I got curious and installed Ubuntu 8.10 amd64 on my spare drive and repeated the test encode to find that it was about 7 % quicker under this distro.
Ubuntu 8.10 amd-64
Run1: 190.1 fps (pass 1) and 40.1 fps (pass 2)
Time to encode both passes: 03:44
Approx. CPU usage Pass 1: 55-66 %
Approx. CPU usage Pass 2: 77-94 %
To remind you the Lenny amd64 results:
Lenny amd-64
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
Approx. CPU usage Pass 1: 65-75 %
Approx. CPU usage Pass 2: 75-85 %
Wish I had a good handle on the variables that affect the CPU usage or efficiency or whatever you want to call it.
buzzqw
2nd December 2008, 08:26
@grasky
just for a comparison could you try the speed of autox264 ? (with same settings)
thanks!
BHH
graysky
3rd December 2008, 12:47
Sorry dude, I appear to be missing libraries... is your app compiled for x86_64?
$ ./autox264
./autox264: error while loading shared libraries: libgtk-x11-2.0.so.0: cannot open shared object file: No such file or directory
buzzqw
3rd December 2008, 13:20
no, sorry i can compile only for i386 not 64bit (due to compiler)
i can suggest a apt-get or getlib :(
BHH
graysky
3rd December 2008, 13:53
Ah, sorry dude, I just reinstalled Lenny after some problems. I don't wanna mess with getlib ever again :)
Adub
3rd December 2008, 23:34
Source: Heroes Season 1 Disk 6 Vob #3.
Average Speed (fps) ----
Autox264:
1st pass: 118.42
2nd pass: 22.918
Handbrake:
1st pass: 148.73
2nd pass: 23.34
This was using the Film preset in Handbrake. I replicated the settings over to autox264. One reason for the first pass speed discrepancy is that Handbrake appends the first pass options like so "ref=1:subme=1:me=dia:analyse=none:trellis=0:no-fast-pskip=0:8x8dct=0:weightb=0" to the end of it's initial commandline.
I did not append this to the autox264 commandline. I essentially replicated both desired options over to both programs, and then let them do what they wanted on their own. Handbrake just happens to modify it's first pass. If I have time I will replicate the test using the appended 1st pass options.
buzzqw
4th December 2008, 08:27
@Merlin7777
there is a "TURBO first pass" option in AutoX264 (on "More X264 Options"), is to check for fast first pass :)
BHH
Adub
4th December 2008, 10:06
Yes, I can see that, but does it do exactly the same thing as Handbrake's appended line?
Dark_Shikari, does enabling the turbo=2 option internally replicate Handbrake's settings, or are the developers of Handbrake taking the "fast first pass" to their own level?
buzzqw
4th December 2008, 11:05
in autox264 Turbo mode is TURBO=2 (same mencoder option)
BHH
Adub
5th December 2008, 05:13
Yes, I know that. I can see this from the commandline. However, I am wondering if the turbo=2 option results in the same settings reduction as Handbrake's appended line.
buzzqw
5th December 2008, 08:53
from mencoder manual
Turbo = Fast first pass mode. During the first pass of a two or more pass encode it is possible to gain speed by disabling some options with negligible or even no impact on the final pass output quality.
0 disabled (default)
1 Reduce subq, frameref and disable some inter-macroblock partition analysis modes.
2 Reduce subq and frameref to 1, use a diamond ME search and disable all partition analysis modes.
BHH
Adub
5th December 2008, 10:46
And what about these options, as appended by Handbrake? no-fast-pskip=0:8x8dct=0:weightb=0
lilhobo
5th December 2008, 13:22
the default on CPU usage/priority is less than normal !!! on windows anways....crank it up to max and you might max the sweet quad core LOL
robertlankford
7th December 2008, 04:36
Here's mine:
http://www.lankfordfamily.com/bb.images/2008.12.6.screen.png
By the way, I love handbrake -- great app.
graysky
7th December 2008, 11:27
EDIT: deleted.
Adub
8th December 2008, 09:49
I can see his image just fine.
graysky
8th December 2008, 20:59
Odd, now I can too.
illestdomer2005
18th December 2008, 01:12
the default on CPU usage/priority is less than normal !!! on windows anways....crank it up to max and you might max the sweet quad core LOL
I saw that too, but my 2nd pass is using 100% of my Q6700, or I should say that when Handbrake is encoding during 2nd pass, 100% of my CPU is being used ;) On 1st pass, it fluctuates anywhere from 50+ - 80 percent. This is with the CLI setting left at the, apparently, default value of "below normal."
I might check it out later to see if it has any impact, but I am getting an average of 30fps on the first pass encoding an AVC blu-ray to 4450MB MKV on the film settings preset (reference frames 3 and b frames 6), which I think is overkill, but we'll see.
graysky
19th December 2008, 00:53
I saw that too, but my 2nd pass is using 100% of my Q6700, or I should say that when Handbrake is encoding during 2nd pass, 100% of my CPU is being used ;) On 1st pass, it fluctuates anywhere from 50+ - 80 percent. This is with the CLI setting left at the, apparently, default value of "below normal."
I might check it out later to see if it has any impact, but I am getting an average of 30fps on the first pass encoding an AVC blu-ray to 4450MB MKV on the film settings preset (reference frames 3 and b frames 6), which I think is overkill, but we'll see.
You're getting 100 % on the 2nd pass under window or linux?
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.