What happened to those OpenCL-accelerated video encoders we were all daydreaming about? Well, they're still in the works, believe it or not. The folks behind the popular x264 software encoder have been quietly plugging away at an OpenCL-accelerated version of their lookahead pipeline. Lookahead only accounts for 10-25% of the total encoding time, according to x264 lead developer Jason Garrett-Glaser, but the process allows for nearly unlimited parallelism and is relatively easy to implement in OpenCL. Re-writing all of the x264 encoder in OpenCL, by contrast, would be "very hard." Garrett-Glaser says the accelerated lookahead can increase performance by up to 40% on AMD's new Trinity APUs and by a factor of two on the latest Radeon graphics cards.
Download: http://astrataro.wordpress.com/2012/09/ ... 6688-tmod/The x264 opencl lookahead patch has been tested for months on x264dev’s IRC, but it lacked too many features compared to currect x264, e.g., the weightp was still not supported at the beginning of May. However, it is glad to see the latest patch was released on doom10 yesterday, in which most features has been implemented (but only 8-bit, high bit-depth has not been supported). So a test build should be available here.
Based on tMod+MixAQ branch (rev2197+666+30). Compiled with fprofile and win32thread, and AMD APP v2.6, which may require OpenCL v1.1 runtime to enable opencl lookahead. Lavf/ffms/swscale/interlaced was disabled, and chroma format was set to 4:2:0. Tested on AMD HD6770M and NVidia GTX460, not sure if it can run on Ivy Bridge or not.
http://forum.doom9.org/showthread.php?t=164960&page=5tMod/tMod-10bit/tMod+MixAQ/tMod+OreAQ:
Download:
x264_rev2216+688_tMod.7z : NMM、MediaFire
x264_rev2216+688_tMod-opencl.7z (test only) : NMM、MediaFire
By default uses old style progress indicator, and won’t break GUI’s progress parser. If you like r2204 style progress indicator, try --stylish, but keep careful if you are using GUIs. The difference between r2204 and this --stylish is that console title always uses old style indicator, so you won’t get meaningless raw numbers without labels on console title.
OpenCL version need --opencl to enable use of opencl lookahead. I did not test it, as it seems broken on my CCC 12.8. The last driver I successfully run it was CCC 12.3 ( or NVidia cards ), compiled with APP v2.6, but this version is compiled with APP v2.7.
http://doom10.org/index.php?topic=2247.0
Use Mediacoder with x264 Lookahead patch OpenCL
**
if mediacoder 32bit: rename file "x264_32_tMod+MixAQ-8bit-420-opencl.exe" to "x264.exe"
if mediacoder x64: rename "x264_64_tMod+MixAQ-8bit-420-opencl.exe" to "x264.exe"
** move file x264.exe to folder
mediacoder>codecs [mediacoder 32bit]
mediacoder>codecs64 [mediacoder 64bit]
** Open mediacoder, to TAB x264, boton ADVANCED-->MORE PARAMETERS, en EXTRA OPTIONS ADD comand --opencl
** Config mediacoder to encode to h264 normality
example
<< encode video 1080p 1min to h264 with encoder x264 without comand --opencl [only CPU]
time: 27 seg
fps: 122 average
CPU frecuency: 3500MHz [coretemp]
GPU frecuency: 100MHz [gpu-z]
<< encode video 1080p 1min to h264 with encoder x264 with comand --opencl [CPU+GPU]
Time: 15seg
FPS: 131 average
CPU frecuency: 3500MHz [coretemp]
GPU frecuency: 900MHz [gpu-z]