OpenCL Nightly Builds

General questions or discussion about HandBrake, Video and/or audio transcoding, trends etc.
madmossy
Posts: 2
Joined: Mon Jan 21, 2013 9:39 am

Re: OpenCL Nightly Builds

Post by madmossy »

I've been getting the same error message as above, the only thing I can link it too is that the onboard graphics on my system (Intel HD 4000) which is enabled in the bios, only has limited memory allocated to it (64Mb).

When I disable the above in the BIOS and just use my ATI 6970, the encodes are fine and finish properly. There needs to be an option to specify which GPU to use for the encode rather than the program selecting it, as I use the Intel one for the quick sync support in other programs.
dmance
Posts: 10
Joined: Sun Jun 24, 2012 1:44 pm

Re: OpenCL Nightly Builds

Post by dmance »

s55 wrote: I suspect UVD will help further but only to the point where the encode isn't running faster than about 160 ~ 170fps. After that (when it was still working) it appeared to bottle neck it. Once it's fixed. Decode -> Scaling is all done within the GPU so that will eliminate memory copies from my above results with may or may not help.


As for running multiple encodes. UVD isn't good for that. OpenCL alone with 2 downscale encodes may/may not show a small increase. Between this, and the x264 lookahead patch (when it eventually gets submitted) it does tie up a fair chunk of the GPU so don't expect multiple encodes to really be an option.
S55: my tests concur fairly closely with your ~170fps being a UVD bottleneck on multiple encodes...with GPU load (Android Tablet Profile) only consuming ~30%. Good news is the huge reduction in CPU cycles means that you can run additional encodes using CPU only.

So a big questions is: what support is there for multiple GPU's being utilized purely to use more UVD resources (not necessarily in SLI or cross-fire configuration).

Thanks (and fantastic work!)
Dan
User avatar
s55
HandBrake Team
Posts: 10360
Joined: Sun Dec 24, 2006 1:05 pm

Re: OpenCL Nightly Builds

Post by s55 »

If you remove -U, it should get a lot faster. -U is more going to be suited towards APU's and maybe in the future with next generation hardware, we'll see better decode performance.

On a side note, the x264 decode crashes might now be fixed. Looks like it was a compiler bug. The bad news is that libdvdread breaks under gcc 4.8 toolchain.
In other words, if your not encoding DVDs / ISO images, feel free to test x64 build -U option and let me know if that's now working.
HandyMan
Bright Spark User
Posts: 169
Joined: Tue Aug 07, 2012 10:52 pm

Re: OpenCL Nightly Builds

Post by HandyMan »

I tried SVN 5177 super fast, use only 60% of CPU BUT it encode only green frames !!! and 15000 lines of logs!
It grabbed all the memory before reaching 50% of encode

Am I missing something?

This is OpenCLx64 Win GUI,Win7 x64 Intel HD3000 and AMD 6850

Code: Select all

HandBrake svn5165 2013010701
OS: Microsoft Windows NT 6.1.7601 Service Pack 1
CPU: Intel(R) Core(TM) i7-2600K CPU @ 3.40GHz
Ram: 8089 MB, Screen: 1920x1080
GPU: Intel(R) HD Graphics 3000
GPU driver version: 9.17.10.2897
Temp Dir: C:\Users\Simon\AppData\Local\Temp\
Install Dir: C:\Program Files\Handbrake
Data Dir: C:\Users\Simon\AppData\Roaming\HandBrake\HandBrake\0.9.8.5177

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

CLI Query:  -i "M:\TV\TéléQuébec\Question de Société\Pas de Piquerie dans mon Quartier 20130121 (debut+fin 2).ts" -t 1 --angle 1 --start-at duration:0 --stop-at duration:501 -o "M:\TV\TéléQuébec\Question de Société\Pas de Piquerie dans mon Quartier 20130121 (debut+fin 2) decomb cfrsas rf24 5minOpen.mkv"  -f mkv  -P  --detelecine --decomb -w 1280 --crop 0:0:0:0 --loose-anamorphic  --modulus 16 -e x264 -q 21 --vfr -a 1 -E ffac3 -6 5point1 -R Auto -B 256 -D 0 --gain 0 --audio-fallback ffac3 --x264-preset=veryslow  --x264-profile=high  --h264-level="3.1"  -x bframes=5:merange=16 --verbose=1
User Query: False

[18:36:59] hb_init: starting libhb thread
[18:36:59] Notice: No available GPU device.
HandBrake svn5193 (2013012201) - MinGW x86_64 - http://handbrake.fr
8 CPUs detected
Opening M:\TV\TéléQuébec\Question de Société\Pas de Piquerie dans mon Quartier 20130121 (debut+fin 2).ts...
[18:36:59] hb_scan: path=M:\TV\TéléQuébec\Question de Société\Pas de Piquerie dans mon Quartier 20130121 (debut+fin 2).ts, title_index=1
libbluray/bdnav/index_parse.c:162: indx_parse(): error opening M:\TV\TéléQuébec\Question de Société\Pas de Piquerie dans mon Quartier 20130121 (debut+fin 2).ts/BDMV/index.bdmv
libbluray/bdnav/index_parse.c:162: indx_parse(): error opening M:\TV\TéléQuébec\Question de Société\Pas de Piquerie dans mon Quartier 20130121 (debut+fin 2).ts/BDMV/BACKUP/index.bdmv
libbluray/bluray.c:1725: nav_get_title_list(M:\TV\TéléQuébec\Question de Société\Pas de Piquerie dans mon Quartier 20130121 (debut+fin 2).ts) failed (00000000003656a0)
[18:36:59] bd: not a bd - trying as a stream/file instead
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
[18:36:59] dvd: not a dvd - trying as a stream/file instead
[18:36:59] file is MPEG Transport Stream with 188 byte packets offset 0 bytes
[18:37:00] Found the following PIDS
[18:37:00]     Video PIDS : 
[18:37:00]       0x31 type MPEG2 (0x2) (PCR)
[18:37:00]     Audio PIDS : 
[18:37:00]       0x34 type AC3 (0x81)
[18:37:00]     Subtitle PIDS : 
[18:37:00]     Other PIDS : 
[18:37:00] stream id 0x34 (type 0x81 substream 0x0) audio 0x34
[18:37:01] dxva2:DxFindVideoServiceConversion failed
[18:37:01] scan: decoding previews for title 1
[18:37:01] scan: audio 0x34: AC-3, rate=48000Hz, bitrate=384000 Francais (AC3) (5.1 ch)
Scanning title 1...
Scanning title 1...
Scanning title 1...
Scanning title 1...
[18:37:02] scan: 10 previews, 1920x1080, 29.970 fps, autocrop = 132/48/0/0, aspect 16:9, PAR 1:1
[18:37:02] stream: 19 good frames, 0 errors (0%)
[18:37:02] libhb: scan thread found 1 valid title(s)
+ title 1:
  + stream: M:\TV\TéléQuébec\Question de Société\Pas de Piquerie dans mon Quartier 20130121 (debut+fin 2).ts
  + duration: 00:51:59
  + size: 1920x1080, pixel aspect: 1/1, display aspect: 1.78, 29.970 fps
  + autocrop: 132/48/0/0
  + support opencl: yes
  + support uvd: no
  + chapters:
    + 1: cells 0->0, 0 blocks, duration 00:51:59
  + audio tracks:
    + 1, Francais (AC3) (5.1 ch) (iso639-2: fra), 48000Hz, 384000bps
  + subtitle tracks:
    + 1, Closed Captions (iso639-2: fra) (Text)(CC)
