bencuri
3rd November 2024, 17:12
I am trying to use the --opencl parameter during rendering with x264.exe, but it fails on my machine. I have Intel HD4000 chip. The following is written when I add the parameter to the command:
C:\Users\admin\Videos\zaiko>x264.exe --preset faster --crf 20 --opencl --outpu
t zaiko.mp4 script.avs
mp4 [info]: audio muxing feature is disabled.
Creating lwi index file 100%
avs [info]: 1920x1080p 0:0 @ 50/1 fps (cfr)
avs [info]: color matrix: undef
mp4 [info]: audio muxing feature is disabled.
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX
x264 [info]: OpenCL acceleration enabled with Intel(R) Corporation Intel(R) HD G
raphics 4000
x264 [info]: Compiling OpenCL kernels...
x264 [info]: profile High, level 4.2, 4:2:0, 8-bit
x264 [info]: opencl=1 cabac=1 ref=2 deblock=1:0:0 analyse=0x3:0x113 me=hex subme
=4 psy=1 fade_compensate=0.00 psy_rd=1.00:0.00 mixed_ref=0 me_range=16 chroma_me
=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=0 threa
ds=6 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_co
mpat=0 constrained_intra=0 fgo=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct
=1 weightb=1 open_gop=0 weightp=1 keyint=250 keyint_min=25 scenecut=40 intra_ref
resh=0 rc_lookahead=20 rc=crf mbtree=1 crf=20.0000 qcomp=0.60 qpmin=0:0:0 qpmax=
69:69:69 qpstep=4 ip_ratio=1.40 aq=1:1.00 aq-sensitivity=10.00 aq-factor=1.00:1.
00:1.00 aq2=0 aq3=0
x264 [info]: started at Sun Nov 03 16:55:05 2024
x264 [error]: OpenCL: Unknown error
x264 [error]: OpenCL: fatal error, aborting encode
x264 [error]: x264_encoder_encode failed
x264 [error]: OpenCL: Unknown error
x264 [error]: OpenCL: fatal error, aborting encode
x264 [error]: OpenCL: Unknown error
x264 [error]: OpenCL: fatal error, aborting encode
x264 [error]: OpenCL: Unknown error
x264 [error]: OpenCL: fatal error, aborting encode
x264 [error]: OpenCL: Unknown error
x264 [error]: OpenCL: fatal error, aborting encode
x264 [error]: OpenCL: Unknown error
x264 [error]: OpenCL: fatal error, aborting encode
x264 [error]: OpenCL: Unknown error
x264 [error]: OpenCL: fatal error, aborting encode
x264 [error]: OpenCL: Unknown error
x264 [error]: OpenCL: fatal error, aborting encode
x264 [error]: OpenCL: Unknown error
x264 [error]: OpenCL: fatal error, aborting encode
x264 [error]: OpenCL: Unknown error
x264 [error]: OpenCL: fatal error, aborting encode
x264 [error]: OpenCL: Unknown error
x264 [error]: OpenCL: fatal error, aborting encode
x264 [error]: OpenCL: Unknown error
x264 [error]: OpenCL: fatal error, aborting encode
x264 [error]: OpenCL: Unknown error
x264 [error]: OpenCL: fatal error, aborting encode
x264 [error]: OpenCL: Unknown error
x264 [error]: OpenCL: fatal error, aborting encode
aborted at input frame 23, output frame 0
mp4 [error]: failed to finish movie.
x264 [info]: ended at Sun Nov 03 16:55:11 2024
x264 [info]: encoding duration 0:00:06
C:\Users\admin\Videos\zaiko>x264.exe --preset faster --crf 20 --opencl --outpu
t zaiko.mp4 script.avs
C:\Users\admin\Videos\zaiko>
The X264.exe I use is either the default one from the Videolan Player website or a modified version from:
https://github.com/jpsdr/x264/releases
Without the --opencl parameter both versions work fine.
What causes the error?
C:\Users\admin\Videos\zaiko>x264.exe --preset faster --crf 20 --opencl --outpu
t zaiko.mp4 script.avs
mp4 [info]: audio muxing feature is disabled.
Creating lwi index file 100%
avs [info]: 1920x1080p 0:0 @ 50/1 fps (cfr)
avs [info]: color matrix: undef
mp4 [info]: audio muxing feature is disabled.
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX
x264 [info]: OpenCL acceleration enabled with Intel(R) Corporation Intel(R) HD G
raphics 4000
x264 [info]: Compiling OpenCL kernels...
x264 [info]: profile High, level 4.2, 4:2:0, 8-bit
x264 [info]: opencl=1 cabac=1 ref=2 deblock=1:0:0 analyse=0x3:0x113 me=hex subme
=4 psy=1 fade_compensate=0.00 psy_rd=1.00:0.00 mixed_ref=0 me_range=16 chroma_me
=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=0 threa
ds=6 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_co
mpat=0 constrained_intra=0 fgo=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct
=1 weightb=1 open_gop=0 weightp=1 keyint=250 keyint_min=25 scenecut=40 intra_ref
resh=0 rc_lookahead=20 rc=crf mbtree=1 crf=20.0000 qcomp=0.60 qpmin=0:0:0 qpmax=
69:69:69 qpstep=4 ip_ratio=1.40 aq=1:1.00 aq-sensitivity=10.00 aq-factor=1.00:1.
00:1.00 aq2=0 aq3=0
x264 [info]: started at Sun Nov 03 16:55:05 2024
x264 [error]: OpenCL: Unknown error
x264 [error]: OpenCL: fatal error, aborting encode
x264 [error]: x264_encoder_encode failed
x264 [error]: OpenCL: Unknown error
x264 [error]: OpenCL: fatal error, aborting encode
x264 [error]: OpenCL: Unknown error
x264 [error]: OpenCL: fatal error, aborting encode
x264 [error]: OpenCL: Unknown error
x264 [error]: OpenCL: fatal error, aborting encode
x264 [error]: OpenCL: Unknown error
x264 [error]: OpenCL: fatal error, aborting encode
x264 [error]: OpenCL: Unknown error
x264 [error]: OpenCL: fatal error, aborting encode
x264 [error]: OpenCL: Unknown error
x264 [error]: OpenCL: fatal error, aborting encode
x264 [error]: OpenCL: Unknown error
x264 [error]: OpenCL: fatal error, aborting encode
x264 [error]: OpenCL: Unknown error
x264 [error]: OpenCL: fatal error, aborting encode
x264 [error]: OpenCL: Unknown error
x264 [error]: OpenCL: fatal error, aborting encode
x264 [error]: OpenCL: Unknown error
x264 [error]: OpenCL: fatal error, aborting encode
x264 [error]: OpenCL: Unknown error
x264 [error]: OpenCL: fatal error, aborting encode
x264 [error]: OpenCL: Unknown error
x264 [error]: OpenCL: fatal error, aborting encode
x264 [error]: OpenCL: Unknown error
x264 [error]: OpenCL: fatal error, aborting encode
aborted at input frame 23, output frame 0
mp4 [error]: failed to finish movie.
x264 [info]: ended at Sun Nov 03 16:55:11 2024
x264 [info]: encoding duration 0:00:06
C:\Users\admin\Videos\zaiko>x264.exe --preset faster --crf 20 --opencl --outpu
t zaiko.mp4 script.avs
C:\Users\admin\Videos\zaiko>
The X264.exe I use is either the default one from the Videolan Player website or a modified version from:
https://github.com/jpsdr/x264/releases
Without the --opencl parameter both versions work fine.
What causes the error?