[x264-devel] "failed to load OpenCL" when encoding for UDP stream

Christoph Kuhr christoph.kuhr at web.de
Fri Apr 10 11:30:23 CEST 2015


Hi *,

I am running on Linux Mint 17 64Bit with Low Latency Kernel 3.16.0-33.
AMD APU R-Series 464L with HD7660G. I installed Catalyst 14.5 and AMD
SDK 3.0 beta.
clinfo shows the correct CPU and GPU. x264 compiled fine with OpenCL.

I encode a webcam with 640x480 pixels at 30 fps using x264 as encoder
and avconv 11.3 as streamer.

The UDP stream works fine. Now I wanted to add OpenCL support.
I use the following command:

Command:
---------------------------------------------------------------------------------------------------------------------
avconv -f video4linux2 -re -i /dev/video0 -c:v libx264 <..other
options..> -x264-params vbv-bufsize=0:opencl=1:opencl-device=0 -f mpegts
udp://192.168.0.10:8000


Standard output:
---------------------------------------------------------------------------------------------------------------------
avconv version 11.3, Copyright (c) 2000-2014 the Libav developers
  built on Apr  8 2015 18:31:08 with gcc 4.8 (Ubuntu 4.8.2-19ubuntu1)
[video4linux2 @ 0x2b14f60] Estimating duration from bitrate, this may be
inaccurate
Input #0, video4linux2, from '/dev/video0':
  Duration: N/A, start: 237.283530, bitrate: 147456 kb/s
    Stream #0.0: Video: rawvideo, yuyv422, 640x480, 147456 kb/s, 30 fps,
1000k tbn
[libx264 @ 0x2b171e0] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2
AVX XOP FMA4 FMA3 LZCNT BMI1
[libx264 @ 0x2b171e0] failed to load OpenCL
[libx264 @ 0x2b171e0] profile Constrained Baseline, level 3.0
Output #0, mpegts, to 'udp://192.168.0.10:8000':
  Metadata:
    encoder         : Lavf56.1.0
    Stream #0.0: Video: libx264, yuv420p, 640x480, q=-1--1, 30 fps, 90k
tbn, 30 tbc
    Metadata:
      encoder         : Lavc56.1.0 libx264
Stream mapping:
  Stream #0:0 -> #0:0 (rawvideo (native) -> h264 (libx264))
Press ctrl-c to stop encoding
^C/dev/video0: Interrupted system call26kB time=11.70
bitrate=4359.4kbits/s   
frame=  355 fps= 30 q=23.0 Lsize=    6230kB time=11.80
bitrate=4325.4kbits/s   
video:5744kB audio:0kB other streams:0kB global headers:0kB muxing
overhead: 8.461096%
[libx264 @ 0x2b171e0] frame I:71    Avg QP:21.97  size: 79956
[libx264 @ 0x2b171e0] frame P:284   Avg QP:25.30  size:   723
[libx264 @ 0x2b171e0] mb I  I16..4: 100.0%  0.0%  0.0%
[libx264 @ 0x2b171e0] mb P  I16..4:  0.1%  0.0%  0.0%  P16..4: 12.6% 
0.0%  0.0%  0.0%  0.0%    skip:87.3%
[libx264 @ 0x2b171e0] coded y,uvDC,uvAC intra: 94.5% 91.5% 73.1% inter:
3.2% 3.7% 0.0%
[libx264 @ 0x2b171e0] i16 v,h,dc,p:  0% 36% 63%  0%
[libx264 @ 0x2b171e0] i8c dc,h,v,p: 79% 21%  0%  0%
[libx264 @ 0x2b171e0] kb/s:3976.74
Received signal 2: terminating.


What is going wrong and how can I solve it?

BR,
Christoph




More information about the x264-devel mailing list