[18:37:02] 1 job(s) to process
[18:37:02] starting job
[18:37:02] Using GPU : Yes.
[18:37:02] Notice: No available GPU device.
[18:37:02] yadif thread started for segment 0
[18:37:02] yadif thread started for segment 1
[18:37:02] yadif thread started for segment 2
[18:37:02] yadif thread started for segment 4
[18:37:02] yadif thread started for segment 5
[18:37:02] yadif thread started for segment 3
[18:37:02] yadif thread started for segment 6
[18:37:02] decomb filter thread started for segment 0
[18:37:02] yadif thread started for segment 7
[18:37:02] decomb filter thread started for segment 1
[18:37:02] decomb filter thread started for segment 2
[18:37:02] decomb filter thread started for segment 3
[18:37:02] decomb filter thread started for segment 4
[18:37:02] decomb filter thread started for segment 5
[18:37:02] decomb filter thread started for segment 6
[18:37:02] decomb filter thread started for segment 7
[18:37:02] decomb check thread started for segment 0
[18:37:02] decomb check thread started for segment 1
[18:37:02] decomb check thread started for segment 3
[18:37:02] decomb check thread started for segment 2
[18:37:02] decomb check thread started for segment 4
[18:37:02] decomb check thread started for segment 6
[18:37:02] decomb check thread started for segment 5
[18:37:02] decomb check thread started for segment 7
[18:37:02] mask filter thread started for segment 0
[18:37:02] mask filter thread started for segment 1
[18:37:02] mask filter thread started for segment 2
[18:37:02] mask filter thread started for segment 3
[18:37:02] mask filter thread started for segment 4
[18:37:02] mask filter thread started for segment 6
[18:37:02] mask filter thread started for segment 5
[18:37:02] mask filter thread started for segment 7
[18:37:02] mask erode thread started for segment 0
[18:37:02] mask erode thread started for segment 1
[18:37:02] mask erode thread started for segment 2
[18:37:02] mask erode thread started for segment 3
[18:37:02] mask erode thread started for segment 4
[18:37:02] mask erode thread started for segment 5
[18:37:02] mask erode thread started for segment 6
[18:37:02] mask erode thread started for segment 7
[18:37:02] mask dilate thread started for segment 0
[18:37:02] mask dilate thread started for segment 1
[18:37:02] mask dilate thread started for segment 2
[18:37:02] mask dilate thread started for segment 3
[18:37:02] mask dilate thread started for segment 4
[18:37:02] mask dilate thread started for segment 5
[18:37:02] mask dilate thread started for segment 6
[18:37:02] mask dilate thread started for segment 7
[18:37:02] sync: expecting 15044 video frames
[18:37:02] job configuration:
[18:37:02]  * source
[18:37:02]    + M:\TV\TéléQuébec\Question de Société\Pas de Piquerie dans mon Quartier 20130121 (debut+fin 2).ts
[18:37:02]    + title 1, start 0:0:0.00 stop 0:8:21.00
[18:37:02]  * destination
[18:37:02]    + M:\TV\TéléQuébec\Question de Société\Pas de Piquerie dans mon Quartier 20130121 (debut+fin 2) decomb cfrsas rf24 5minOpen.mkv
[18:37:02]    + container: Matroska (.mkv)
[18:37:02]  * video track
[18:37:02]    + decoder: mpeg2
[18:37:02]      + bitrate 17700 kbps
[18:37:02]    + frame rate: same as source (around 29.970 fps)
[18:37:02]    + filters
[18:37:02]      + Detelecine (pullup) (default settings)
[18:37:02]      + Decomb (default settings)
[18:37:02]      + Framerate Shaper (0:27000000:900900)
[18:37:02]        + frame rate: same as source (around 29.970 fps)
[18:37:02]      + Custom Crop and Scale (1280:720:0:0:0:0)
[18:37:02]        + source: 1920 * 1080, crop (0/0/0/0): 1920 * 1080, scale: 1280 * 720
[18:37:02]    + loose anamorphic
[18:37:02]      + storage dimensions: 1280 * 720, mod 16
[18:37:02]      + pixel aspect ratio: 1 / 1
[18:37:02]      + display dimensions: 1280 * 720
[18:37:02]    + encoder: H.264 (x264)
[18:37:02]      + x264 preset: veryslow
[18:37:02]      + options: bframes=5:merange=16
[18:37:02]      + x264 profile: high
[18:37:02]      + h264 level: 3.1
[18:37:02]      + quality: 21.00 (RF)
[18:37:02]  * audio track 1
[18:37:02]    + decoder: Francais (AC3) (5.1 ch) (track 1, id 0x34)
[18:37:02]      + bitrate: 384 kbps, samplerate: 48000 Hz
[18:37:02]    + mixdown: 5.1 Channels
[18:37:02]    + encoder: AC3 (ffmpeg)
[18:37:02]      + bitrate: 256 kbps, samplerate: 48000 Hz
[18:37:02] file is MPEG Transport Stream with 188 byte packets offset 0 bytes
[18:37:02] reader: first SCR 914 id 0x34 DTS 34114
[18:37:02] encx264: min-keyint: 30, keyint: 300
[18:37:02] encx264: encoding with stored aspect 1/1
[18:37:02] encx264: Encoding at constant RF 21.000000
x264 [warning]: --psnr used with psy on: results will be invalid!
x264 [warning]: --tune psnr should be used if attempting to benchmark psnr!
x264 [info]: using SAR=1/1
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE4.2 AVX
x264 [info]: profile High, level 3.1
[18:37:02] mpeg2: "Chapter 1" (1) at frame 0 time 0
[18:37:02] Scaling With OpenCL
[18:37:02] Scaling With OpenCL
[18:37:02] Scaling With OpenCL
[18:37:02] Scaling With OpenCL
[18:37:02] Scaling With OpenCL

... There is 15000 lines like this!  :o 

[18:40:21] Scaling With OpenCL
[18:40:21] Scaling With OpenCL
[18:40:21] Scaling With OpenCL
[18:40:21] sync: reached pts 45090045, exiting early
[18:40:21] Scaling With OpenCL
[18:40:21] Scaling With OpenCL
[18:40:21] Scaling With OpenCL
[18:40:21] Scaling With OpenCL
[18:40:21] Scaling With OpenCL
[18:40:21] Scaling With OpenCL
[18:40:21] Scaling With OpenCL
[18:40:21] Scaling With OpenCL
[18:40:21] Scaling With OpenCL
[18:40:21] Scaling With OpenCL
[18:40:21] Scaling With OpenCL
[18:40:21] work: average encoding speed for job is 75.582832 fps
[18:40:21] reader: done. 1 scr changes
[18:40:21] sync: got 15015 frames, 15044 expected
[18:40:21] decomb: deinterlaced 43 | blended 163 | unfiltered 14802 | total 15008
[18:40:21] render: lost time: 18018 (0 frames)
[18:40:21] render: gained time: 18018 (24 frames) (0 not accounted for)
[18:40:21] mpeg2 done: 15095 frames
x264 [info]: frame I:51    Avg QP:24.06  size:   271  PSNR Mean Y:100.00 U:100.00 V:100.00 Avg:100.00 Global:100.00
x264 [info]: frame P:2502  Avg QP:27.00  size:    42  PSNR Mean Y:100.00 U:100.00 V:100.00 Avg:100.00 Global:100.00
x264 [info]: frame B:12455 Avg QP:27.00  size:    36  PSNR Mean Y:100.00 U:100.00 V:100.00 Avg:100.00 Global:100.00
x264 [info]: consecutive B-frames:  0.3%  0.0%  0.0%  0.0%  1.7% 98.0%
x264 [info]: mb I  I16..4: 100.0%  0.0%  0.0%
x264 [info]: mb P  I16..4:  0.0%  0.0%  0.0%  P16..4:  0.0%  0.0%  0.0%  0.0%  0.0%    skip:100.0%
x264 [info]: mb B  I16..4:  0.0%  0.0%  0.0%  B16..8:  0.0%  0.0%  0.0%  direct: 0.0%  skip:100.0%
x264 [info]: 8x8 transform intra:0.0%
x264 [info]: direct mvs  spatial:39.8% temporal:60.2%
x264 [info]: coded y,uvDC,uvAC intra: 0.0% 0.0% 0.0% inter: 0.0% 0.0% 0.0%
x264 [info]: i16 v,h,dc,p: 98%  0%  2%  0%
x264 [info]: i8c dc,h,v,p: 100%  0%  0%  0%
x264 [info]: Weighted P-Frames: Y:0.0% UV:0.0%
x264 [info]: SSIM Mean Y:1.0000000 (100.000db)
x264 [info]: PSNR Mean Y:100.000 U:100.000 V:100.000 Avg:100.000 Global:100.000 kb/s:9.13
[18:40:22] mux: track 0, 15008 frames, 569761 bytes, 9.10 kbps, fifo 16384
[18:40:22] mux: track 1, 15657 frames, 16032768 bytes, 256.01 kbps, fifo 16384
[18:40:22] stream: 15131 good frames, 0 errors (0%)
[18:40:22] libhb: work result = 0
Encode done!
HandBrake has exited.

