Encode speed differs on Win64 vs. Linux64

Support for HandBrake on Linux, Solaris, and other Unix-like platforms
Forum rules
Activity Log is required for support requests. See Must Read: How To Get Questions Answered on These Forums for details

Forum Rules can be found here

Encode speed differs on Win64 vs. Linux64

Postby graysky » Tue Nov 03, 2009 2:16 am

For reasons I can't explain, handbrakecli is faster on Windows XP 64-bit Edition than Linux (Arch Linux x86_64).

For a 60 fps 720p encode using the Constant Quality Rate profile for 0.93 and the High Profile on snapshot 2907

Results version 0.9.3
Linux: avg 15.85 fps
Win: avg 17.20 fps
Windows: 7-8 % faster w/ version 0.93

Results snapshot 2907
Linux: avg 15.99 fps
Win: avg 20.41 fps
Windows: 22 % faster w/ snapshot 2907!

I ran the encode three times under each O/S and the results were more or less identical. How can it be that XP with its 6-year-old kernel is actually more efficient than the latest Linux kernel? The snapshot build really sucks under Linux as you can see.

Log files, first Linux 0.9.3:
Code: Select all
$ HandBrakeCLI --verbose --input hdtest.mpg --output test.m4v --preset="Constant Quality Rate"
[19:52:13] hb_init: checking cpu count
[19:52:13] hb_init: starting libhb thread
HandBrake svnesportato (2009092701) - http://handbrake.fr/
4 CPUs detected
Opening hdtest.mpg...
[19:52:13] hb_scan: path=hdtest.mpg, title_index=1
[19:52:13] scan: trying to open with libdvdread
[19:52:13] dvd: not a dvd - trying as a stream/file instead
[19:52:13] file is MPEG DVD Program Stream
[19:52:13] add_audio_to_title: added AC3 audio stream 0x80bd
[19:52:13] scan: decoding previews for title 1
[19:52:13] scan: audio 0x80bd: AC-3, rate=48000Hz, bitrate=384000 Unknown (AC3) (2.0 ch)
[19:52:13] scan: 10 previews, 1280x720, 59.940 fps, autocrop = 0/2/0/2, aspect 16:9, PAR 1:1
[19:52:13] scan: title (0) job->width:1280, job->height:720
[19:52:13] libhb: scan thread found 1 valid title(s)
+ title 1:
  + vts 0, ttn 0, cells 0->0 (0 blocks)
  + duration: 00:01:12
  + size: 1280x720, aspect: 1.78, 59.940 fps
  + autocrop: 0/2/0/2
  + chapters:
    + 1: cells 0->0, 0 blocks, duration 00:01:12
  + audio tracks:
    + 1, Unknown (AC3) (2.0 ch), 48000Hz, 384000bps
  + subtitle tracks:
+ Using preset: Constant Quality RateInvalid sample rate 0, using input rate 48000
[19:52:13] 1 job(s) to process
[19:52:13] starting job
[19:52:13] job configuration:
[19:52:13]  * source
[19:52:13]    + hdtest.mpg
[19:52:13]    + title 1, chapter(s) 1 to 1
[19:52:13]  * destination
[19:52:13]    + test.m4v
[19:52:13]    + container: Matroska (.mkv)
[19:52:13]      + chapter markers
[19:52:13]  * video track
[19:52:13]    + decoder: mpeg2
[19:52:13]      + bitrate 18575 kbps
[19:52:13]    + frame rate: same as source (around 59.940 fps)
[19:52:13]    + strict anamorphic
[19:52:13]      + storage dimensions: 1280 * 720 -> 1278 * 718, crop 0/2/0/2
[19:52:13]      + pixel aspect ratio: 1 / 1
[19:52:13]      + display dimensions: 1278 * 718
[19:52:13]    + encoder: x264
[19:52:13]      + options: ref=3:mixed-refs:bframes=3:b-pyramid:weightb:filter=-2,-1:trellis=1:analyse=all:8x8dct:me=umh:subme=9:psy-rd=1,1
[19:52:13]      + quality: 0.60
[19:52:13]  * audio track 0
[19:52:13]    + decoder: Unknown (AC3) (2.0 ch) (track 1, id 80bd)
[19:52:13]      + bitrate: 384 kbps, samplerate: 48000 Hz
[19:52:13]    + AC3 passthrough
[19:52:13] encx264: keyint-min: 60, keyint-max: 600
[19:52:13] dvd: not a dvd - trying as a stream/file instead
[19:52:13] encx264: encoding with stored aspect 1/1
[19:52:13] encx264: Encoding at constant RF 20.400000
[19:52:13] reader: first SCR 90
x264 [warning]: width or height not divisible by 16 (1278x718), compression will suffer.
x264 [info]: using SAR=1/1
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 PHADD SSE4.1 Cache64
x264 [info]: profile High, level 3.2
No accelerated IMDCT transform found
[19:52:13] sync: expecting 4390 video frames
[19:52:13] mpeg2: "" (1) at frame 0 time 4500
[19:52:13] sync: first pts is 4500
Encoding: task 1 of 1, 97.77 % (18.91 fps, avg 15.83 fps, ETA 00h00m07s)[19:56:45] reader: done. 0 scr changes
Encoding: task 1 of 1, 98.95 % (17.19 fps, avg 15.85 fps, ETA 00h00m03s)[19:56:48] sync: got 4344 frames, 4390 expected
[19:56:48] work: average encoding speed for job is 15.845109 fps
Encoding: task 1 of 1, 98.95 % (17.19 fps, avg 15.85 fps, ETA 00h00m03s)[19:56:51] mpeg2 done: 4345 frames
[19:56:51] render: lost time: 0 (0 frames)
[19:56:51] render: gained time: 0 (0 frames) (0 not accounted for)
x264 [info]: slice I:15    Avg QP:19.89  size:150366  PSNR Mean Y:42.20 U:48.54 V:49.66 Avg:43.52 Global:43.24
x264 [info]: slice P:1448  Avg QP:22.02  size: 54270  PSNR Mean Y:41.03 U:44.38 V:45.63 Avg:41.98 Global:41.71
x264 [info]: slice B:2882  Avg QP:23.57  size: 15071  PSNR Mean Y:41.05 U:43.77 V:45.33 Avg:41.90 Global:41.58
x264 [info]: consecutive B-frames:  1.3% 17.1% 38.4% 43.2%
x264 [info]: mb I  I16..4:  0.2% 97.1%  2.8%
x264 [info]: mb P  I16..4:  0.1%  6.1%  0.3%  P16..4: 46.4% 21.8% 22.0%  0.4%  1.5%    skip: 1.4%
x264 [info]: mb B  I16..4:  0.0%  0.3%  0.0%  B16..8: 40.6%  0.8%  2.6%  direct:12.3%  skip:43.4%  L0:33.3% L1:35.4% BI:31.3%
x264 [info]: 8x8 transform  intra:94.7%  inter:68.3%
x264 [info]: ref P L0  60.2% 31.5%  8.3%
x264 [info]: ref B L0  77.2% 22.8%
x264 [info]: ref B L1  91.0%  9.0%
x264 [info]: SSIM Mean Y:0.9789976
x264 [info]: PSNR Mean Y:41.045 U:43.987 V:45.446 Avg:41.932 Global:41.625 kb/s:13714.88
[19:56:51] libhb: work result = 0

Rip done!
HandBrake has exited.


Now WinXP 64 0.9.3:
Code: Select all
>HandBrakeCLI.exe --verbose --input d:\hdtest.mpg --output test.m4v --preset="Constant Qualit
y Rate"
[20:03:39] hb_init: checking cpu count
[20:03:39] hb_init: starting libhb thread
HandBrake 0.9.3 (2008112300) - http://handbrake.fr/
4 CPUs detected
Opening d:\hdtest.mpg...
[20:03:39] hb_scan: path=d:\hdtest.mpg, title_index=1
[20:03:39] scan: trying to open with libdvdread
[20:03:39] dvd: not a dvd - trying as a stream/file instead
[20:03:39] file is MPEG DVD Program Stream
[20:03:39] add_audio_to_title: added AC3 audio stream 0x80bd
[20:03:39] scan: decoding previews for title 1
Scanning title 1...
[20:03:39] scan: audio 0x80bd: AC-3, rate=48000Hz, bitrate=384000 Unknown (AC3)
(2.0 ch)
Scanning title 1...
[20:03:39] scan: 10 previews, 1280x720, 59.940 fps, autocrop = 0/2/0/2, aspect 1
6:9, PAR 1:1
[20:03:39] scan: title (0) job->width:1280, job->height:720
[20:03:39] libhb: scan thread found 1 valid title(s)
+ title 1:
  + vts 0, ttn 0, cells 0->0 (0 blocks)
  + duration: 00:01:12
  + size: 1280x720, aspect: 1.78, 59.940 fps
  + autocrop: 0/2/0/2
  + chapters:
    + 1: cells 0->0, 0 blocks, duration 00:01:12
  + audio tracks:
    + 1, Unknown (AC3) (2.0 ch), 48000Hz, 384000bps
  + subtitle tracks:
+ Using preset: Constant Quality RateInvalid sample rate 0, using input rate 480
00
[20:03:40] 1 job(s) to process
[20:03:40] starting job
[20:03:40] job configuration:
[20:03:40]  * source
[20:03:40]    + d:\hdtest.mpg
[20:03:40]    + title 1, chapter(s) 1 to 1
[20:03:40]  * destination
[20:03:40]    + test.m4v
[20:03:40]    + container: Matroska (.mkv)
[20:03:40]      + chapter markers
[20:03:40]  * video track
[20:03:40]    + decoder: mpeg2
[20:03:40]      + bitrate 18575 kbps
[20:03:40]    + frame rate: same as source (around 59.940 fps)
[20:03:40]    + strict anamorphic
[20:03:40]      + storage dimensions: 1280 * 720 -> 1278 * 718, crop 0/2/0/2
[20:03:40]      + pixel aspect ratio: 1 / 1
[20:03:40]      + display dimensions: 1278 * 718
[20:03:40]    + encoder: x264
[20:03:40]      + options: ref=3:mixed-refs:bframes=3:b-pyramid:weightb:filter=-
2,-1:trellis=1:analyse=all:8x8dct:me=umh:subme=9:psy-rd=1,1
[20:03:40]      + quality: 0.60
[20:03:40]  * audio track 0
[20:03:40]    + decoder: Unknown (AC3) (2.0 ch) (track 1, id 80bd)
[20:03:40]      + bitrate: 384 kbps, samplerate: 48000 Hz
[20:03:40]    + AC3 passthrough
[20:03:40] dvd: not a dvd - trying as a stream/file instead
[20:03:40] reader: first SCR 90
[20:03:40] mpeg2: "" (1) at frame 0 time 4500
[20:03:40] encx264: keyint-min: 60, keyint-max: 600
[20:03:40] encx264: encoding with stored aspect 1/1
[20:03:40] encx264: Encoding at constant RF 20.399999
x264 [warning]: width or height not divisible by 16 (1278x718), compression will
suffer.
x264 [info]: using SAR=1/1
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 PHADD SSE4.1 Cache64
x264 [info]: profile High, level 3.2
No accelerated IMDCT transform found
[20:03:40] sync: expecting 4390 video frames
[20:03:40] sync: first pts is 4500
[20:07:50] reader: done. 0 scr changesEncoding: task 1 of 1, 97.90 % (19.29 fps,
Encoding: task 1 of 1, 98.95 % (19.44 fps, avg 17.20 fps, ETA 00h00m03s)[20:07:5
3] sync: got 4344 frames, 4390 expected
[20:07:53] work: average encoding speed for job is 17.204609 fps
Encoding: task 1 of 1, 98.95 % (19.44 fps, avg 17.20 fps, ETA 00h00m03s)[20:07:5
6] mpeg2 done: 4345 frames
[20:07:56] render: lost time: 0 (0 frames)
[20:07:56] render: gained time: 0 (0 frames) (0 not accounted for)
x264 [info]: slice I:15    Avg QP:19.89  size:150366  PSNR Mean Y:42.20 U:48.54
V:49.66 Avg:43.52 Global:43.24
x264 [info]: slice P:1448  Avg QP:22.02  size: 54270  PSNR Mean Y:41.03 U:44.38
V:45.63 Avg:41.98 Global:41.71
x264 [info]: slice B:2882  Avg QP:23.57  size: 15071  PSNR Mean Y:41.05 U:43.77
V:45.33 Avg:41.90 Global:41.58
x264 [info]: consecutive B-frames:  1.3% 17.1% 38.4% 43.2%
x264 [info]: mb I  I16..4:  0.2% 97.1%  2.8%
x264 [info]: mb P  I16..4:  0.1%  6.1%  0.3%  P16..4: 46.4% 21.8% 22.0%  0.4%  1
.5%    skip: 1.4%
x264 [info]: mb B  I16..4:  0.0%  0.3%  0.0%  B16..8: 40.6%  0.8%  2.6%  direct:
12.3%  skip:43.4%  L0:33.3% L1:35.4% BI:31.3%
x264 [info]: 8x8 transform  intra:94.7%  inter:68.3%
x264 [info]: ref P L0  60.2% 31.5%  8.3%
x264 [info]: ref B L0  77.2% 22.8%
x264 [info]: ref B L1  91.0%  9.0%
x264 [info]: SSIM Mean Y:0.9789976
x264 [info]: PSNR Mean Y:41.045 U:43.987 V:45.446 Avg:41.932 Global:41.625 kb/s:
13714.83
Muxing: this may take awhile...[20:07:56] libhb: work result = 0

Rip done!
HandBrake has exited.


Linux snapshot 2907:
Code: Select all
$ HandBrakeCLI --verbose --input hdtest.mpg --output test.m4v --preset="High Profile"
[20:33:49] hb_init: checking cpu count
[20:33:49] hb_init: starting libhb thread
HandBrake svn2911 (2009110201) - Linux x86_64 - http://handbrake.fr
4 CPUs detected
Opening hdtest.mpg...
[20:33:49] hb_scan: path=hdtest.mpg, title_index=1
[20:33:49] scan: trying to open with libdvdread
libdvdnav: Using dvdnav version 4.1.3
libdvdread: Using libdvdcss version 1.2.10 for DVD access
libdvdnav:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.IFO failed
libdvdnav:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.BUP failed
libdvdread: Can't open file VIDEO_TS.IFO.
libdvdnav: vm: failed to read VIDEO_TS.IFO
[20:33:49] dvd: not a dvd - trying as a stream/file instead
[20:33:49] file is MPEG DVD Program Stream
[20:33:49] add_audio_to_title: added AC3 audio stream 0x80bd
[20:33:49] scan: decoding previews for title 1
[20:33:49] scan: audio 0x80bd: AC-3, rate=48000Hz, bitrate=384000 Unknown (AC3) (2.0 ch)
[20:33:49] scan: 10 previews, 1280x720, 59.940 fps, autocrop = 0/2/0/2, aspect 16:9, PAR 1:1
[20:33:49] scan: title (0) job->width:1280, job->height:720
[20:33:49] libhb: scan thread found 1 valid title(s)
+ title 1:
  + vts 0, ttn 0, cells 0->0 (0 blocks)
  + angle(s) 0
  + duration: 00:01:12
  + size: 1280x720, pixel aspect: 1/1, display aspect: 1.78, 59.940 fps
  + autocrop: 0/2/0/2
  + chapters:
    + 1: cells 0->0, 0 blocks, duration 00:01:12
  + audio tracks:
    + 1, Unknown (AC3) (2.0 ch) (iso639-2: und), 48000Hz, 384000bps
  + subtitle tracks:
+ Using preset: High ProfileInvalid sample rate 0, using input rate 48000
[20:33:49] 1 job(s) to process
[20:33:49] starting job
[20:33:49] work: sanitizing track 0 mixdown Dolby Pro Logic II to Stereo
[20:33:49] job configuration:
[20:33:49]  * source
[20:33:49]    + hdtest.mpg
[20:33:49]    + title 1, chapter(s) 1 to 1
[20:33:49]  * destination
[20:33:49]    + test.m4v
[20:33:49]    + container: MPEG-4 (.mp4 and .m4v)
[20:33:49]      + chapter markers
[20:33:49]  * video track
[20:33:49]    + decoder: mpeg2
[20:33:49]      + bitrate 18575 kbps
[20:33:49]    + frame rate: same as source (around 59.940 fps)
[20:33:49]    + loose anamorphic
[20:33:49]      + modulus: 0
[20:33:49]      + storage dimensions: 1280 * 720 -> 1280 * 720, crop 0/2/0/2
[20:33:49]      + pixel aspect ratio: 1281 / 1280
[20:33:49]      + display dimensions: 1281 * 720
[20:33:49]    + filters
[20:33:49]      + Detelecine (pullup) (default settings)
[20:33:49]      + Decomb (default settings)
[20:33:49]    + encoder: x264
[20:33:49]      + options: b-pyramid:b-adapt=2:me=umh:subme=9:analyse=all:trellis=0
[20:33:49]      + quality: 20.00 (RF)
[20:33:49]  * audio track 0
[20:33:49]    + decoder: Unknown (AC3) (2.0 ch) (track 1, id 80bd)
[20:33:49]      + bitrate: 384 kbps, samplerate: 48000 Hz
[20:33:49]    + mixdown: Stereo
[20:33:49]    + encoder: faac
[20:33:49]      + bitrate: 160 kbps, samplerate: 48000 Hz
[20:33:49]  * audio track 1
[20:33:49]    + decoder: Unknown (AC3) (2.0 ch) (track 1, id 80bd)
[20:33:49]      + bitrate: 384 kbps, samplerate: 48000 Hz
[20:33:49]    + AC3 passthrough
libdvdnav: Using dvdnav version 4.1.3
libdvdread: Using libdvdcss version 1.2.10 for DVD access
libdvdnav:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.IFO failed
libdvdnav:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.BUP failed
libdvdread: Can't open file VIDEO_TS.IFO.
libdvdnav: vm: failed to read VIDEO_TS.IFO
[20:33:49] dvd: not a dvd - trying as a stream/file instead
[20:33:49] reader: first SCR 90 id 224 DTS 16200
[20:33:49] yadif thread started for segment 0
[20:33:49] yadif thread started for segment 1
[20:33:49] yadif thread started for segment 2
[20:33:49] yadif thread started for segment 3
[20:33:49] decomb thread started for segment 0
[20:33:49] decomb thread started for segment 1
[20:33:49] decomb thread started for segment 2
[20:33:49] decomb thread started for segment 3
[20:33:49] encx264: keyint-min: 60, keyint-max: 600
[20:33:49] encx264: encoding with stored aspect 1281/1280
[20:33:49] encx264: Encoding at constant RF 20.000000
x264 [warning]: b-pyramid + mb-tree is not supported
x264 [info]: using SAR=1281/1280
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE4.1 Cache64
[20:33:49] mpeg2: "" (1) at frame 0 time 4500
x264 [info]: profile High, level 3.2
No accelerated IMDCT transform found
No accelerated IMDCT transform found
[20:33:49] sync: expecting 4424 video frames
[ac3 @ 0x446f8f0]No channel layout specified. The encoder will guess the layout, but it might be incorrect.
[20:33:49] sync: first pts is 4500
Encoding: task 1 of 1, 97.06 % (19.72 fps, avg 15.95 fps, ETA 00h00m09s)[20:38:19] reader: done. 0 scr changes
Encoding: task 1 of 1, 98.12 % (20.12 fps, avg 15.99 fps, ETA 00h00m05s)[20:38:21] sync: got 4344 frames, 4424 expected
[20:38:21] work: average encoding speed for job is 15.992866 fps
Encoding: task 1 of 1, 98.19 % (20.12 fps, avg 15.99 fps, ETA 00h00m05s)[20:38:26] mux: track 0, 4343 frames, 112789308 bytes, 12384.88 kbps, fifo 64
[20:38:26] mux: track 1, 3416 frames, 1457657 bytes, 160.06 kbps, fifo 256
[20:38:26] mux: track 2, 2277 frames, 3497472 bytes, 384.04 kbps, fifo 128
[20:38:26] mpeg2 done: 4345 frames
[20:38:26] render: lost time: 1500 (1 frames)
[20:38:26] render: gained time: 1500 (4 frames) (0 not accounted for)
[20:38:26] render: average dropped frame duration: 1500
[20:38:26] encx264: 1 frames had to be split (4342 in, 4395 out)
x264 [info]: frame I:15    Avg QP:16.86  size:231946  PSNR Mean Y:46.25 U:48.55 V:49.54 Avg:46.99 Global:46.80
x264 [info]: frame P:1676  Avg QP:19.86  size: 57385  PSNR Mean Y:42.81 U:44.49 V:45.66 Avg:43.42 Global:43.28
x264 [info]: frame B:2652  Avg QP:24.88  size:  4952  PSNR Mean Y:41.82 U:44.07 V:45.53 Avg:42.58 Global:42.40
x264 [info]: consecutive B-frames:  3.7% 18.2% 76.6%  1.5%
x264 [info]: mb I  I16..4:  0.3% 84.6% 15.2%
x264 [info]: mb P  I16..4:  0.1%  2.2%  0.3%  P16..4: 54.0% 18.1% 20.4%  0.7%  1.2%    skip: 3.2%
x264 [info]: mb B  I16..4:  0.0%  0.1%  0.0%  B16..8: 45.2%  0.4%  1.2%  direct: 4.7%  skip:48.4%  L0:24.8% L1:62.9% BI:12.3%
x264 [info]: 8x8 transform intra:87.1% inter:60.8%
x264 [info]: coded y,uvDC,uvAC intra: 96.3% 98.3% 81.1% inter: 29.5% 34.7% 14.6%
x264 [info]: i16 v,h,dc,p: 13%  8%  5% 74%
x264 [info]: i8 v,h,dc,ddl,ddr,vr,hd,vl,hu:  7%  6%  2% 11% 16% 16% 14% 14% 14%
x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu:  9%  5%  2% 10% 16% 17% 14% 14% 14%
x264 [info]: ref P L0: 91.1%  5.9%  3.0%
x264 [info]: ref B L0: 95.2%  4.8%
x264 [info]: SSIM Mean Y:0.9815771
x264 [info]: PSNR Mean Y:42.217 U:44.248 V:45.592 Avg:42.917 Global:42.732 kb/s:12453.40
[20:38:26] decomb: deinterlaced 0 | blended 0 | unfiltered 4342 | total 4342
[20:38:26] libhb: work result = 0

Rip done!
HandBrake has exited.


Win64 snapshot 2907:
Code: Select all
HandBrake-svn2907-Win_CLI>HandBrakeCLI --verbose --input d:\hdtest.mpg --output d:\test.m4v --preset="High Profile"
[20:20:21] hb_init: checking cpu count
[20:20:21] hb_init: starting libhb thread
HandBrake svn2907 (2009103101) - MinGW i386 - http://handbrake.fr
4 CPUs detected
Opening d:\hdtest.mpg...
[20:20:21] hb_scan: path=d:\hdtest.mpg, title_index=1
[20:20:21] scan: trying to open with libdvdread
libdvdnav: Using dvdnav version 4.1.3
libdvdread: Encrypted DVD support unavailable.
libdvdnav:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.IFO failed
libdvdnav:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.BUP failed
libdvdread: Can't open file VIDEO_TS.IFO.
libdvdnav: vm: failed to read VIDEO_TS.IFO
[20:20:21] dvd: not a dvd - trying as a stream/file instead
[20:20:21] file is MPEG DVD Program Stream
[20:20:21] add_audio_to_title: added AC3 audio stream 0x80bd
[20:20:21] scan: decoding previews for title 1
[20:20:21] scan: audio 0x80bd: AC-3, rate=48000Hz, bitrate=384000 Unknown (AC3)
(2.0 ch)
Scanning title 1...
[20:20:21] scan: 10 previews, 1280x720, 59.940 fps, autocrop = 0/2/0/2, aspect 1
6:9, PAR 1:1
[20:20:21] scan: title (0) job->width:1280, job->height:720
[20:20:21] libhb: scan thread found 1 valid title(s)
+ title 1:
  + vts 0, ttn 0, cells 0->0 (0 blocks)
  + angle(s) 0
  + duration: 00:01:12
  + size: 1280x720, pixel aspect: 1/1, display aspect: 1.78, 59.940 fps
  + autocrop: 0/2/0/2
  + chapters:
    + 1: cells 0->0, 0 blocks, duration 00:01:12
  + audio tracks:
    + 1, Unknown (AC3) (2.0 ch) (iso639-2: und), 48000Hz, 384000bps
  + subtitle tracks:
+ Using preset: High ProfileInvalid sample rate 0, using input rate 48000
[20:20:22] 1 job(s) to process
[20:20:22] starting job
[20:20:22] work: sanitizing track 0 mixdown Dolby Pro Logic II to Stereo
[20:20:22] job configuration:
[20:20:22]  * source
[20:20:22]    + d:\hdtest.mpg
[20:20:22]    + title 1, chapter(s) 1 to 1
[20:20:22]  * destination
[20:20:22]    + d:\test.m4v
[20:20:22]    + container: MPEG-4 (.mp4 and .m4v)
[20:20:22]      + chapter markers
[20:20:22]  * video track
[20:20:22]    + decoder: mpeg2
[20:20:22]      + bitrate 18575 kbps
[20:20:22]    + frame rate: same as source (around 59.940 fps)
[20:20:22]    + loose anamorphic
[20:20:22]      + modulus: 0
[20:20:22]      + storage dimensions: 1280 * 720 -> 1280 * 720, crop 0/2/0/2
[20:20:22]      + pixel aspect ratio: 1281 / 1280
[20:20:22]      + display dimensions: 1281 * 720
[20:20:22]    + filters
[20:20:22]      + Detelecine (pullup) (default settings)
[20:20:22]      + Decomb (default settings)
[20:20:22]    + encoder: x264
[20:20:22]      + options: b-pyramid:b-adapt=2:me=umh:subme=9:analyse=all:trelli
s=0
[20:20:22]      + quality: 20.00 (RF)
[20:20:22]  * audio track 0
[20:20:22]    + decoder: Unknown (AC3) (2.0 ch) (track 1, id 80bd)
[20:20:22]      + bitrate: 384 kbps, samplerate: 48000 Hz
[20:20:22]    + mixdown: Stereo
[20:20:22]    + encoder: faac
[20:20:22]      + bitrate: 160 kbps, samplerate: 48000 Hz
[20:20:22]  * audio track 1
[20:20:22]    + decoder: Unknown (AC3) (2.0 ch) (track 1, id 80bd)
[20:20:22]      + bitrate: 384 kbps, samplerate: 48000 Hz
[20:20:22]    + AC3 passthrough
libdvdnav: Using dvdnav version 4.1.3
libdvdread: Encrypted DVD support unavailable.
libdvdnav:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.IFO failed
libdvdnav:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.BUP failed
libdvdread: Can't open file VIDEO_TS.IFO.
libdvdnav: vm: failed to read VIDEO_TS.IFO
[20:20:22] dvd: not a dvd - trying as a stream/file instead
[20:20:22] reader: first SCR 90 id 224 DTS 16200
[20:20:22] decomb thread started for segment 0
[20:20:22] yadif thread started for segment 0
[20:20:22] decomb thread started for segment 1
[20:20:22] yadif thread started for segment 2
[20:20:22] yadif thread started for segment 1
[20:20:22] yadif thread started for segment 3
[20:20:22] decomb thread started for segment 2
[20:20:22] decomb thread started for segment 3
[20:20:22] mpeg2: "" (1) at frame 0 time 4500
[20:20:22] encx264: keyint-min: 60, keyint-max: 600
[20:20:22] encx264: encoding with stored aspect 1281/1280
[20:20:22] encx264: Encoding at constant RF 20.000000
x264 [warning]: b-pyramid + mb-tree is not supported
x264 [info]: using SAR=1281/1280
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE4.1 Cach
e64
x264 [info]: profile High, level 3.2
No accelerated IMDCT transform found
No accelerated IMDCT transform found
[20:20:22] sync: expecting 4424 video frames
[ac3 @ 0x8d5bb70]No channel layout specified. The encoder will guess the layout,
but it might be incorrect.
[20:20:22] sync: first pts is 4500
Encoding: task 1 of 1, 97.08 % (23.97 fps, avg 20.37 fps, ETA 00h00m06s)[20:23:5
3] reader: done. 0 scr changes
Encoding: task 1 of 1, 98.17 % (24.00 fps, avg 20.41 fps, ETA 00h00m04s)[20:23:5
4] sync: got 4344 frames, 4424 expected
[20:23:54] work: average encoding speed for job is 20.405092 fps
Muxing: this may take awhile...[20:23:58] mux: track 0, 4343 frames, 112789308 b
ytes, 12384.88 kbps, fifo 64
[20:23:58] mux: track 1, 3416 frames, 1457695 bytes, 160.06 kbps, fifo 256
[20:23:58] mux: track 2, 2277 frames, 3497472 bytes, 384.04 kbps, fifo 128
[20:23:58] mpeg2 done: 4345 frames
[20:23:58] render: lost time: 1500 (1 frames)
[20:23:58] render: gained time: 1500 (4 frames) (0 not accounted for)
[20:23:58] render: average dropped frame duration: 1500
[20:23:58] encx264: 1 frames had to be split (4342 in, 4395 out)
x264 [info]: frame I:15    Avg QP:16.86  size:231946  PSNR Mean Y:46.25 U:48.55
V:49.54 Avg:46.99 Global:46.80
x264 [info]: frame P:1676  Avg QP:19.86  size: 57385  PSNR Mean Y:42.81 U:44.49
V:45.66 Avg:43.42 Global:43.28
x264 [info]: frame B:2652  Avg QP:24.88  size:  4952  PSNR Mean Y:41.82 U:44.07
V:45.53 Avg:42.58 Global:42.40
x264 [info]: consecutive B-frames:  3.7% 18.2% 76.6%  1.5%
x264 [info]: mb I  I16..4:  0.3% 84.6% 15.2%
x264 [info]: mb P  I16..4:  0.1%  2.2%  0.3%  P16..4: 54.0% 18.1% 20.4%  0.7%  1
.2%    skip: 3.2%
x264 [info]: mb B  I16..4:  0.0%  0.1%  0.0%  B16..8: 45.2%  0.4%  1.2%  direct:
4.7%  skip:48.4%  L0:24.8% L1:62.9% BI:12.3%
x264 [info]: 8x8 transform intra:87.1% inter:60.8%
x264 [info]: coded y,uvDC,uvAC intra: 96.3% 98.3% 81.1% inter: 29.5% 34.7% 14.6%
x264 [info]: i16 v,h,dc,p: 13%  8%  5% 74%
x264 [info]: i8 v,h,dc,ddl,ddr,vr,hd,vl,hu:  7%  6%  2% 11% 16% 16% 14% 14% 14%
x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu:  9%  5%  2% 10% 16% 17% 14% 14% 14%
x264 [info]: ref P L0: 91.1%  5.9%  3.0%
x264 [info]: ref B L0: 95.2%  4.8%
x264 [info]: SSIM Mean Y:0.9815771
x264 [info]: PSNR Mean Y:42.217 U:44.248 V:45.592 Avg:42.917 Global:42.732 kb/s:
12453.40
[20:23:58] decomb: deinterlaced 0 | blended 0 | unfiltered 4342 | total 4342
[20:23:58] libhb: work result = 0

Rip done!
HandBrake has exited.
graysky
 
Posts: 45
Joined: Wed Nov 26, 2008 10:55 pm

 

Re: Encode speed differs on Win64 vs. Linux64

Postby JohnAStebbins » Tue Nov 03, 2009 3:23 am

What version of the linux kernel are you running. A bug in the linux scheduler was found recently that has a huge impact on x264 multi-threading. See http://x264dev.multimedia.cx/?p=185
JohnAStebbins
Developer
 
Posts: 731
Joined: Sat Feb 09, 2008 8:21 pm

Re: Encode speed differs on Win64 vs. Linux64

Postby graysky » Tue Nov 03, 2009 9:13 pm

JohnAStebbins wrote:What version of the linux kernel are you running. A bug in the linux scheduler was found recently that has a huge impact on x264 multi-threading. See http://x264dev.multimedia.cx/?p=185


2.6.31.5 is my current kernel version. This is a great post, thanks! An 80 % speed boost would be welcomed! Can't wait to give 2.6.32 a try when it's released... not daring enough to use an unstable kernel :p
graysky
 
Posts: 45
Joined: Wed Nov 26, 2008 10:55 pm

Re: Encode speed differs on Win64 vs. Linux64

Postby JohnAStebbins » Tue Nov 03, 2009 10:13 pm

Note that the the 80% figure is likely for very specific circumstances.
You’ll get an enormous benefit with 4 or more cores

I'm guessing the initial test case that was submitted was set up in such a way to maximize the difference seen between the two schedulers that were being compared. So I wouldn't count on 80% improvement across the board.
JohnAStebbins
Developer
 
Posts: 731
Joined: Sat Feb 09, 2008 8:21 pm

Re: Encode speed differs on Win64 vs. Linux64

Postby graysky » Wed Nov 04, 2009 12:27 am

F*ck yeah! I broke down and compiled 2.6.32-rc6, booted into it and ran the same encode using 2907.

Linux (kernel 2.6.31.5): avg 15.99 fps
Linux (kernel 2.6.32-rc6): avg 24.45 fps
Linux (kernel 2.6.31-bfs): avg 24.49 fps

Win: avg 20.41 fps

Linux is : 53 % faster w/ the new kernel and 20 % faster than Windows. Can't wait for 2.6.32 to go final!

EDIT: also, CPU usage while encoding goes up to 99-100 % on all four cores now. Before it didn't at all (70-80 %). Reference: viewtopic.php?f=13&t=7893
Last edited by graysky on Wed Nov 04, 2009 9:34 pm, edited 2 times in total.
graysky
 
Posts: 45
Joined: Wed Nov 26, 2008 10:55 pm

Re: Encode speed differs on Win64 vs. Linux64

Postby s55 » Wed Nov 04, 2009 1:02 am

Your not comparing like for like. The 20% difference to windows is most likely down to the fact your comparing 32/64bit builds.
s55
Developer
 
Posts: 3706
Joined: Sun Dec 24, 2006 2:05 pm

Re: Encode speed differs on Win64 vs. Linux64

Postby graysky » Wed Nov 04, 2009 1:54 am

s55 wrote:Your not comparing like for like. The 20% difference to windows is most likely down to the fact your comparing 32/64bit builds.


Perhaps, but there isn't a win64 build available for download so if you're going to use handbrake under windows, that is your only option. In that light, I do think it's a fair comparison... I'm more interested in the Linux vs. Linux test. That's a pretty big jump :)
graysky
 
Posts: 45
Joined: Wed Nov 26, 2008 10:55 pm

Re: Encode speed differs on Win64 vs. Linux64

Postby Shibblet » Sat Nov 07, 2009 8:49 am

I'm a tad bit bummed. I am REALLY looking forward to the performance increase, but the distro I use, Kubuntu, isn't going to utilize that kernel until their next release. And Kubuntu 9.10 was JUST released.

Oh, well, maybe in the mean time I'll fly to Tibet and have some mountain top monk teach me patience. ;)
Shibblet
 
Posts: 8
Joined: Sun Sep 06, 2009 1:17 am

Re: Encode speed differs on Win64 vs. Linux64

Postby TedJ » Sat Nov 07, 2009 9:57 am

There's nothing to stop you from building your own kernel you know... In fact, it's considered a rite of passage in the linux community.
User avatar
TedJ
Moderator
 
Posts: 1817
Joined: Thu Feb 21, 2008 12:25 am
Location: Melbourne, Australia

Re: Encode speed differs on Win64 vs. Linux64

Postby graysky » Sat Nov 07, 2009 10:12 am

TedJ wrote:There's nothing to stop you from building your own kernel you know... In fact, it's considered a rite of passage in the linux community.


I compiled 2.6.32-rc6 for the tests, but I don't want to run the release candidate of a kernel on this box :p I've added some customized stuff for my CPU, messed with the exception options, removed stuff that I didn't need (drivers, etc.) but never noticed a difference over the vanilla kernel my distro offers. Plus compiling a custom nvidia driver and applying all the kernel patches that the distro does get to be a pain when there isn't a noticeable performance difference from doing so. It is cool to know how to do it though :)
graysky
 
Posts: 45
Joined: Wed Nov 26, 2008 10:55 pm

Re: Encode speed differs on Win64 vs. Linux64

Postby JohnAStebbins » Sat Nov 07, 2009 6:00 pm

You can also install one of the test kernels available here http://kernel.ubuntu.com/~kernel-ppa/mainline/
I would suggest keeping the official kernel installed and make sure grub is configured to allow you to select kernels at boot time.
JohnAStebbins
Developer
 
Posts: 731
Joined: Sat Feb 09, 2008 8:21 pm


Return to *nix

Who is online

Users browsing this forum: No registered users and 1 guest