[svn5819] opencl scaling bug

Archive of historical bug reports.
Please use the GitHub link above to report issues.
Forum rules
*******************************
Please be aware we are now using GitHub for issue tracking and feature requests.
- This section of the forum is now closed to new topics.

*******************************
Post Reply
Ayoross
Novice
Posts: 51
Joined: Mon Jun 11, 2012 9:07 pm

[svn5819] opencl scaling bug

Post by Ayoross »

Hello,

OpenCL scaling is not working, encode stops immediately.
There's a workaround : disable openCL =)

See log below:

Code: Select all

HandBrake svn5819 (Nightly Build) - 64bit Version
OS: Microsoft Windows NT 6.1.7601 Service Pack 1
CPU: Intel(R) Core(TM) i7-3930K CPU @ 3.20GHz
Ram: 16327 MB, 
GPU Information:
  NVIDIA GeForce GTX 580 - 9.18.13.2049
Screen: 1920x1200
Temp Dir: C:\Users\FG\AppData\Local\Temp\
Install Dir: C:\Program Files\Handbrake
Data Dir: C:\Users\FG\AppData\Roaming\HandBrake\HandBrake\0.0.0.5819

-------------------------------------------

CLI Query:  -i "E:\\" -t 3 --angle 1 -c 1-15 -o "D:\DVD\Nichols, Jeff - Mud.mkv"  -f mkv  --crop 132:132:0:0 --strict-anamorphic  --modulus 16 -e x264 -q 21.5 --vfr -a 2,4 -E copy:dtshd,copy:dtshd -6 auto,auto -R Auto,Auto -B 0,0 -D 0,0 --gain 0,0 --audio-fallback ac3 --subtitle 1,2 --markers="C:\Users\FG\AppData\Local\Temp\Nichols, Jeff - Mud-3-chapters.csv" -x level=4.0:mixed-refs=0:vbv-bufsize=25000:vbv-maxrate=20000:rc-lookahead=10:ref=16:bframes=8:b-adapt=2:direct=auto:me=umh:subme=10:merange=24:analyse=all:trellis=2 --verbose=1 -P 
User Query: False