I also tried only 3 minutes OpenCLx32 Win GUI,Win7 x64 Intel HD3000 and AMD 6850
Same thing green encode but slower. :wink:

Code: Select all

andBrake svn5193 2013012201
OS: Microsoft Windows NT 6.1.7601 Service Pack 1
CPU: Intel(R) Core(TM) i7-2600K CPU @ 3.40GHz
Ram: 8089 MB, Screen: 1920x1080
GPU: Intel(R) HD Graphics 3000
GPU driver version: 9.17.10.2897
Temp Dir: C:\Users\Simon\AppData\Local\Temp\
Install Dir: C:\Program Files\Handbrake
Data Dir: C:\Users\Simon\AppData\Roaming\HandBrake\HandBrake\0.9.8.5177

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

CLI Query:  -i "M:\TV\TéléQuébec\Question de Société\Pas de Piquerie dans mon Quartier 20130121 (debut+fin 2).ts" -t 1 --angle 1 --start-at duration:0 --stop-at duration:301 -o "M:\TV\TéléQuébec\Question de Société\Pas .mkv"  -f mkv  -P  --detelecine --decomb -w 1280 --crop 0:0:0:0 --loose-anamorphic  --modulus 16 -e x264 -q 23 --vfr -a 1 -E ffac3 -6 5point1 -R Auto -B 256 -D 0 --gain 0 --audio-fallback ffac3 --x264-preset=veryslow  --x264-profile=high  --h264-level="3.1"  -x bframes=5:merange=16 --verbose=1
User Query: False

[18:46:34] hb_init: starting libhb thread
[18:46:34] Notice: No available GPU device.
HandBrake svn5189 (2013012201) - MinGW i686 - http://handbrake.fr
8 CPUs detected
Opening M:\TV\TéléQuébec\Question de Société\Pas de Piquerie dans mon Quartier 20130121 (debut+fin 2).ts...
[18:46:34] hb_scan: path=M:\TV\TéléQuébec\Question de Société\Pas de Piquerie dans mon Quartier 20130121 (debut+fin 2).ts, title_index=1
libbluray/bdnav/index_parse.c:162: indx_parse(): error opening M:\TV\TéléQuébec\Question de Société\Pas de Piquerie dans mon Quartier 20130121 (debut+fin 2).ts/BDMV/index.bdmv
libbluray/bdnav/index_parse.c:162: indx_parse(): error opening M:\TV\TéléQuébec\Question de Société\Pas de Piquerie dans mon Quartier 20130121 (debut+fin 2).ts/BDMV/BACKUP/index.bdmv
libbluray/bluray.c:1725: nav_get_title_list(M:\TV\TéléQuébec\Question de Société\Pas de Piquerie dans mon Quartier 20130121 (debut+fin 2).ts) failed (01E12FE0)
[18:46:34] bd: not a bd - trying as a stream/file instead
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
[18:46:34] dvd: not a dvd - trying as a stream/file instead
[18:46:34] file is MPEG Transport Stream with 188 byte packets offset 0 bytes
[18:46:34] Found the following PIDS
[18:46:34]     Video PIDS : 
[18:46:34]       0x31 type MPEG2 (0x2) (PCR)
[18:46:34]     Audio PIDS : 
[18:46:34]       0x34 type AC3 (0x81)
[18:46:34]     Subtitle PIDS : 
[18:46:34]     Other PIDS : 
[18:46:34] stream id 0x34 (type 0x81 substream 0x0) audio 0x34
[18:46:34] dxva2:DxFindVideoServiceConversion failed
[18:46:34] scan: decoding previews for title 1
[18:46:34] scan: audio 0x34: AC-3, rate=48000Hz, bitrate=384000 Francais (AC3) (5.1 ch)
Scanning title 1...
[18:46:34] scan: 10 previews, 1920x1080, 29.970 fps, autocrop = 132/48/0/0, aspect 16:9, PAR 1:1
[18:46:34] stream: 19 good frames, 0 errors (0%)
Scanning title 1...
[18:46:34] libhb: scan thread found 1 valid title(s)
+ title 1:
  + stream: M:\TV\TéléQuébec\Question de Société\Pas de Piquerie dans mon Quartier 20130121 (debut+fin 2).ts
  + duration: 00:51:59
  + size: 1920x1080, pixel aspect: 1/1, display aspect: 1.78, 29.970 fps
  + autocrop: 132/48/0/0
  + support opencl: yes
  + support uvd: no
  + chapters:
    + 1: cells 0->0, 0 blocks, duration 00:51:59
  + audio tracks:
    + 1, Francais (AC3) (5.1 ch) (iso639-2: fra), 48000Hz, 384000bps
  + subtitle tracks:
    + 1, Closed Captions (iso639-2: fra) (Text)(CC)
