svn-3420 has major problems using 4 cores

Support for HandBrake on Linux, Solaris, and other Unix-like platforms
Forum rules
An Activity Log is required for support requests. Please read How-to get an activity log? for details on how and why this should be provided.
Post Reply
graysky
Experienced
Posts: 79
Joined: Wed Nov 26, 2008 9:55 pm

svn-3420 has major problems using 4 cores

Post by graysky »

I did a test encode on an X3360 @ 3.4 GHz (quad core) and also on a T9400 @ 2.53 GHz (dual core) both machines running identical Linux x86_64 builds (kernel 2.6.34) and got some seriously strange results. The faster quad core machine was much slower than the dual core machine. I used the clip available from this website called "hd_other_sony_drag_race" and the CLI below.

I know the svn builds are unstable, but I wanted to make sure the devs were aware of this. Can someone else confirm this on their machine?

Quad core:
$ time HandBrakeCLI --verbose --input hd_other_sony_drag_race.m2ts --output test.m4v --preset="Normal"
Encoding: task 1 of 1, 99.59 % (20.27 fps, avg 20.32 fps, ETA 00h00m01s)[16:21:15] work: average

real 3m3.746s
user 11m45.267s
sys 0m0.520s

Dual core:
$ time HandBrakeCLI --verbose --input hd_other_sony_drag_race.m2ts --output test.m4v --preset="Normal"
Encoding: task 1 of 1, 99.59 % (35.57 fps, avg 34.05 fps, ETA 00h00m01s)[22:05:36] work: average encoding speed for job is 34.053848 fps

real 1m48.762s
user 3m19.697s
sys 0m0.603s

log from quad core

Code: Select all

[22:19:19] hb_init: checking cpu count
[22:19:19] hb_init: starting libhb thread
HandBrake svn3420 (2010070201) - Linux x86_64 - http://handbrake.fr
4 CPUs detected
Opening hd_other_sony_drag_race.m2ts...
[22:19:19] hb_scan: path=hd_other_sony_drag_race.m2ts, title_index=1
[22:19:19] 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
[22:19:19] dvd: not a dvd - trying as a stream/file instead
[22:19:19] file is MPEG Transport Stream with 192 byte packets offset 4 bytes
[22:19:19] hb_ts_stream_find_pids - found the following PIDS
[22:19:19]     Video PIDS : 
[22:19:19]       0x1011 type H.264 (0x1b)
[22:19:19]     Audio PIDS : 
[22:19:19]       0x1100 type AC-3 (0x81)
[22:19:19] transport stream pid 0x1100 (type 0x81) may be AC-3 audio (id 0x1)
[22:19:19] scan: decoding previews for title 1
[22:19:19] scan: audio 0x1: AC-3, rate=48000Hz, bitrate=256000 Unknown (AC3) (2.0 ch)
Scanning title 1...
Scanning title 1...
[22:19:20] scan: 10 previews, 1920x1080, 29.970 fps, autocrop = 0/0/0/0, aspect 16:9, PAR 1:1
[22:19:20] scan: title (0) job->width:1920, job->height:1072
[22:19:20] stream: 3 good frames, 0 errors (0%)
[22:19:20] libhb: scan thread found 1 valid title(s)
+ title 1:
  + stream: hd_other_sony_drag_race.m2ts
  + angle(s) 0
  + duration: 00:02:00
  + size: 1920x1080, pixel aspect: 1/1, display aspect: 1.78, 29.970 fps
  + autocrop: 0/0/0/0
  + chapters:
    + 1: cells 0->0, 0 blocks, duration 00:02:00
  + audio tracks:
    + 1, Unknown (AC3) (2.0 ch) (iso639-2: und), 48000Hz, 256000bps
  + subtitle tracks:
+ Using preset: Normal[22:19:20] 1 job(s) to process
[22:19:20] starting job
[22:19:20] work: sanitizing track 0 mixdown Dolby Pro Logic II to Stereo
[22:19:20] sync: expecting 3640 video frames
[22:19:20] work: only 1 chapter, disabling chapter markers
[22:19:20] job configuration:
[22:19:20]  * source
[22:19:20]    + hd_other_sony_drag_race.m2ts
[22:19:20]    + title 1, chapter(s) 1 to 1
[22:19:20]  * destination
[22:19:20]    + test.m4v
[22:19:20]    + container: MPEG-4 (.mp4 and .m4v)
[22:19:20]  * video track
[22:19:20]    + decoder: h264
[22:19:20]      + bitrate 200 kbps
[22:19:20]    + frame rate: same as source (around 29.970 fps)
[22:19:20]    + strict anamorphic
[22:19:20]      + storage dimensions: 1920 * 1080 -> 1920 * 1080, crop 0/0/0/0, mod 0
[22:19:20]      + pixel aspect ratio: 1 / 1
[22:19:20]      + display dimensions: 1920 * 1080
[22:19:20]    + encoder: x264
[22:19:20]      + options: ref=2:bframes=2:subme=6:mixed-refs=0:weightb=0:8x8dct=0:trellis=0
[22:19:20]      + quality: 20.00 (RF)
[22:19:20]  * audio track 0
[22:19:20]    + decoder: Unknown (AC3) (2.0 ch) (track 1, id 1)
[22:19:20]      + bitrate: 256 kbps, samplerate: 48000 Hz
[22:19:20]    + mixdown: Stereo
[22:19:20]    + encoder: faac
[22:19:20]      + bitrate: 160 kbps, samplerate: 48000 Hz
[22:19:20] reader: first SCR 53955000 id 0 DTS 53996997
[22:19:20] encx264: min-keyint: 30, keyint: 300
[22:19:20] encx264: encoding with stored aspect 1/1
[22:19:20] encx264: Encoding at constant RF 20.000000
x264 [info]: using SAR=1/1
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE4.1 Cache64
x264 [info]: profile Main, level 4.0
No accelerated IMDCT transform found
Encoding: task 1 of 1, 98.19 % (16.24 fps, avg 19.78 fps, ETA 00h00m03s)[22:22:21] hb_ts_stream_decode - eof
Encoding: task 1 of 1, 98.41 % (16.24 fps, avg 19.78 fps, ETA 00h00m03s)[22:22:21] stream: 3626 good frames, 0 errors (0%)
[22:22:21] reader: done. 1 scr changes
Encoding: task 1 of 1, 99.59 % (18.59 fps, avg 19.76 fps, ETA 00h00m00s)[22:22:26] work: average encoding speed for job is 19.762199 fps
[22:22:26] sync: got 3626 frames, 3640 expected
[22:22:26] h264-decoder done: 3626 frames, 0 decoder errors, 0 drops
[22:22:26] render: lost time: 0 (0 frames)
[22:22:26] render: gained time: 0 (0 frames) (0 not accounted for)
x264 [info]: frame I:36    Avg QP:16.89  size:202269  PSNR Mean Y:49.21 U:54.68 V:56.19 Avg:50.43 Global:48.84
x264 [info]: frame P:1888  Avg QP:21.11  size: 56090  PSNR Mean Y:43.84 U:49.56 V:50.67 Avg:45.10 Global:44.68
x264 [info]: frame B:1702  Avg QP:23.55  size: 20664  PSNR Mean Y:42.75 U:49.31 V:50.43 Avg:44.08 Global:43.49
x264 [info]: consecutive B-frames: 20.6% 33.2% 46.2%
x264 [info]: mb I  I16..4: 24.1%  0.0% 75.9%
x264 [info]: mb P  I16..4:  5.3%  0.0%  5.0%  P16..4: 55.8% 15.8%  7.1%  0.0%  0.0%    skip:11.0%
x264 [info]: mb B  I16..4:  5.8%  0.0%  1.0%  B16..8: 34.9% 10.3%  1.1%  direct:10.6%  skip:36.3%  L0:40.4% L1:48.2% BI:11.4%
x264 [info]: coded y,uvDC,uvAC intra: 41.4% 63.6% 19.1% inter: 18.4% 28.8% 0.8%
x264 [info]: i16 v,h,dc,p: 27% 39% 16% 18%
x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 19% 35% 15%  4%  6%  5%  6%  4%  6%
x264 [info]: i8c dc,h,v,p: 50% 29% 16%  5%
x264 [info]: Weighted P-Frames: Y:1.6%
x264 [info]: ref P L0: 70.1% 10.5% 19.3%  0.0%
x264 [info]: SSIM Mean Y:0.9857254 (18.454db)
x264 [info]: PSNR Mean Y:43.382 U:49.495 V:50.610 Avg:44.674 Global:44.107 kb/s:9809.32
[22:22:26] mux: track 0, 3626 frames, 148349118 bytes, 9806.51 kbps, fifo 8
[22:22:26] mux: track 1, 5669 frames, 2416408 bytes, 159.73 kbps, fifo 256
[22:22:26] libhb: work result = 0

Rip done!
HandBrake has exited.

real	3m7.146s
user	11m40.064s
sys	0m0.877s
log from dual core

Code: Select all

[22:02:31] hb_init: checking cpu count
[22:02:31] hb_init: starting libhb thread
HandBrake svn3420 (2010070201) - Linux x86_64 - http://handbrake.fr
2 CPUs detected
Opening hd_other_sony_drag_race.m2ts...
[22:02:31] hb_scan: path=hd_other_sony_drag_race.m2ts, title_index=1
[22:02:31] 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
[22:02:31] dvd: not a dvd - trying as a stream/file instead
[22:02:31] file is MPEG Transport Stream with 192 byte packets offset 4 bytes
[22:02:31] hb_ts_stream_find_pids - found the following PIDS
[22:02:31]     Video PIDS : 
[22:02:31]       0x1011 type H.264 (0x1b)
[22:02:31]     Audio PIDS : 
[22:02:31]       0x1100 type AC-3 (0x81)
[22:02:31] transport stream pid 0x1100 (type 0x81) may be AC-3 audio (id 0x1)
[22:02:31] scan: decoding previews for title 1
[22:02:31] scan: audio 0x1: AC-3, rate=48000Hz, bitrate=256000 Unknown (AC3) (2.0 ch)
Scanning title 1...
Scanning title 1...
[22:02:32] scan: 10 previews, 1920x1080, 29.970 fps, autocrop = 0/0/0/0, aspect 16:9, PAR 1:1
[22:02:32] scan: title (0) job->width:1920, job->height:1072
[22:02:32] stream: 3 good frames, 0 errors (0%)
[22:02:32] libhb: scan thread found 1 valid title(s)
+ title 1:
  + stream: hd_other_sony_drag_race.m2ts
  + angle(s) 0
  + duration: 00:02:00
  + size: 1920x1080, pixel aspect: 1/1, display aspect: 1.78, 29.970 fps
  + autocrop: 0/0/0/0
  + chapters:
    + 1: cells 0->0, 0 blocks, duration 00:02:00
  + audio tracks:
    + 1, Unknown (AC3) (2.0 ch) (iso639-2: und), 48000Hz, 256000bps
  + subtitle tracks:
+ Using preset: Normal[22:02:32] 1 job(s) to process
[22:02:32] starting job
[22:02:32] work: sanitizing track 0 mixdown Dolby Pro Logic II to Stereo
[22:02:32] sync: expecting 3640 video frames
[22:02:32] work: only 1 chapter, disabling chapter markers
[22:02:32] job configuration:
[22:02:32]  * source
[22:02:32]    + hd_other_sony_drag_race.m2ts
[22:02:32]    + title 1, chapter(s) 1 to 1
[22:02:32]  * destination
[22:02:32]    + test.m4v
[22:02:32]    + container: MPEG-4 (.mp4 and .m4v)
[22:02:32]  * video track
[22:02:32]    + decoder: h264
[22:02:32]      + bitrate 200 kbps
[22:02:32]    + frame rate: same as source (around 29.970 fps)
[22:02:32]    + strict anamorphic
[22:02:32]      + storage dimensions: 1920 * 1080 -> 1920 * 1080, crop 0/0/0/0, mod 0
[22:02:32]      + pixel aspect ratio: 1 / 1
[22:02:32]      + display dimensions: 1920 * 1080
[22:02:32]    + encoder: x264
[22:02:32]      + options: ref=2:bframes=2:subme=6:mixed-refs=0:weightb=0:8x8dct=0:trellis=0
[22:02:32]      + quality: 20.00 (RF)
[22:02:32]  * audio track 0
[22:02:32]    + decoder: Unknown (AC3) (2.0 ch) (track 1, id 1)
[22:02:32]      + bitrate: 256 kbps, samplerate: 48000 Hz
[22:02:32]    + mixdown: Stereo
[22:02:32]    + encoder: faac
[22:02:32]      + bitrate: 160 kbps, samplerate: 48000 Hz
[22:02:32] reader: first SCR 53955000 id 0 DTS 53996997
[22:02:32] encx264: min-keyint: 30, keyint: 300
[22:02:32] encx264: encoding with stored aspect 1/1
[22:02:32] encx264: Encoding at constant RF 20.000000
x264 [info]: using SAR=1/1
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE4.1 Cache64
x264 [info]: profile Main, level 4.0
No accelerated IMDCT transform found
Encoding: task 1 of 1, 17.91 % (7.81 fps, avg 10.24 fps, ETA 00h04m51s)^CSignal 2 received, terminating - do it again in case it gets stuck
Encoding: task 1 of 1, 17.94 % (7.81 fps, avg 10.24 fps, ETA 00h04m51s)[22:03:36] stream: 706 good frames, 0 errors (0%)
[22:03:36] reader: done. 1 scr changes
[22:03:36] work: average encoding speed for job is 10.239980 fps
[22:03:36] sync: got 654 frames, 3640 expected
[22:03:36] h264-decoder done: 672 frames, 0 decoder errors, 0 drops
[22:03:36] render: lost time: 0 (0 frames)
[22:03:36] render: gained time: 0 (0 frames) (0 not accounted for)
^[[Ax264 [info]: frame I:8     Avg QP:15.90  size:210018  PSNR Mean Y:54.57 U:58.65 V:60.22 Avg:55.60 Global:49.75
x264 [info]: frame P:209   Avg QP:20.10  size: 50504  PSNR Mean Y:45.57 U:50.83 V:52.20 Avg:46.78 Global:45.27
x264 [info]: frame B:356   Avg QP:22.65  size: 13425  PSNR Mean Y:44.69 U:50.53 V:51.92 Avg:45.96 Global:44.27
x264 [info]: consecutive B-frames:  3.7%  7.1% 89.2%
x264 [info]: mb I  I16..4: 35.7%  0.0% 64.3%
x264 [info]: mb P  I16..4:  4.7%  0.0%  2.7%  P16..4: 48.1% 12.7%  7.6%  0.0%  0.0%    skip:24.2%
x264 [info]: mb B  I16..4:  6.2%  0.0%  0.5%  B16..8: 23.3%  6.1%  0.6%  direct: 9.1%  skip:54.2%  L0:40.2% L1:47.9% BI:11.9%
x264 [info]: coded y,uvDC,uvAC intra: 30.8% 55.5% 20.6% inter: 11.9% 21.6% 0.9%
x264 [info]: i16 v,h,dc,p: 45% 25% 18% 12%
x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 21% 29% 16%  4%  6%  6%  7%  5%  6%
x264 [info]: i8c dc,h,v,p: 56% 24% 17%  3%
x264 [info]: Weighted P-Frames: Y:5.7%
x264 [info]: ref P L0: 69.7%  9.1% 21.1%  0.1%
x264 [info]: SSIM Mean Y:0.9887003 (19.469db)
x264 [info]: PSNR Mean Y:45.151 U:50.756 V:52.139 Avg:46.390 Global:44.656 kb/s:6601.03
[22:03:37] mux: track 0, 571 frames, 16939803 bytes, 7100.51 kbps, fifo 8
[22:03:37] mux: track 1, 894 frames, 381329 bytes, 159.84 kbps, fifo 256
HandBrake has exited.^C
 --output test.m4v --preset="Normal"verbose --input hd_other_sony_drag_race.m2ts 
.m2ts --output test.m4v --preset="Normal"[erbose --input hd_other_sony_drag_race 
[22:03:48] hb_init: checking cpu count
[22:03:48] hb_init: starting libhb thread
HandBrake svn3420 (2010070201) - Linux x86_64 - http://handbrake.fr
2 CPUs detected
Opening hd_other_sony_drag_race.m2ts...
[22:03:48] hb_scan: path=hd_other_sony_drag_race.m2ts, title_index=1
[22:03:48] 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
[22:03:48] dvd: not a dvd - trying as a stream/file instead
[22:03:48] file is MPEG Transport Stream with 192 byte packets offset 4 bytes
[22:03:48] hb_ts_stream_find_pids - found the following PIDS
[22:03:48]     Video PIDS : 
[22:03:48]       0x1011 type H.264 (0x1b)
[22:03:48]     Audio PIDS : 
[22:03:48]       0x1100 type AC-3 (0x81)
[22:03:48] transport stream pid 0x1100 (type 0x81) may be AC-3 audio (id 0x1)
[22:03:48] scan: decoding previews for title 1
[22:03:48] scan: audio 0x1: AC-3, rate=48000Hz, bitrate=256000 Unknown (AC3) (2.0 ch)
Scanning title 1...
Scanning title 1...
Scanning title 1...
[22:03:49] scan: 10 previews, 1920x1080, 29.970 fps, autocrop = 0/0/0/0, aspect 16:9, PAR 1:1
[22:03:49] scan: title (0) job->width:1920, job->height:1072
[22:03:49] stream: 3 good frames, 0 errors (0%)
[22:03:49] libhb: scan thread found 1 valid title(s)
+ title 1:
  + stream: hd_other_sony_drag_race.m2ts
  + angle(s) 0
  + duration: 00:02:00
  + size: 1920x1080, pixel aspect: 1/1, display aspect: 1.78, 29.970 fps
  + autocrop: 0/0/0/0
  + chapters:
    + 1: cells 0->0, 0 blocks, duration 00:02:00
  + audio tracks:
    + 1, Unknown (AC3) (2.0 ch) (iso639-2: und), 48000Hz, 256000bps
  + subtitle tracks:
+ Using preset: Normal[[22:03:49] 1 job(s) to process
[22:03:49] starting job
[22:03:49] work: sanitizing track 0 mixdown Dolby Pro Logic II to Stereo
[22:03:49] sync: expecting 3640 video frames
[22:03:49] job configuration:
[22:03:49]  * source
[22:03:49]    + hd_other_sony_drag_race.m2ts
[22:03:49]    + title 1, chapter(s) 1 to 1
[22:03:49]  * destination
[22:03:49]    + test.m4v
[22:03:49]    + container: MPEG-4 (.mp4 and .m4v)
[22:03:49]  * video track
[22:03:49]    + decoder: h264
[22:03:49]      + bitrate 200 kbps
[22:03:49]    + frame rate: same as source (around 29.970 fps)
[22:03:49]    + dimensions: 1920 * 1080 -> 1920 * 1072, crop 0/0/0/0
[22:03:49]    + encoder: FFmpeg
[22:03:49]      + bitrate: 1000 kbps, pass: 0
[22:03:49]  * audio track 0
[22:03:49]    + decoder: Unknown (AC3) (2.0 ch) (track 1, id 1)
[22:03:49]      + bitrate: 256 kbps, samplerate: 48000 Hz
[22:03:49]    + mixdown: Stereo
[22:03:49]    + encoder: faac
[22:03:49]      + bitrate: 160 kbps, samplerate: 48000 Hz
[22:03:49] reader: first SCR 53955000 id 0 DTS 53996997
No accelerated IMDCT transform found
Encoding: task 1 of 1, 98.41 % (32.76 fps, avg 33.96 fps, ETA 00h00m02s)[22:05:34] hb_ts_stream_decode - eof
[22:05:34] stream: 3626 good frames, 0 errors (0%)
[22:05:34] reader: done. 1 scr changes
Encoding: task 1 of 1, 99.59 % (35.57 fps, avg 34.05 fps, ETA 00h00m01s)[22:05:36] work: average encoding speed for job is 34.053848 fps
Encoding: task 1 of 1, 99.59 % (35.57 fps, avg 34.05 fps, ETA 00h00m01s)[22:05:36] sync: got 3626 frames, 3640 expected
[22:05:36] h264-decoder done: 3626 frames, 0 decoder errors, 0 drops
[22:05:36] render: lost time: 0 (0 frames)
[22:05:36] render: gained time: 0 (0 frames) (0 not accounted for)
[22:05:36] mux: track 0, 3626 frames, 31936276 bytes, 2111.12 kbps, fifo 8
[22:05:36] mux: track 1, 5669 frames, 2416408 bytes, 159.73 kbps, fifo 128
[22:05:36] libhb: work result = 0

Rip done!
HandBrake has exited.

real	1m48.762s
user	3m19.697s
sys	0m0.603s
Last edited by graysky on Sun Jul 04, 2010 2:34 am, edited 1 time in total.
mduell
Veteran User
Posts: 8207
Joined: Sat Apr 21, 2007 8:54 pm

Re: svn-3420 has major problems using 4 cores

Post by mduell »

Your second logged is messed up, but it looks like you used different encoders (ffmpeg vs x264) so the results are completely different.

Mark is invalid.
Last edited by mduell on Sun Jul 04, 2010 2:31 am, edited 1 time in total.
Deleted User 11865

Re: svn-3420 has major problems using 4 cores

Post by Deleted User 11865 »

Looks like you reported this bug in a hurry - check better next time.
graysky wrote:

Code: Select all

[22:19:20]  * video track
[22:19:20]    + decoder: h264
[22:19:20]      + bitrate 200 kbps
[22:19:20]    + frame rate: same as source (around 29.970 fps)
[22:19:20]    + strict anamorphic
[22:19:20]      + storage dimensions: 1920 * 1080 -> 1920 * 1080, crop 0/0/0/0, mod 0
[22:19:20]      + pixel aspect ratio: 1 / 1
[22:19:20]      + display dimensions: 1920 * 1080
[22:19:20]    + encoder: x264
[22:19:20]      + options: ref=2:bframes=2:subme=6:mixed-refs=0:weightb=0:8x8dct=0:trellis=0
[22:19:20]      + quality: 20.00 (RF)
[22:19:20]  * audio track 0
[22:19:20]    + decoder: Unknown (AC3) (2.0 ch) (track 1, id 1)
[22:19:20]      + bitrate: 256 kbps, samplerate: 48000 Hz
[22:19:20]    + mixdown: Stereo
[22:19:20]    + encoder: faac
[22:19:20]      + bitrate: 160 kbps, samplerate: 48000 Hz
[22:19:20] reader: first SCR 53955000 id 0 DTS 53996997
[22:19:20] encx264: min-keyint: 30, keyint: 300
[22:19:20] encx264: encoding with stored aspect 1/1
[22:19:20] encx264: Encoding at constant RF 20.000000
x264 [info]: using SAR=1/1
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE4.1 Cache64
x264 [info]: profile Main, level 4.0
No accelerated IMDCT transform found
[22:22:21] hb_ts_stream_decode - eof
[22:22:21] stream: 3626 good frames, 0 errors (0%)
[22:22:21] reader: done. 1 scr changes
[22:22:26] work: average encoding speed for job is 19.762199 fps
graysky wrote:

Code: Select all

[22:03:49]  * video track
[22:03:49]    + decoder: h264
[22:03:49]      + bitrate 200 kbps
[22:03:49]    + frame rate: same as source (around 29.970 fps)
[22:03:49]    + dimensions: 1920 * 1080 -> 1920 * 1072, crop 0/0/0/0
[22:03:49]    + encoder: FFmpeg
[22:03:49]      + bitrate: 1000 kbps, pass: 0
[22:03:49]  * audio track 0
[22:03:49]    + decoder: Unknown (AC3) (2.0 ch) (track 1, id 1)
[22:03:49]      + bitrate: 256 kbps, samplerate: 48000 Hz
[22:03:49]    + mixdown: Stereo
[22:03:49]    + encoder: faac
[22:03:49]      + bitrate: 160 kbps, samplerate: 48000 Hz
[22:03:49] reader: first SCR 53955000 id 0 DTS 53996997
No accelerated IMDCT transform found
[22:05:34] hb_ts_stream_decode - eof
[22:05:34] stream: 3626 good frames, 0 errors (0%)
[22:05:34] reader: done. 1 scr changes
[22:05:36] work: average encoding speed for job is 34.053848 fps
graysky
Experienced
Posts: 79
Joined: Wed Nov 26, 2008 9:55 pm

Re: svn-3420 has major problems using 4 cores

Post by graysky »

mduell wrote:Your second logged is messed up, but it looks like you used different encoders (ffmpeg vs x264) so the results are completely different.

Mark is invalid.
Confused... it's the same handbrake package on each machine. WTF?
Deleted User 11865

Re: svn-3420 has major problems using 4 cores

Post by Deleted User 11865 »

graysky wrote:
mduell wrote:Your second logged is messed up, but it looks like you used different encoders (ffmpeg vs x264) so the results are completely different.

Mark is invalid.
Confused... it's the same handbrake package on each machine. WTF?
This suggests you probably made typos:
graysky wrote:

Code: Select all

HandBrake has exited.^C
--output test.m4v --preset="Normal"verbose --input hd_other_sony_drag_race.m2ts 
[squishy@larch shm]$ 
[squishy@larch shm]$ 
.m2ts --output test.m4v --preset="Normal"[erbose --input hd_other_sony_drag_race 
graysky
Experienced
Posts: 79
Joined: Wed Nov 26, 2008 9:55 pm

Re: svn-3420 has major problems using 4 cores

Post by graysky »

:oops: PEBKAC! Thanks for pointing that out to me. The bracket ([) messed it all up.

This is more like it: 19.8 vs. 7.59!

Quad:

Code: Select all

$ HandBrakeCLI --input hd_other_sony_drag_race.m2ts --output test.m4v --preset="Normal"
[22:49:15] hb_init: checking cpu count
[22:49:15] hb_init: starting libhb thread
HandBrake svn3420 (2010070201) - Linux x86_64 - http://handbrake.fr
4 CPUs detected
Opening hd_other_sony_drag_race.m2ts...
[22:49:15] hb_scan: path=hd_other_sony_drag_race.m2ts, title_index=1
[22:49:15] 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
[22:49:15] dvd: not a dvd - trying as a stream/file instead
[22:49:15] file is MPEG Transport Stream with 192 byte packets offset 4 bytes
[22:49:15] hb_ts_stream_find_pids - found the following PIDS
[22:49:15]     Video PIDS : 
[22:49:15]       0x1011 type H.264 (0x1b)
[22:49:15]     Audio PIDS : 
[22:49:15]       0x1100 type AC-3 (0x81)
[22:49:15] transport stream pid 0x1100 (type 0x81) may be AC-3 audio (id 0x1)
[22:49:15] scan: decoding previews for title 1
[22:49:15] scan: audio 0x1: AC-3, rate=48000Hz, bitrate=256000 Unknown (AC3) (2.0 ch)
Scanning title 1...
Scanning title 1...
[22:49:16] scan: 10 previews, 1920x1080, 29.970 fps, autocrop = 0/0/0/0, aspect 16:9, PAR 1:1
[22:49:16] scan: title (0) job->width:1920, job->height:1072
[22:49:16] stream: 3 good frames, 0 errors (0%)
[22:49:16] libhb: scan thread found 1 valid title(s)
+ title 1:
  + stream: hd_other_sony_drag_race.m2ts
  + angle(s) 0
  + duration: 00:02:00
  + size: 1920x1080, pixel aspect: 1/1, display aspect: 1.78, 29.970 fps
  + autocrop: 0/0/0/0
  + chapters:
    + 1: cells 0->0, 0 blocks, duration 00:02:00
  + audio tracks:
    + 1, Unknown (AC3) (2.0 ch) (iso639-2: und), 48000Hz, 256000bps
  + subtitle tracks:
+ Using preset: Normal[22:49:16] 1 job(s) to process
[22:49:16] starting job
[22:49:16] work: sanitizing track 0 mixdown Dolby Pro Logic II to Stereo
[22:49:16] sync: expecting 3640 video frames
[22:49:16] work: only 1 chapter, disabling chapter markers
[22:49:16] job configuration:
[22:49:16]  * source
[22:49:16]    + hd_other_sony_drag_race.m2ts
[22:49:16]    + title 1, chapter(s) 1 to 1
[22:49:16]  * destination
[22:49:16]    + test.m4v
[22:49:16]    + container: MPEG-4 (.mp4 and .m4v)
[22:49:16]  * video track
[22:49:16]    + decoder: h264
[22:49:16]      + bitrate 200 kbps
[22:49:16]    + frame rate: same as source (around 29.970 fps)
[22:49:16]    + strict anamorphic
[22:49:16]      + storage dimensions: 1920 * 1080 -> 1920 * 1080, crop 0/0/0/0, mod 0
[22:49:16]      + pixel aspect ratio: 1 / 1
[22:49:16]      + display dimensions: 1920 * 1080
[22:49:16]    + encoder: x264
[22:49:16]      + options: ref=2:bframes=2:subme=6:mixed-refs=0:weightb=0:8x8dct=0:trellis=0
[22:49:16]      + quality: 20.00 (RF)
[22:49:16]  * audio track 0
[22:49:16]    + decoder: Unknown (AC3) (2.0 ch) (track 1, id 1)
[22:49:16]      + bitrate: 256 kbps, samplerate: 48000 Hz
[22:49:16]    + mixdown: Stereo
[22:49:16]    + encoder: faac
[22:49:16]      + bitrate: 160 kbps, samplerate: 48000 Hz
[22:49:16] reader: first SCR 53955000 id 0 DTS 53996997
[22:49:16] encx264: min-keyint: 30, keyint: 300
[22:49:16] encx264: encoding with stored aspect 1/1
[22:49:16] encx264: Encoding at constant RF 20.000000
x264 [info]: using SAR=1/1
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE4.1 Cache64
x264 [info]: profile Main, level 4.0
No accelerated IMDCT transform found
Encoding: task 1 of 1, 98.19 % (19.02 fps, avg 19.84 fps, ETA 00h00m03s)[22:52:17] hb_ts_stream_decode - eof
Encoding: task 1 of 1, 98.24 % (19.02 fps, avg 19.84 fps, ETA 00h00m03s)[22:52:17] stream: 3626 good frames, 0 errors (0%)
[22:52:17] reader: done. 1 scr changes
Encoding: task 1 of 1, 99.59 % (19.36 fps, avg 19.84 fps, ETA 00h00m01s)[22:52:22] work: average encoding speed for job is 19.842667 fps
[22:52:22] sync: got 3626 frames, 3640 expected
[22:52:22] h264-decoder done: 3626 frames, 0 decoder errors, 0 drops
[22:52:22] render: lost time: 0 (0 frames)
[22:52:22] render: gained time: 0 (0 frames) (0 not accounted for)
x264 [info]: frame I:36    Avg QP:16.89  size:202269  PSNR Mean Y:49.21 U:54.68 V:56.19 Avg:50.43 Global:48.84
x264 [info]: frame P:1888  Avg QP:21.11  size: 56090  PSNR Mean Y:43.84 U:49.56 V:50.67 Avg:45.10 Global:44.68
x264 [info]: frame B:1702  Avg QP:23.55  size: 20664  PSNR Mean Y:42.75 U:49.31 V:50.43 Avg:44.08 Global:43.49
x264 [info]: consecutive B-frames: 20.6% 33.2% 46.2%
x264 [info]: mb I  I16..4: 24.1%  0.0% 75.9%
x264 [info]: mb P  I16..4:  5.3%  0.0%  5.0%  P16..4: 55.8% 15.8%  7.1%  0.0%  0.0%    skip:11.0%
x264 [info]: mb B  I16..4:  5.8%  0.0%  1.0%  B16..8: 34.9% 10.3%  1.1%  direct:10.6%  skip:36.3%  L0:40.4% L1:48.2% BI:11.4%
x264 [info]: coded y,uvDC,uvAC intra: 41.4% 63.6% 19.1% inter: 18.4% 28.8% 0.8%
x264 [info]: i16 v,h,dc,p: 27% 39% 16% 18%
x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 19% 35% 15%  4%  6%  5%  6%  4%  6%
x264 [info]: i8c dc,h,v,p: 50% 29% 16%  5%
x264 [info]: Weighted P-Frames: Y:1.6%
x264 [info]: ref P L0: 70.1% 10.5% 19.3%  0.0%
x264 [info]: SSIM Mean Y:0.9857254 (18.454db)
x264 [info]: PSNR Mean Y:43.382 U:49.495 V:50.610 Avg:44.674 Global:44.107 kb/s:9809.32
Encoding: task 1 of 1, 99.59 % (19.36 fps, avg 19.84 fps, ETA 00h00m01s)[22:52:22] mux: track 0, 3626 frames, 148349118 bytes, 9806.51 kbps, fifo 8
[22:52:22] mux: track 1, 5669 frames, 2416408 bytes, 159.73 kbps, fifo 256
[22:52:22] libhb: work result = 0

Rip done!
HandBrake has exited.
Dual:

Code: Select all

$ HandBrakeCLI --input hd_other_sony_drag_race.m2ts --output test.m4v --preset="Normal"
[22:38:30] hb_init: checking cpu count
[22:38:30] hb_init: starting libhb thread
HandBrake svn3420 (2010070201) - Linux x86_64 - http://handbrake.fr
2 CPUs detected
Opening hd_other_sony_drag_race.m2ts...
[22:38:30] hb_scan: path=hd_other_sony_drag_race.m2ts, title_index=1
[22:38:30] 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
[22:38:30] dvd: not a dvd - trying as a stream/file instead
[22:38:30] file is MPEG Transport Stream with 192 byte packets offset 4 bytes
[22:38:30] hb_ts_stream_find_pids - found the following PIDS
[22:38:30]     Video PIDS : 
[22:38:30]       0x1011 type H.264 (0x1b)
[22:38:30]     Audio PIDS : 
[22:38:30]       0x1100 type AC-3 (0x81)
[22:38:30] transport stream pid 0x1100 (type 0x81) may be AC-3 audio (id 0x1)
[22:38:30] scan: decoding previews for title 1
[22:38:30] scan: audio 0x1: AC-3, rate=48000Hz, bitrate=256000 Unknown (AC3) (2.0 ch)
Scanning title 1...
Scanning title 1...
[22:38:31] scan: 10 previews, 1920x1080, 29.970 fps, autocrop = 0/0/0/0, aspect 16:9, PAR 1:1
[22:38:31] scan: title (0) job->width:1920, job->height:1072
[22:38:31] stream: 3 good frames, 0 errors (0%)
[22:38:31] libhb: scan thread found 1 valid title(s)
+ title 1:
  + stream: hd_other_sony_drag_race.m2ts
  + angle(s) 0
  + duration: 00:02:00
  + size: 1920x1080, pixel aspect: 1/1, display aspect: 1.78, 29.970 fps
  + autocrop: 0/0/0/0
  + chapters:
    + 1: cells 0->0, 0 blocks, duration 00:02:00
  + audio tracks:
    + 1, Unknown (AC3) (2.0 ch) (iso639-2: und), 48000Hz, 256000bps
  + subtitle tracks:
+ Using preset: Normal[22:38:31] 1 job(s) to process
[22:38:31] starting job
[22:38:31] work: sanitizing track 0 mixdown Dolby Pro Logic II to Stereo
[22:38:31] sync: expecting 3640 video frames
[22:38:31] work: only 1 chapter, disabling chapter markers
[22:38:31] job configuration:
[22:38:31]  * source
[22:38:31]    + hd_other_sony_drag_race.m2ts
[22:38:31]    + title 1, chapter(s) 1 to 1
[22:38:31]  * destination
[22:38:31]    + test.m4v
[22:38:31]    + container: MPEG-4 (.mp4 and .m4v)
[22:38:31]  * video track
[22:38:31]    + decoder: h264
[22:38:31]      + bitrate 200 kbps
[22:38:31]    + frame rate: same as source (around 29.970 fps)
[22:38:31]    + strict anamorphic
[22:38:31]      + storage dimensions: 1920 * 1080 -> 1920 * 1080, crop 0/0/0/0, mod 0
[22:38:31]      + pixel aspect ratio: 1 / 1
[22:38:31]      + display dimensions: 1920 * 1080
[22:38:31]    + encoder: x264
[22:38:31]      + options: ref=2:bframes=2:subme=6:mixed-refs=0:weightb=0:8x8dct=0:trellis=0
[22:38:31]      + quality: 20.00 (RF)
[22:38:31]  * audio track 0
[22:38:31]    + decoder: Unknown (AC3) (2.0 ch) (track 1, id 1)
[22:38:31]      + bitrate: 256 kbps, samplerate: 48000 Hz
[22:38:31]    + mixdown: Stereo
[22:38:31]    + encoder: faac
[22:38:31]      + bitrate: 160 kbps, samplerate: 48000 Hz
[22:38:31] reader: first SCR 53955000 id 0 DTS 53996997
[22:38:31] encx264: min-keyint: 30, keyint: 300
[22:38:31] encx264: encoding with stored aspect 1/1
[22:38:31] encx264: Encoding at constant RF 20.000000
x264 [info]: using SAR=1/1
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE4.1 Cache64
x264 [info]: profile Main, level 4.0
No accelerated IMDCT transform found
Encoding: task 1 of 1, 98.13 % (7.05 fps, avg 7.59 fps, ETA 00h00m08s)[22:46:22] hb_ts_stream_decode - eof
[22:46:22] stream: 3626 good frames, 0 errors (0%)
[22:46:22] reader: done. 1 scr changes
Encoding: task 1 of 1, 99.59 % (7.64 fps, avg 7.59 fps, ETA 00h00m02s)[22:46:36] work: average encoding speed for job is 7.593127 fps
Encoding: task 1 of 1, 99.59 % (7.64 fps, avg 7.59 fps, ETA 00h00m02s)[22:46:36] sync: got 3626 frames, 3640 expected
[22:46:36] h264-decoder done: 3626 frames, 0 decoder errors, 0 drops
[22:46:36] render: lost time: 0 (0 frames)
[22:46:36] render: gained time: 0 (0 frames) (0 not accounted for)
x264 [info]: frame I:36    Avg QP:16.90  size:202267  PSNR Mean Y:49.21 U:54.68 V:56.19 Avg:50.43 Global:48.84
x264 [info]: frame P:1888  Avg QP:21.12  size: 56089  PSNR Mean Y:43.84 U:49.56 V:50.67 Avg:45.10 Global:44.68
x264 [info]: frame B:1702  Avg QP:23.55  size: 20662  PSNR Mean Y:42.75 U:49.31 V:50.43 Avg:44.08 Global:43.49
x264 [info]: consecutive B-frames: 20.6% 33.2% 46.2%
x264 [info]: mb I  I16..4: 24.1%  0.0% 75.9%
x264 [info]: mb P  I16..4:  5.3%  0.0%  5.0%  P16..4: 55.8% 15.8%  7.1%  0.0%  0.0%    skip:11.0%
x264 [info]: mb B  I16..4:  5.8%  0.0%  1.0%  B16..8: 34.9% 10.3%  1.1%  direct:10.6%  skip:36.3%  L0:40.4% L1:48.2% BI:11.4%
x264 [info]: coded y,uvDC,uvAC intra: 41.4% 63.6% 19.1% inter: 18.4% 28.8% 0.8%
x264 [info]: i16 v,h,dc,p: 27% 39% 16% 18%
x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 19% 35% 15%  4%  6%  5%  6%  4%  6%
x264 [info]: i8c dc,h,v,p: 50% 29% 16%  5%
x264 [info]: Weighted P-Frames: Y:1.6%
x264 [info]: ref P L0: 70.1% 10.5% 19.3%  0.0%
x264 [info]: SSIM Mean Y:0.9857242 (18.454db)
x264 [info]: PSNR Mean Y:43.382 U:49.496 V:50.609 Avg:44.674 Global:44.107 kb/s:9808.89
[22:46:37] mux: track 0, 3626 frames, 148342599 bytes, 9806.08 kbps, fifo 8
[22:46:37] mux: track 1, 5669 frames, 2416408 bytes, 159.73 kbps, fifo 256
Muxing: this may take awhile...[22:46:37] libhb: work result = 0

Rip done!
HandBrake has exited.
mduell
Veteran User
Posts: 8207
Joined: Sat Apr 21, 2007 8:54 pm

Re: svn-3420 has major problems using 4 cores

Post by mduell »

I'm shocked. 8) :twisted: :roll: :wink:
Post Reply