[23:44:35] hb_init: starting libhb thread
[23:44:35] hb_get_opencl_env: GPU #1, Device Vendor:  NVIDIA Corporation
[23:44:35] hb_get_opencl_env: GPU #1, Device Name:    GeForce GTX 580
[23:44:35] hb_get_opencl_env: GPU #1, Driver Version: 320.49
HandBrake svn5819 (2013100201) - MinGW x86_64 - http://handbrake.fr
12 CPUs detected
Opening E:\...
[23:44:35] Intel Quick Sync Video support: no
[23:44:35] CPU: Intel(R) Core(TM) i7-3930K CPU @ 3.20GHz
[23:44:35]  - Intel microarchitecture Sandy Bridge
[23:44:35]  - logical processor count: 12
[23:44:35] hb_scan: path=E:\, title_index=3
[23:44:35] scan: BD has 7 title(s)
[23:44:35] bd: scanning title 3
[23:44:35] bd: playlist 00102.MPLS
[23:44:35] bd: duration is 02:04:52 (7492960 ms)
[23:44:35] bd: video id=0x1011, stream type=H.264, format 1080i
[23:44:35] bd: aspect = 1.77778
[23:44:35] bd: audio id=0x711101, lang=English (DTS), 3cc=eng
[23:44:35] bd: audio id=0x1101, lang=English (DTS-HD MA), 3cc=eng
[23:44:35] bd: audio id=0x711100, lang=Francais (DTS), 3cc=fra
[23:44:35] bd: audio id=0x1100, lang=Francais (DTS-HD MA), 3cc=fra
[23:44:35] bd: subtitle id=0x1201, lang=Francais, 3cc=fra
[23:44:35] bd: subtitle id=0x1200, lang=Francais, 3cc=fra
[23:44:35] bd: chap 1 packet=768, 433400 ms
[23:44:35] bd: chap 2 packet=1905620928, 435360 ms
[23:44:35] bd: chap 3 packet=3880333056, 533280 ms
[23:44:35] bd: chap 4 packet=6228594624, 395920 ms
[23:44:35] bd: chap 5 packet=8022216960, 465720 ms
[23:44:35] bd: chap 6 packet=10116244800, 705880 ms
[23:44:35] bd: chap 7 packet=13194968256, 700160 ms
[23:44:35] bd: chap 8 packet=16354772160, 517680 ms
[23:44:35] bd: chap 9 packet=18685280832, 706960 ms
[23:44:35] bd: chap 10 packet=21886062720, 596600 ms
[23:44:35] bd: chap 11 packet=24580639872, 457280 ms
[23:44:35] bd: chap 12 packet=26644266816, 490960 ms
[23:44:35] bd: chap 13 packet=28847619264, 844920 ms
[23:44:35] bd: chap 14 packet=32672647104, 208800 ms
[23:44:35] bd: chap 15 packet=33172039872, 40 ms
[23:44:35] bd: title 3 has 15 chapters
[23:44:35] scan: decoding previews for title 3
[23:44:35] scan: title angle(s) 1
[23:44:35] scan: audio 0x711100: dca, rate=48000Hz, bitrate=1536000 Francais (DTS) (5.1 ch)
[23:44:35] scan: audio 0x1100: dca, rate=48000Hz, bitrate=1536000 Francais (DTS-HD MA) (5.1 ch)
[23:44:35] scan: audio 0x711101: dca, rate=48000Hz, bitrate=1536000 English (DTS) (5.1 ch)
[23:44:35] scan: audio 0x1101: dca, rate=48000Hz, bitrate=1536000 English (DTS-HD MA) (5.1 ch)
Scanning title 1 of 1, preview 3, 30.00 %
Scanning title 1 of 1, preview 5, 50.00 %
Scanning title 1 of 1, preview 7, 70.00 %
Scanning title 1 of 1, preview 9, 90.00 %[23:44:36] scan: 10 previews, 1920x1080, 25.000 fps, autocrop = 132/132/0/0, aspect 16:9, PAR 1:1
[23:44:36] stream: 24 good frames, 0 errors (0%)
[23:44:36] libhb: scan thread found 1 valid title(s)
+ title 3:
  + playlist: 00102.MPLS
  + duration: 02:04:52
  + size: 1920x1080, pixel aspect: 1/1, display aspect: 1.78, 25.000 fps
  + autocrop: 132/132/0/0
  + support opencl: no
  + support hwd: no
  + chapters:
    + 1: cells 0->0, 0 blocks, duration 00:07:13
    + 2: cells 0->0, 0 blocks, duration 00:07:15
    + 3: cells 0->0, 0 blocks, duration 00:08:53
    + 4: cells 0->0, 0 blocks, duration 00:06:36
    + 5: cells 0->0, 0 blocks, duration 00:07:46
    + 6: cells 0->0, 0 blocks, duration 00:11:46
    + 7: cells 0->0, 0 blocks, duration 00:11:40
    + 8: cells 0->0, 0 blocks, duration 00:08:38
    + 9: cells 0->0, 0 blocks, duration 00:11:47
    + 10: cells 0->0, 0 blocks, duration 00:09:57
    + 11: cells 0->0, 0 blocks, duration 00:07:37
    + 12: cells 0->0, 0 blocks, duration 00:08:11
    + 13: cells 0->0, 0 blocks, duration 00:14:05
    + 14: cells 0->0, 0 blocks, duration 00:03:29
    + 15: cells 0->0, 0 blocks, duration 00:00:00
  + audio tracks:
    + 1, English (DTS) (5.1 ch) (iso639-2: eng), 48000Hz, 1536000bps
    + 2, English (DTS-HD MA) (5.1 ch) (iso639-2: eng)
    + 3, Francais (DTS) (5.1 ch) (iso639-2: fra), 48000Hz, 1536000bps
    + 4, Francais (DTS-HD MA) (5.1 ch) (iso639-2: fra)
  + subtitle tracks:
    + 1, Francais (iso639-2: fra) (Bitmap)(PGS)
    + 2, Francais (iso639-2: fra) (Bitmap)(PGS)