[18:46:34] 1 job(s) to process
[18:46:34] starting job
[18:46:34] Using GPU : Yes.
[18:46:34] Notice: No available GPU device.
[18:46:34] yadif thread started for segment 1
[18:46:34] yadif thread started for segment 0
[18:46:34] yadif thread started for segment 3
[18:46:34] yadif thread started for segment 4
[18:46:34] yadif thread started for segment 5
[18:46:34] yadif thread started for segment 2
[18:46:34] yadif thread started for segment 6
[18:46:34] yadif thread started for segment 7
[18:46:34] decomb filter thread started for segment 0
[18:46:34] decomb filter thread started for segment 1
[18:46:34] decomb filter thread started for segment 2
[18:46:34] decomb filter thread started for segment 3
[18:46:34] decomb filter thread started for segment 4
[18:46:34] decomb filter thread started for segment 5
[18:46:34] decomb filter thread started for segment 6
[18:46:34] decomb filter thread started for segment 7
[18:46:34] decomb check thread started for segment 3
[18:46:34] decomb check thread started for segment 4
[18:46:34] decomb check thread started for segment 2
[18:46:34] decomb check thread started for segment 0
[18:46:34] decomb check thread started for segment 1
[18:46:34] decomb check thread started for segment 5
[18:46:34] decomb check thread started for segment 6
[18:46:34] decomb check thread started for segment 7
[18:46:34] mask filter thread started for segment 0
[18:46:34] mask filter thread started for segment 2
[18:46:34] mask filter thread started for segment 1
[18:46:34] mask filter thread started for segment 3
[18:46:34] mask filter thread started for segment 4
[18:46:34] mask filter thread started for segment 5
[18:46:34] mask filter thread started for segment 6
[18:46:34] mask erode thread started for segment 0
[18:46:34] mask filter thread started for segment 7
[18:46:34] mask erode thread started for segment 1
[18:46:34] mask erode thread started for segment 2
[18:46:34] mask erode thread started for segment 3
[18:46:34] mask erode thread started for segment 4
[18:46:34] mask erode thread started for segment 5
[18:46:34] mask erode thread started for segment 6
[18:46:34] mask dilate thread started for segment 0
[18:46:34] mask erode thread started for segment 7
[18:46:34] mask dilate thread started for segment 1
[18:46:34] mask dilate thread started for segment 2
[18:46:34] mask dilate thread started for segment 3
[18:46:34] mask dilate thread started for segment 4
[18:46:34] mask dilate thread started for segment 5
[18:46:34] mask dilate thread started for segment 6
[18:46:34] mask dilate thread started for segment 7
[18:46:34] sync: expecting 9050 video frames
[18:46:34] job configuration:
[18:46:34]  * source
[18:46:34]    + M:\TV\TéléQuébec\Question de Société\Pas de Piquerie dans mon Quartier 20130121 (debut+fin 2).ts
[18:46:34]    + title 1, start 0:0:0.00 stop 0:5:1.00
[18:46:34]  * destination
[18:46:34]    + M:\TV\TéléQuébec\Question de Société\Pas .mkv
[18:46:34]    + container: Matroska (.mkv)
[18:46:34]  * video track
[18:46:34]    + decoder: mpeg2
[18:46:34]      + bitrate 17700 kbps
[18:46:34]    + frame rate: same as source (around 29.970 fps)
[18:46:34]    + filters
[18:46:34]      + Detelecine (pullup) (default settings)
[18:46:34]      + Decomb (default settings)
[18:46:34]      + Framerate Shaper (0:27000000:900900)
[18:46:34]        + frame rate: same as source (around 29.970 fps)
[18:46:34]      + Custom Crop and Scale (1280:720:0:0:0:0)
[18:46:34]        + source: 1920 * 1080, crop (0/0/0/0): 1920 * 1080, scale: 1280 * 720
[18:46:34]    + loose anamorphic
[18:46:34]      + storage dimensions: 1280 * 720, mod 16
[18:46:34]      + pixel aspect ratio: 1 / 1
[18:46:34]      + display dimensions: 1280 * 720
[18:46:34]    + encoder: H.264 (x264)
[18:46:34]      + x264 preset: veryslow
[18:46:34]      + options: bframes=5:merange=16
[18:46:34]      + x264 profile: high
[18:46:34]      + h264 level: 3.1
[18:46:34]      + quality: 23.00 (RF)
[18:46:34]  * audio track 1
[18:46:34]    + decoder: Francais (AC3) (5.1 ch) (track 1, id 0x34)
[18:46:34]      + bitrate: 384 kbps, samplerate: 48000 Hz
[18:46:34]    + mixdown: 5.1 Channels
[18:46:34]    + encoder: AC3 (ffmpeg)
[18:46:34]      + bitrate: 256 kbps, samplerate: 48000 Hz
[18:46:34] file is MPEG Transport Stream with 188 byte packets offset 0 bytes
[18:46:34] reader: first SCR 914 id 0x34 DTS 34114
[18:46:34] encx264: min-keyint: 30, keyint: 300
[18:46:34] encx264: encoding with stored aspect 1/1
[18:46:34] encx264: Encoding at constant RF 23.000000
x264 [warning]: --psnr used with psy on: results will be invalid!
x264 [warning]: --tune psnr should be used if attempting to benchmark psnr!
x264 [info]: using SAR=1/1
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE4.2 AVX
x264 [info]: profile High, level 3.1
[18:46:34] mpeg2: "Chapter 1" (1) at frame 0 time 0
[18:46:35] Scaling With OpenCL
[18:46:35] Scaling With OpenCL
[18:46:35] Scaling With OpenCL

...

[18:50:17] Scaling With OpenCL
[18:50:17] Scaling With OpenCL
[18:50:17] Scaling With OpenCL
[18:50:17] sync: reached pts 27090063, exiting early
[18:50:17] Scaling With OpenCL
[18:50:17] Scaling With OpenCL
[18:50:17] Scaling With OpenCL
[18:50:17] Scaling With OpenCL
[18:50:17] Scaling With OpenCL
[18:50:17] Scaling With OpenCL
[18:50:17] Scaling With OpenCL
[18:50:17] Scaling With OpenCL
[18:50:17] Scaling With OpenCL
[18:50:17] Scaling With OpenCL
[18:50:17] Scaling With OpenCL
[18:50:17] Scaling With OpenCL
[18:50:17] Scaling With OpenCL
[18:50:17] Scaling With OpenCL
[18:50:17] Scaling With OpenCL
[18:50:17] Scaling With OpenCL
[18:50:17] Scaling With OpenCL
[18:50:17] Scaling With OpenCL
[18:50:17] Scaling With OpenCL
[18:50:17] work: average encoding speed for job is 40.572739 fps
[18:50:17] reader: done. 1 scr changes
[18:50:17] sync: got 9021 frames, 9050 expected
[18:50:17] decomb: deinterlaced 31 | blended 81 | unfiltered 8906 | total 9018
[18:50:17] render: lost time: 6006 (0 frames)
[18:50:17] render: gained time: 6006 (8 frames) (0 not accounted for)
[18:50:17] mpeg2 done: 9168 frames
x264 [info]: frame I:31    Avg QP: 8.68  size:   287  PSNR Mean Y:100.00 U:100.00 V:100.00 Avg:100.00 Global:100.00
x264 [info]: frame P:1503  Avg QP:29.00  size:    42  PSNR Mean Y:100.00 U:100.00 V:100.00 Avg:100.00 Global:100.00
x264 [info]: frame B:7484  Avg QP:29.00  size:    36  PSNR Mean Y:100.00 U:100.00 V:100.00 Avg:100.00 Global:100.00
x264 [info]: consecutive B-frames:  0.3%  0.0%  0.0%  0.0%  1.7% 97.9%
x264 [info]: mb I  I16..4: 100.0%  0.0%  0.0%
x264 [info]: mb P  I16..4:  0.0%  0.0%  0.0%  P16..4:  0.0%  0.0%  0.0%  0.0%  0.0%    skip:100.0%
x264 [info]: mb B  I16..4:  0.0%  0.0%  0.0%  B16..8:  0.0%  0.0%  0.0%  direct: 0.0%  skip:100.0%
x264 [info]: 8x8 transform intra:0.0%
x264 [info]: direct mvs  spatial:39.8% temporal:60.2%
x264 [info]: coded y,uvDC,uvAC intra: 0.0% 0.0% 0.0% inter: 0.0% 0.0% 0.0%
x264 [info]: i16 v,h,dc,p: 98%  0%  2%  0%
x264 [info]: i8c dc,h,v,p: 100%  0%  0%  0%
x264 [info]: Weighted P-Frames: Y:0.0% UV:0.0%
x264 [info]: SSIM Mean Y:1.0000000 (100.000db)
x264 [info]: PSNR Mean Y:100.000 U:100.000 V:100.000 Avg:100.000 Global:100.000 kb/s:9.15
[18:50:18] mux: track 0, 9018 frames, 342890 bytes, 9.11 kbps, fifo 16384
[18:50:18] mux: track 1, 9407 frames, 9632768 bytes, 256.02 kbps, fifo 16384
[18:50:18] stream: 9192 good frames, 0 errors (0%)
[18:50:18] libhb: work result = 0
Encode done!
HandBrake has exited.


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

Re: OpenCL Nightly Builds

Post by s55 »

What about the normal nightly? What about with opencl unchecked.
HandyMan
Bright Spark User
Posts: 169
Joined: Tue Aug 07, 2012 10:52 pm

Re: OpenCL Nightly Builds

Post by HandyMan »

s55 wrote:What about the normal nightly? What about with opencl unchecked.
I was using Nightly HandBrake-svn5159_x86_64-Win_GUI.exe + HandBrake svn5165 2013010701.zip

Installed OpenCL HandBrake-svn5177_x86_64-Win_GUI.exe first log
Installed OpenCL HandBrake-svn5177_i686-Win_GUI.exe for the second

Installed HandBrake-svn5185_x86_64-Win_GUI for this one:

Code: Select all

HandBrake svn5185 2013012101
OS: Microsoft Windows NT 6.1.7601 Service Pack 1
CPU: Intel(R) Core(TM) i7-2600K CPU @ 3.40GHz
Ram: 8089 MB, Screen: 1920x1080
Temp Dir: C:\Users\Simon\AppData\Local\Temp\
Install Dir: C:\Program Files\Handbrake
Data Dir: C:\Users\Simon\AppData\Roaming\HandBrake\HandBrake\0.9.8.5185

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

