Originally Posted by
andrew.46
build last git for a test,
patch for building x264 with opencl on linux
Code:
--- a/configure 2013-04-29 21:29:38.000000000 +0200
+++ b/configure 2013-05-02 16:11:24.000000000 +0200
@@ -1115,8 +1115,8 @@
# OpenCL support is only well tested on Windows/MinGW. If you
# wish to try it on an unsupported platform, swap the lines
# below. If OpenCL breaks, you get to keep both halves
- #opencl="yes"
- opencl="no"
+ opencl="yes"
+ #opencl="no"
fi
if [ "$opencl" = "yes" ]; then
log_check "looking for perl"
@@ -1125,7 +1125,7 @@
echo 'OpenCL support requires perl to compile.'
echo 'use --disable-opencl to compile without OpenCL.'
exit 1
- elif [[ $cross_prefix != "" && $host_os == mingw* ]] ; then
+ elif [[ $host_os != mingw* ]] ; then
if cc_check "CL/cl.h" "-lOpenCL"; then
echo 'HAVE_OPENCL=yes' >> config.mak
echo 'OPENCL_LIB=OpenCL' >> config.mak
test with opencl
Code:
mc@debian64:~/develop-deb/x264_10/opencl$ ./x264 --threads 0 --opencl --bitrate 800 --preset faster --tune film -o video.mkv test.mkv
lavf [info]: 720x404p 0:1 @ 24000/1001 fps (vfr)
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.1 Cache64
x264 [info]: OpenCL acceleration enabled with NVIDIA Corporation GeForce GT 440
x264 [info]: profile High, level 3.0
x264 [info]: frame I:181 Avg QP:16.60 size: 23111
x264 [info]: frame P:3454 Avg QP:20.32 size: 6237
x264 [info]: frame B:4999 Avg QP:21.46 size: 1901
x264 [info]: consecutive B-frames: 11.7% 29.1% 12.4% 46.7%
x264 [info]: mb I I16..4: 22.3% 42.6% 35.1%
x264 [info]: mb P I16..4: 11.4% 17.3% 2.8% P16..4: 32.8% 12.4% 4.5% 0.0% 0.0% skip:18.8%
x264 [info]: mb B I16..4: 1.3% 1.5% 0.2% B16..8: 34.8% 5.9% 0.4% direct:12.0% skip:44.0% L0:42.8% L1:48.8% BI: 8.4%
x264 [info]: final ratefactor: 20.01
x264 [info]: 8x8 transform intra:52.9% inter:48.2%
x264 [info]: coded y,uvDC,uvAC intra: 49.1% 65.0% 17.6% inter: 11.0% 24.5% 0.3%
x264 [info]: i16 v,h,dc,p: 53% 20% 16% 12%
x264 [info]: i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 31% 15% 25% 4% 5% 6% 5% 5% 4%
x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 30% 15% 13% 6% 8% 9% 6% 8% 5%
x264 [info]: i8c dc,h,v,p: 50% 18% 26% 5%
x264 [info]: Weighted P-Frames: Y:4.8% UV:3.9%
x264 [info]: ref P L0: 73.6% 26.4%
x264 [info]: ref B L0: 81.7% 18.3%
x264 [info]: ref B L1: 94.9% 5.1%
x264 [info]: kb/s:782.51
encoded 8634 frames, 121.62 fps, 782.52 kb/s
without opencl
Code:
mc@debian64:~/develop-deb/x264_10/opencl$ ./x264 --threads 0 --bitrate 800 --preset faster --tune film -o video2.mkv test.mkv
lavf [info]: 720x404p 0:1 @ 24000/1001 fps (vfr)
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.1 Cache64
x264 [info]: profile High, level 3.0
x264 [info]: frame I:184 Avg QP:16.66 size: 23148
x264 [info]: frame P:3387 Avg QP:20.29 size: 6307
x264 [info]: frame B:5063 Avg QP:21.40 size: 1900
x264 [info]: consecutive B-frames: 11.8% 26.1% 12.1% 50.0%
x264 [info]: mb I I16..4: 22.4% 42.4% 35.3%
x264 [info]: mb P I16..4: 11.4% 17.3% 2.9% P16..4: 32.7% 12.4% 4.5% 0.0% 0.0% skip:18.8%
x264 [info]: mb B I16..4: 1.2% 1.5% 0.2% B16..8: 34.9% 5.8% 0.4% direct:11.9% skip:44.1% L0:42.5% L1:49.0% BI: 8.4%
x264 [info]: final ratefactor: 19.95
x264 [info]: 8x8 transform intra:52.9% inter:48.4%
x264 [info]: coded y,uvDC,uvAC intra: 49.4% 65.3% 17.7% inter: 10.9% 24.4% 0.3%
x264 [info]: i16 v,h,dc,p: 52% 20% 16% 12%
x264 [info]: i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 31% 15% 25% 4% 5% 6% 5% 5% 4%
x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 30% 16% 13% 6% 8% 9% 7% 8% 5%
x264 [info]: i8c dc,h,v,p: 50% 18% 26% 5%
x264 [info]: Weighted P-Frames: Y:4.6% UV:3.8%
x264 [info]: ref P L0: 74.2% 25.8%
x264 [info]: ref B L0: 82.2% 17.8%
x264 [info]: ref B L1: 94.8% 5.2%
x264 [info]: kb/s:782.64
encoded 8634 frames, 121.98 fps, 782.66 kb/s
no particular difference, can it be that my video card (nvidia GT 440) is not very powerful
Bookmarks