Reading chapter markers from file C:\Users\FG\AppData\Local\Temp\Nichols, Jeff - Mud-3-chapters.csv
[23:44:36] 1 job(s) to process
[23:44:37] starting job
[23:44:37] Using GPU: Yes.
[23:44:37] sync: expecting 187324 video frames
[23:44:37] job configuration:
[23:44:37]  * source
[23:44:37]    + E:\
[23:44:37]    + title 3, chapter(s) 1 to 15
[23:44:37]  * destination
[23:44:37]    + D:\DVD\Nichols, Jeff - Mud.mkv
[23:44:37]    + container: Matroska (libmkv)
[23:44:37]      + chapter markers
[23:44:37]  * video track
[23:44:37]    + decoder: h264
[23:44:37]      + bitrate 200 kbps
[23:44:37]    + filters
[23:44:37]      + Framerate Shaper (0:27000000:1080000)
[23:44:37]        + frame rate: same as source (around 25.000 fps)
[23:44:37]      + Crop and Scale (1920:816:132:132:0:0)
[23:44:37]        + source: 1920 * 1080, crop (132/132/0/0): 1920 * 816, scale: 1920 * 816
[23:44:37]    + strict anamorphic
[23:44:37]      + storage dimensions: 1920 * 816, mod 0
[23:44:37]      + pixel aspect ratio: 1 / 1
[23:44:37]      + display dimensions: 1920 * 816
[23:44:37]    + encoder: H.264 (x264)
[23:44:37]      + options: level=4.0:mixed-refs=0:vbv-bufsize=25000:vbv-maxrate=20000:rc-lookahead=10:ref=16:bframes=8:b-adapt=2:direct=auto:me=umh:subme=10:merange=24:analyse=all:trellis=2
[23:44:37]      + quality: 21.50 (RF)
[23:44:37]  * subtitle track 1, Francais (track 0, id 0x1201) Picture [PGS] -> Passthrough
[23:44:37]  * subtitle track 2, Francais (track 1, id 0x1200) Picture [PGS] -> Passthrough
[23:44:37]  * audio track 1
[23:44:37]    + decoder: English (DTS-HD MA) (5.1 ch) (track 2, id 0x1101)
[23:44:37]      + bitrate: 1536 kbps, samplerate: 48000 Hz
[23:44:37]    + DTS-HD Passthru
[23:44:37]  * audio track 2
[23:44:37]    + decoder: Francais (DTS-HD MA) (5.1 ch) (track 4, id 0x1100)
[23:44:37]      + bitrate: 1536 kbps, samplerate: 48000 Hz
[23:44:37]    + DTS-HD Passthru
[23:44:37] encx264: encoding with stored aspect 1/1
[23:44:37] encx264: Encoding at constant RF 21.500000
[23:44:37] reader: first SCR 1044960 id 0x1011 DTS 1044960
x264 [info]: using SAR=1/1
x264 [warning]: DPB size (16 frames, 97920 mbs) > level limit (5 frames, 32768 mbs)
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX
x264 [info]: profile High, level 4.0
[23:44:37] h264: "Chapter 1" (1) at frame 0 time 3600
[23:44:37] sync: first pts is 3600
[23:44:37] Scaling With OpenCL
Smithcraft
Veteran User
Posts: 2697
Joined: Thu Jan 22, 2009 8:04 pm

Re: [svn5819] opencl scaling bug

Post by Smithcraft »

I think OpenCL has been considered a lost cause, so I don't know if this would be fixed, or OpenCL code just removed.

SC
User avatar
s55
HandBrake Team
Posts: 10360
Joined: Sun Dec 24, 2006 1:05 pm

Re: [svn5819] opencl scaling bug

Post by s55 »

The CL code has a significant re-work so it does actually help a bit now. About 5~6% on downscaling (on top of the speedup you get by using bicubic vs lanczos). At some point I want to add bucubic as an option for software too.


We don't have any Nvidia hardware to test but I can say it does work on AMD hardware. Nothing in the logs to indicate what the problem might be. I wouldn't expect any real gain since your not really doing any reasonable downscale there. Infact, on that CPU, it may well be slower.
Deleted User 11865

Re: [svn5819] opencl scaling bug

Post by Deleted User 11865 »

The log says OpenCL support is no, yet that the GPU is being used and OpenCL scaling enabled. Seems like a configuration-related issue?
User avatar
s55
HandBrake Team
Posts: 10360
Joined: Sun Dec 24, 2006 1:05 pm

Re: [svn5819] opencl scaling bug

Post by s55 »

Hmm, wonder if there is a problem with those messages. Normally that means openCL scaling would just fallback to normal software scaling since it can't be used for that type of input file.
Post Reply