CLI Query:  -i "M:\TV\TéléQuébec\Question de Société\Pas de Piquerie dans mon Quartier 20130121 (debut+fin).ts" -t 1 --angle 1 -c 1 -o "M:\TV\TéléQuébec\Question de Société\Pas de Piquerie dans mon Quartier 20130121 (debut+fin) decomb detel cfr23976 rf20.mkv"  -f mkv  --detelecine --decomb -w 1280 --crop 0:0:0:0 --loose-anamorphic  --modulus 16 -e x264 -q 20 -r 23.976 --cfr -a 1 -E ffac3 -6 5point1 -R Auto -B 256 -D 0 --gain 0 --audio-fallback ffac3 --subtitle 1 --x264-preset=veryslow  --x264-profile=high  --h264-level="3.1"  -x bframes=5:merange=16 --verbose=1
User Query: False

[01:21:05] hb_init: starting libhb thread
HandBrake svn5185 (2013012101) - MinGW x86_64 - http://handbrake.fr
8 CPUs detected
Opening M:\TV\TéléQuébec\Question de Société\Pas de Piquerie dans mon Quartier 20130121 (debut+fin).ts...
[01:21:05] hb_scan: path=M:\TV\TéléQuébec\Question de Société\Pas de Piquerie dans mon Quartier 20130121 (debut+fin).ts, title_index=1
libbluray/bdnav/index_parse.c:162: indx_parse(): error opening M:\TV\TéléQuébec\Question de Société\Pas de Piquerie dans mon Quartier 20130121 (debut+fin).ts/BDMV/index.bdmv
libbluray/bdnav/index_parse.c:162: indx_parse(): error opening M:\TV\TéléQuébec\Question de Société\Pas de Piquerie dans mon Quartier 20130121 (debut+fin).ts/BDMV/BACKUP/index.bdmv
libbluray/bluray.c:1725: nav_get_title_list(M:\TV\TéléQuébec\Question de Société\Pas de Piquerie dans mon Quartier 20130121 (debut+fin).ts) failed (000000000034F0F0)
[01:21:05] bd: not a bd - trying as a stream/file instead
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
[01:21:05] dvd: not a dvd - trying as a stream/file instead
[01:21:05] file is MPEG Transport Stream with 188 byte packets offset 0 bytes
[01:21:05] Found the following PIDS
[01:21:05]     Video PIDS : 
[01:21:05]       0x31 type MPEG2 (0x2) (PCR)
[01:21:05]     Audio PIDS : 
[01:21:05]       0x34 type AC3 (0x81)
[01:21:05]     Subtitle PIDS : 
[01:21:05]     Other PIDS : 
[01:21:05] stream id 0x34 (type 0x81 substream 0x0) audio 0x34
[01:21:05] scan: decoding previews for title 1
[01:21:05] scan: audio 0x34: AC-3, rate=48000Hz, bitrate=384000 Francais (AC3) (5.1 ch)
Scanning title 1...
Scanning title 1...
[01:21:05] scan: 10 previews, 1920x1080, 29.970 fps, autocrop = 132/48/0/0, aspect 16:9, PAR 1:1
[01:21:05] stream: 17 good frames, 0 errors (0%)
[01:21:05] libhb: scan thread found 1 valid title(s)
+ title 1:
  + stream: M:\TV\TéléQuébec\Question de Société\Pas de Piquerie dans mon Quartier 20130121 (debut+fin).ts
  + duration: 00:52:00
  + size: 1920x1080, pixel aspect: 1/1, display aspect: 1.78, 29.970 fps
  + autocrop: 132/48/0/0
  + chapters:
    + 1: cells 0->0, 0 blocks, duration 00:52:00
  + audio tracks:
    + 1, Francais (AC3) (5.1 ch) (iso639-2: fra), 48000Hz, 384000bps
  + subtitle tracks:
    + 1, Closed Captions (iso639-2: fra) (Text)(CC)
[01:21:05] 1 job(s) to process
[01:21:05] starting job
[01:21:05] yadif thread started for segment 0
[01:21:05] yadif thread started for segment 1
[01:21:05] yadif thread started for segment 2
[01:21:05] yadif thread started for segment 3
[01:21:05] yadif thread started for segment 4
[01:21:05] yadif thread started for segment 5
[01:21:05] yadif thread started for segment 6
[01:21:05] decomb filter thread started for segment 1
[01:21:05] decomb filter thread started for segment 0
[01:21:05] decomb filter thread started for segment 2
[01:21:05] yadif thread started for segment 7
[01:21:05] decomb filter thread started for segment 3
[01:21:05] decomb filter thread started for segment 4
[01:21:05] decomb filter thread started for segment 5
[01:21:05] decomb filter thread started for segment 6
[01:21:05] decomb filter thread started for segment 7
[01:21:05] decomb check thread started for segment 0
[01:21:05] decomb check thread started for segment 1
[01:21:05] decomb check thread started for segment 2
[01:21:05] decomb check thread started for segment 3
[01:21:05] decomb check thread started for segment 4
[01:21:05] decomb check thread started for segment 5
[01:21:05] decomb check thread started for segment 6
[01:21:05] decomb check thread started for segment 7
[01:21:05] mask filter thread started for segment 0
[01:21:05] mask filter thread started for segment 1
[01:21:05] mask filter thread started for segment 2
[01:21:05] mask filter thread started for segment 3
[01:21:05] mask filter thread started for segment 4
[01:21:05] mask filter thread started for segment 5
[01:21:05] mask filter thread started for segment 6
[01:21:05] mask filter thread started for segment 7
[01:21:05] mask erode thread started for segment 0
[01:21:05] mask erode thread started for segment 1
[01:21:05] mask erode thread started for segment 2
[01:21:05] mask erode thread started for segment 3
[01:21:05] mask erode thread started for segment 4
[01:21:05] mask erode thread started for segment 5
[01:21:05] mask erode thread started for segment 6
[01:21:05] mask erode thread started for segment 7
[01:21:05] mask dilate thread started for segment 0
[01:21:05] mask dilate thread started for segment 1
[01:21:05] mask dilate thread started for segment 2
[01:21:05] mask dilate thread started for segment 3
[01:21:05] mask dilate thread started for segment 4
[01:21:05] mask dilate thread started for segment 5
[01:21:05] mask dilate thread started for segment 6
[01:21:05] mask dilate thread started for segment 7
[01:21:05] sync: expecting 93508 video frames
[01:21:05] job configuration:
[01:21:05]  * source
[01:21:05]    + M:\TV\TéléQuébec\Question de Société\Pas de Piquerie dans mon Quartier 20130121 (debut+fin).ts
[01:21:05]    + title 1, chapter(s) 1 to 1
[01:21:05]  * destination
[01:21:05]    + M:\TV\TéléQuébec\Question de Société\Pas de Piquerie dans mon Quartier 20130121 (debut+fin) decomb detel cfr23976 rf20.mkv
[01:21:05]    + container: Matroska (.mkv)
[01:21:05]  * video track
[01:21:05]    + decoder: mpeg2
[01:21:05]      + bitrate 17700 kbps
[01:21:05]    + frame rate: 29.970 fps -> constant 23.976 fps
[01:21:05]    + filters
[01:21:05]      + Detelecine (pullup) (default settings)
[01:21:05]      + Decomb (default settings)
[01:21:05]      + Framerate Shaper (1:27000000:1126125)
[01:21:05]        + frame rate: 23.976 fps -> constant 23.976 fps
[01:21:05]      + Crop and Scale (1280:720:0:0:0:0)
[01:21:05]        + source: 1920 * 1080, crop (0/0/0/0): 1920 * 1080, scale: 1280 * 720
[01:21:05]    + loose anamorphic
[01:21:05]      + storage dimensions: 1280 * 720, mod 16
[01:21:05]      + pixel aspect ratio: 1 / 1
[01:21:05]      + display dimensions: 1280 * 720
[01:21:05]    + encoder: H.264 (x264)
[01:21:05]      + x264 preset: veryslow
[01:21:05]      + options: bframes=5:merange=16
[01:21:05]      + x264 profile: high
[01:21:05]      + h264 level: 3.1
[01:21:05]      + quality: 20.00 (RF)
[01:21:05]  * subtitle track 1, Closed Captions (track 0, id 0x0) Text [CC] -> Passthrough
[01:21:05]  * audio track 1
[01:21:05]    + decoder: Francais (AC3) (5.1 ch) (track 1, id 0x34)
[01:21:05]      + bitrate: 384 kbps, samplerate: 48000 Hz
[01:21:05]    + mixdown: 5.1 Channels
[01:21:05]    + encoder: AC3 (ffmpeg)
[01:21:05]      + bitrate: 256 kbps, samplerate: 48000 Hz
[01:21:05] file is MPEG Transport Stream with 188 byte packets offset 0 bytes
[01:21:05] reader: first SCR 914 id 0x34 DTS 34114
[01:21:05] encx264: min-keyint: 24, keyint: 240
[01:21:05] encx264: encoding with stored aspect 1/1
[01:21:05] encx264: Encoding at constant RF 20.000000
x264 [warning]: --psnr used with psy on: results will be invalid!
x264 [warning]: --tune psnr should be used if attempting to benchmark psnr!
x264 [info]: using SAR=1/1
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE4.2 AVX
x264 [info]: profile High, level 3.1
[01:21:05] mpeg2: "Chapter 1" (1) at frame 0 time 0
[02:13:27] hb_ts_stream_decode - eof
[02:13:27] reader: done. 1 scr changes
[02:13:28] work: average encoding speed for job is 29.751650 fps
[02:13:29] sync: got 93504 frames, 93508 expected
[02:13:29] decomb: deinterlaced 74 | blended 504 | unfiltered 92913 | total 93491
[02:13:29] render: 74803 frames output, 18688 dropped and 0 duped for CFR/PFR
[02:13:29] render: lost time: 36036 (0 frames)
[02:13:29] render: gained time: 36036 (48 frames) (0 not accounted for)
[02:13:29] mpeg2 done: 93504 frames
x264 [info]: frame I:432   Avg QP:17.86  size: 55058  PSNR Mean Y:49.51 U:53.38 V:53.51 Avg:50.39 Global:49.93
x264 [info]: frame P:16588 Avg QP:21.17  size: 16744  PSNR Mean Y:47.41 U:51.95 V:52.07 Avg:48.39 Global:47.93
x264 [info]: frame B:57783 Avg QP:24.05  size:  4224  PSNR Mean Y:46.53 U:51.80 V:51.92 Avg:47.61 Global:46.92
x264 [info]: consecutive B-frames:  1.9%  1.3%  9.1% 15.8% 37.3% 34.7%
x264 [info]: mb I  I16..4: 30.5% 57.9% 11.6%
x264 [info]: mb P  I16..4:  1.7%  5.7%  0.5%  P16..4: 35.2% 10.8%  7.7%  0.1%  0.0%    skip:38.2%
x264 [info]: mb B  I16..4:  0.1%  0.4%  0.0%  B16..8: 24.9%  3.8%  0.7%  direct: 2.4%  skip:67.7%  L0:44.1% L1:50.3% BI: 5.6%
x264 [info]: 8x8 transform intra:68.2% inter:76.6%
x264 [info]: direct mvs  spatial:99.9% temporal:0.1%
x264 [info]: coded y,uvDC,uvAC intra: 62.3% 54.6% 16.3% inter: 11.1% 8.2% 0.1%
x264 [info]: i16 v,h,dc,p: 50% 18%  7% 25%
x264 [info]: i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 10% 11%  6%  8% 13% 12% 15% 11% 14%
x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 10% 16%  5%  7% 13% 12% 14%  9% 13%
x264 [info]: i8c dc,h,v,p: 36% 31% 18% 15%
x264 [info]: Weighted P-Frames: Y:1.8% UV:0.4%
x264 [info]: ref P L0: 47.3% 10.9% 21.9%  9.1%  9.1%  1.7%  0.0%
x264 [info]: ref B L0: 73.2% 18.3%  6.2%  2.3%
x264 [info]: ref B L1: 92.4%  7.6%
x264 [info]: SSIM Mean Y:0.9882417 (19.297db)
x264 [info]: PSNR Mean Y:46.746 U:51.844 V:51.965 Avg:47.800 Global:47.140 kb/s:1399.11
[02:13:29] mux: track 0, 74803 frames, 545620672 bytes, 1399.03 kbps, fifo 4096
[02:13:29] mux: track 1, 97500 frames, 99840000 bytes, 256.00 kbps, fifo 8192
[02:13:29] mux: track 2, 873 frames, 40712 bytes, 0.10 kbps, fifo 64
[02:13:29] stream: 93507 good frames, 0 errors (0%)
[02:13:29] libhb: work result = 0
Encode done!
HandBrake has exited.

I will try with OpenCL unchecked
wish I didn't have to 'install' every time I test ... can I just unzip each version in a different location and run from that location ?
or use the CLI ;o)

BTW The Help About? is a pandora box ....
HandyMan
Bright Spark User
Posts: 169
Joined: Tue Aug 07, 2012 10:52 pm

Re: OpenCL Nightly Builds

Post by HandyMan »

The encode is clean without cropping. Crop breaks it.
User avatar
s55
HandBrake Team
Posts: 10360
Joined: Sun Dec 24, 2006 1:05 pm

Re: OpenCL Nightly Builds

Post by s55 »

Is there any chance you could upload a small cut down sample that triggers this. I don't seem to get it myself.
HandyMan
Bright Spark User
Posts: 169
Joined: Tue Aug 07, 2012 10:52 pm

Re: OpenCL Nightly Builds

Post by HandyMan »

s55 wrote:Is there any chance you could upload a small cut down sample that triggers this. I don't seem to get it myself.
For me any cropping will trigger this on ts file
User avatar
s55
HandBrake Team
Posts: 10360
Joined: Sun Dec 24, 2006 1:05 pm

Re: OpenCL Nightly Builds

Post by s55 »

I can't seem to re-create with the samples I have to hand. I'm guessing it's something particular to yours that triggers it. Maybe it's to do with resolution or aspect ratio or something that's causing some math to go bad.

Yeh, CLI from 2 separate folders is the best way, or just swap out handbrakecli from the install directory.
User avatar
s55
HandBrake Team
Posts: 10360
Joined: Sun Dec 24, 2006 1:05 pm

Re: OpenCL Nightly Builds

Post by s55 »

I can't seem to re-create with the samples I have to hand. I'm guessing it's something particular to yours that triggers it. Maybe it's to do with resolution or aspect ratio or something that's causing some math to go bad.

Yeh, CLI from 2 separate folders is the best way, or just swap out handbrakecli from the install directory.
HandyMan
Bright Spark User
Posts: 169
Joined: Tue Aug 07, 2012 10:52 pm

Re: OpenCL Nightly Builds

Post by HandyMan »

s55 wrote:What about the normal nightly? What about with opencl unchecked.
This is with cropping and OpenCL unchecked
Encode is ok

Code: Select all

HandBrake svn5193 2013012201
OS: Microsoft Windows NT 6.1.7601 Service Pack 1
CPU: Intel(R) Core(TM) i7-2600K CPU @ 3.40GHz
Ram: 8089 MB, Screen: 1920x1080
GPU: Intel(R) HD Graphics 3000
GPU driver version: 9.17.10.2897
Temp Dir: C:\Users\Simon\AppData\Local\Temp\
Install Dir: C:\Program Files\Handbrake
Data Dir: C:\Users\Simon\AppData\Roaming\HandBrake\HandBrake\0.9.8.5177

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

CLI Query:  -i "M:\TV\TéléQuébec\Question de Société\Pas de Piquerie dans mon Quartier 20130121 (debut+fin).ts" -t 1 --angle 1 --start-at duration:0 --stop-at duration:301 -o "M:\TV\TéléQuébec\Question de Société\Pas Mod16.mkv"  -f mkv  -w 1280 --crop 0:0:0:0 --loose-anamorphic  --modulus 16 -e x264 -q 20 --vfr -a 1 -E copy:ac3 -6 auto -R Auto -B 0 -D 0 --gain 0 --audio-fallback ffac3 --markers="C:\Users\Simon\AppData\Local\Temp\Pas Mod16-1-chapters.csv" --x264-profile=high  --h264-level="4.1"  --verbose=1
User Query: False

[15:38:40] hb_init: starting libhb thread
[15:38:40] Notice: No available GPU device.
HandBrake svn5193 (2013012201) - MinGW x86_64 - http://handbrake.fr
8 CPUs detected
Opening M:\TV\TéléQuébec\Question de Société\Pas de Piquerie dans mon Quartier 20130121 (debut+fin).ts...
[15:38:40] hb_scan: path=M:\TV\TéléQuébec\Question de Société\Pas de Piquerie dans mon Quartier 20130121 (debut+fin).ts, title_index=1
libbluray/bdnav/index_parse.c:162: indx_parse(): error opening M:\TV\TéléQuébec\Question de Société\Pas de Piquerie dans mon Quartier 20130121 (debut+fin).ts/BDMV/index.bdmv
libbluray/bdnav/index_parse.c:162: indx_parse(): error opening M:\TV\TéléQuébec\Question de Société\Pas de Piquerie dans mon Quartier 20130121 (debut+fin).ts/BDMV/BACKUP/index.bdmv
libbluray/bluray.c:1725: nav_get_title_list(M:\TV\TéléQuébec\Question de Société\Pas de Piquerie dans mon Quartier 20130121 (debut+fin).ts) failed (0000000001cb52c0)
[15:38:40] bd: not a bd - trying as a stream/file instead
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
[15:38:40] dvd: not a dvd - trying as a stream/file instead
[15:38:40] file is MPEG Transport Stream with 188 byte packets offset 0 bytes
[15:38:40] Found the following PIDS
[15:38:40]     Video PIDS : 
[15:38:40]       0x31 type MPEG2 (0x2) (PCR)
[15:38:40]     Audio PIDS : 
[15:38:40]       0x34 type AC3 (0x81)
[15:38:40]     Subtitle PIDS : 
[15:38:40]     Other PIDS : 
[15:38:40] stream id 0x34 (type 0x81 substream 0x0) audio 0x34
[15:38:40] dxva2:DxFindVideoServiceConversion failed
[15:38:40] scan: decoding previews for title 1
[15:38:40] scan: audio 0x34: AC-3, rate=48000Hz, bitrate=384000 Francais (AC3) (5.1 ch)
Scanning title 1...
[15:38:40] scan: 10 previews, 1920x1080, 29.970 fps, autocrop = 132/48/0/0, aspect 16:9, PAR 1:1
[15:38:40] stream: 17 good frames, 0 errors (0%)
[15:38:40] libhb: scan thread found 1 valid title(s)
+ title 1:
  + stream: M:\TV\TéléQuébec\Question de Société\Pas de Piquerie dans mon Quartier 20130121 (debut+fin).ts
  + duration: 00:52:00
  + size: 1920x1080, pixel aspect: 1/1, display aspect: 1.78, 29.970 fps
  + autocrop: 132/48/0/0
  + support opencl: yes
  + support uvd: no
  + chapters:
    + 1: cells 0->0, 0 blocks, duration 00:52:00
  + audio tracks:
    + 1, Francais (AC3) (5.1 ch) (iso639-2: fra), 48000Hz, 384000bps
  + subtitle tracks:
    + 1, Closed Captions (iso639-2: fra) (Text)(CC)
Reading chapter markers from file C:\Users\Simon\AppData\Local\Temp\Pas Mod16-1-chapters.csv
[15:38:40] 1 job(s) to process
[15:38:40] starting job
[15:38:40] Using GPU : NO.
[15:38:40] sync: expecting 9050 video frames
[15:38:40] work: only 1 chapter, disabling chapter markers
[15:38:40] job configuration:
[15:38:40]  * source
[15:38:40]    + M:\TV\TéléQuébec\Question de Société\Pas de Piquerie dans mon Quartier 20130121 (debut+fin).ts
[15:38:40]    + title 1, start 0:0:0.00 stop 0:5:1.00
[15:38:40]  * destination
[15:38:40]    + M:\TV\TéléQuébec\Question de Société\Pas Mod16.mkv
[15:38:40]    + container: Matroska (.mkv)
[15:38:40]  * video track
[15:38:40]    + decoder: mpeg2
[15:38:40]      + bitrate 17700 kbps
[15:38:40]    + frame rate: same as source (around 29.970 fps)
[15:38:40]    + filters
[15:38:40]      + Framerate Shaper (0:27000000:900900)
[15:38:40]        + frame rate: same as source (around 29.970 fps)
[15:38:40]      + Crop and Scale (1280:720:0:0:0:0)
[15:38:40]        + source: 1920 * 1080, crop (0/0/0/0): 1920 * 1080, scale: 1280 * 720
[15:38:40]    + loose anamorphic
[15:38:40]      + storage dimensions: 1280 * 720, mod 16
[15:38:40]      + pixel aspect ratio: 1 / 1
[15:38:40]      + display dimensions: 1280 * 720
[15:38:40]    + encoder: H.264 (x264)
[15:38:40]      + x264 profile: high
[15:38:40]      + h264 level: 4.1
[15:38:40]      + quality: 20.00 (RF)
[15:38:40]  * audio track 1
[15:38:40]    + decoder: Francais (AC3) (5.1 ch) (track 1, id 0x34)
[15:38:40]      + bitrate: 384 kbps, samplerate: 48000 Hz
[15:38:40]    + AC3 Passthru
[15:38:40] file is MPEG Transport Stream with 188 byte packets offset 0 bytes
[15:38:40] reader: first SCR 914 id 0x34 DTS 34114
[15:38:40] encx264: min-keyint: 30, keyint: 300
[15:38:40] encx264: encoding with stored aspect 1/1
[15:38:40] encx264: Encoding at constant RF 20.000000
x264 [warning]: --psnr used with psy on: results will be invalid!
x264 [warning]: --tune psnr should be used if attempting to benchmark psnr!
x264 [info]: using SAR=1/1
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE4.2 AVX
[15:38:40] mpeg2: "Chapter 1" (1) at frame 0 time 0
x264 [info]: profile High, level 4.1
[15:40:42] sync: reached pts 27090063, exiting early
[15:40:43] work: average encoding speed for job is 74.171043 fps
[15:40:43] reader: done. 1 scr changes
[15:40:43] sync: got 9021 frames, 9050 expected
[15:40:43] render: lost time: 0 (0 frames)
[15:40:43] render: gained time: 0 (0 frames) (0 not accounted for)
[15:40:43] mpeg2 done: 9203 frames
x264 [info]: frame I:53    Avg QP:15.96  size: 45133  PSNR Mean Y:49.84 U:53.95 V:54.07 Avg:50.74 Global:49.63
x264 [info]: frame P:4696  Avg QP:21.65  size: 13528  PSNR Mean Y:46.45 U:51.05 V:51.12 Avg:47.43 Global:46.91
x264 [info]: frame B:4272  Avg QP:23.41  size:  2730  PSNR Mean Y:46.38 U:52.23 V:52.42 Avg:47.45 Global:46.42
x264 [info]: consecutive B-frames: 23.9% 35.5% 10.0% 30.6%
x264 [info]: mb I  I16..4: 29.9% 56.3% 13.8%
x264 [info]: mb P  I16..4:  1.3%  3.4%  0.3%  P16..4: 39.0% 11.4%  5.8%  0.0%  0.0%    skip:38.8%
x264 [info]: mb B  I16..4:  0.1%  0.1%  0.0%  B16..8: 24.1%  1.7%  0.2%  direct: 0.9%  skip:72.9%  L0:41.4% L1:53.3% BI: 5.3%
x264 [info]: 8x8 transform intra:65.3% inter:80.9%
x264 [info]: coded y,uvDC,uvAC intra: 56.5% 64.2% 19.2% inter: 16.1% 19.4% 0.2%
x264 [info]: i16 v,h,dc,p: 42% 22%  6% 31%
x264 [info]: i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 16% 19% 19%  6%  8%  7% 10%  7%  8%
x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 20% 28% 13%  5%  8%  7%  8%  5%  5%
x264 [info]: i8c dc,h,v,p: 56% 23% 15%  6%
x264 [info]: Weighted P-Frames: Y:2.4% UV:0.1%
x264 [info]: ref P L0: 59.9% 14.3% 17.5%  8.2%  0.1%
x264 [info]: ref B L0: 81.8% 15.9%  2.3%
x264 [info]: ref B L1: 96.3%  3.7%
x264 [info]: SSIM Mean Y:0.9866858 (18.757db)
x264 [info]: PSNR Mean Y:46.434 U:51.625 V:51.754 Avg:47.456 Global:46.683 kb/s:2062.09
[15:40:43] mux: track 0, 9021 frames, 77584090 bytes, 2062.03 kbps, fifo 2048
[15:40:43] mux: track 1, 9407 frames, 14449152 bytes, 384.03 kbps, fifo 2048
[15:40:43] stream: 9233 good frames, 0 errors (0%)
[15:40:43] libhb: work result = 0
Encode done!
HandBrake has exited.
HandyMan
Bright Spark User
Posts: 169
Joined: Tue Aug 07, 2012 10:52 pm

Re: OpenCL Nightly Builds

Post by HandyMan »

s55 wrote:Is there any chance you could upload a small cut down sample that triggers this. I don't seem to get it myself.
http://zalil.ru/34198335
HandyMan
Bright Spark User
Posts: 169
Joined: Tue Aug 07, 2012 10:52 pm

Re: OpenCL Nightly Builds

Post by HandyMan »

s55 wrote:I can't seem to re-create with the samples I have to hand. I'm guessing it's something particular to yours that triggers it. Maybe it's to do with resolution or aspect ratio or something that's causing some math to go bad.

Yeh, CLI from 2 separate folders is the best way, or just swap out handbrakecli from the install directory.
With WinGUI I keep Enable libhb unchecked?
User avatar
s55
HandBrake Team
Posts: 10360
Joined: Sun Dec 24, 2006 1:05 pm

Re: OpenCL Nightly Builds

Post by s55 »

Yeh, avoid using libhb, it's still very experimental at the best of times.
User avatar
s55
HandBrake Team
Posts: 10360
Joined: Sun Dec 24, 2006 1:05 pm

Re: OpenCL Nightly Builds

Post by s55 »

Thanks for the sample. I'll look into it further tomorrow, then pass on to the guys working on this if I can reproduce it.
User avatar
s55
HandBrake Team
Posts: 10360
Joined: Sun Dec 24, 2006 1:05 pm

Re: OpenCL Nightly Builds

Post by s55 »

[18:37:02] Notice: No available GPU device.
I'm guessing that's switchable graphics right? HD3000 and 6850m

Are you able to force the system to use the 6850 only to re-test? You may also want to make sure your running latest drivers.

I'm willing to bet the the HD3000 is not compatible and it's not able to get ahold of the 6850 but it still knows it's there, which is causing it to not correctly fall back to software. I'll mention it to them to see if they have any hardware like this to test with.
HandyMan
Bright Spark User
Posts: 169
Joined: Tue Aug 07, 2012 10:52 pm

Re: OpenCL Nightly Builds

Post by HandyMan »

Asus P8Z68V-Pro Gen3
I7-2600K with Intel HD 3000 onboard Driver 9.17.10.2897 for Display 3 and 4
System Boot on HD Radeon 6800 PCIe for Display 1 and 2
Catalyst 12.10, but I see 13.1 is available, will install soon

I did not install the Lucidlogix software. Is-it needed?
HandyMan
Bright Spark User
Posts: 169
Joined: Tue Aug 07, 2012 10:52 pm

Re: OpenCL Nightly Builds

Post by HandyMan »

s55 wrote:
[18:37:02] Notice: No available GPU device.

I'm willing to bet the the HD3000 is not compatible and it's not able to get ahold of the 6850 but it still knows it's there, which is causing it to not correctly fall back to software. I'll mention it to them to see if they have any hardware like this to test with.
You have nail it with the HD3000 not having OpenCL support http://downloadmirror.intel.com/22375/e ... 932_64.pdf
I will update this driver anyways
HandyMan
Bright Spark User
Posts: 169
Joined: Tue Aug 07, 2012 10:52 pm

Re: OpenCL Nightly Builds

Post by HandyMan »

s55 wrote:
[18:37:02] Notice: No available GPU device.
I'm guessing that's switchable graphics right? HD3000 and 6850m

Are you able to force the system to use the 6850 only to re-test? You may also want to make sure your running latest drivers.

I'm willing to bet the the HD3000 is not compatible and it's not able to get ahold of the 6850 but it still knows it's there, which is causing it to not correctly fall back to software. I'll mention it to them to see if they have any hardware like this to test with.
Its a discreet PCI-Express HD Radeon 6800 card
It's the default boot graphic adaptor. I might try removing the display from the Intel HD, but I guess this might not change much until I disable it in Bios.

I installed both Intel and AMD latest graphic drivers as will as latest LucidLogix driver.
Still getting green encode en resize and tons of log entries.

On the bright side I ran CLBenchmark and got similar results as these http://clbenchmark.com/compare.jsp?conf ... 1=11974129

So there is hope ;o)
plumbum
Posts: 2
Joined: Sat Jan 26, 2013 9:43 am

Re: OpenCL Nightly Builds

Post by plumbum »

When I create a queue with the x64 version and I tell it to suspend after the queue is done. My laptop doesn't shutdown. It just locks itself after the queue is done.
JDKnows
Posts: 16
Joined: Thu May 24, 2012 11:37 am

Re: OpenCL Nightly Builds

Post by JDKnows »

Nice, finally the part of program is accelerated. Those down scaling results are very tempting, hope x264 acceleration will bring similarly high boost again? Any news how long takes soon is?
User avatar
s55
HandBrake Team
Posts: 10360
Joined: Sun Dec 24, 2006 1:05 pm

Re: OpenCL Nightly Builds

Post by s55 »

There is no eta on the x264 patch.
There is currently driver issues blocking it from being submitted and from the sounds of things, it may not be feasible to fix this. I'm not sure what they'll do if it can't be solved. It's been an outstanding issue for several months now.

Gains will depend on settings. My own testing seemed to indicate that it helps with low levels of lookahead, i.e around 10. If you take our high profile preset which uses about 50, there wasn't any gain, just an increase in system power usage. :(

the x264 guys also added threaded lookahead a while ago which steals away some of the improvement numbers.

@plumbum this thread is not for issues that are not related to the opencl acceleration. If you have an issue with after encode options, raise a bug in the bugs forum and post the relevant info.
JDKnows
Posts: 16
Joined: Thu May 24, 2012 11:37 am

Re: OpenCL Nightly Builds

Post by JDKnows »

Driver issue with AMD or Intel? I assume with Intel, so they simply should leave them out of OpenCL acceleration business as long as Intel cannot make a good driver.
User avatar
s55
HandBrake Team
Posts: 10360
Joined: Sun Dec 24, 2006 1:05 pm

Re: OpenCL Nightly Builds

Post by s55 »

I don't have specifics on the issue, but it sounds like a driver interaction issue on systems with switchable graphics. (i.e an awful lot of laptops). If it was as simple as preferring one over the other, it would have been fixed months ago.

Potentially it could affect HandBrake also, but I have no way of testing this.
Post Reply