From owner-freebsd-multimedia@FreeBSD.ORG Fri Dec 7 21:57:42 2012 Return-Path: Delivered-To: multimedia@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id ABA9C9D8 for ; Fri, 7 Dec 2012 21:57:42 +0000 (UTC) (envelope-from nox@jelal.kn-bremen.de) Received: from smtp.kn-bremen.de (gelbbaer.kn-bremen.de [78.46.108.116]) by mx1.freebsd.org (Postfix) with ESMTP id 5DA278FC13 for ; Fri, 7 Dec 2012 21:57:42 +0000 (UTC) Received: by smtp.kn-bremen.de (Postfix, from userid 10) id 4524D1E00079; Fri, 7 Dec 2012 22:57:41 +0100 (CET) Received: from triton8.kn-bremen.de (noident@localhost [127.0.0.1]) by triton8.kn-bremen.de (8.14.4/8.14.4) with ESMTP id qB7Lu6x7047690; Fri, 7 Dec 2012 22:56:06 +0100 (CET) (envelope-from nox@triton8.kn-bremen.de) Received: (from nox@localhost) by triton8.kn-bremen.de (8.14.4/8.14.3/Submit) id qB7Lu5Hm047689; Fri, 7 Dec 2012 22:56:05 +0100 (CET) (envelope-from nox) Date: Fri, 7 Dec 2012 22:56:05 +0100 (CET) From: Juergen Lock Message-Id: <201212072156.qB7Lu5Hm047689@triton8.kn-bremen.de> To: andy@neu.net Subject: Re: problem with VLC and hardware acceleration X-Newsgroups: local.list.freebsd.multimedia In-Reply-To: Organization: Cc: multimedia@FreeBSD.org X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Dec 2012 21:57:42 -0000 In article you write: >FreeBSD FBSD10 10.0-CURRENT FreeBSD 10.0-CURRENT #0 r243968: Thu Dec 6 >23:43:48 EST 2012 root@FBSD10:/usr/obj/usr/src/sys/MYKERNEL amd64 > >Having a problem getting hardware acceleration running on current. I have >the following installed: ># pkg info |grep vlc >vlc-2.0.4,3 Qt4 based multimedia player and streaming >server ># pkg info |grep libva >libva-1.1.0_2 VAAPI wrapper and dummy driver > pkg info |grep libvdpa >libvdpau-0.5_1 VDPAU wrapper and tracing library ># pkg info |grep ffm >ffmpeg-0.7.13_6,1 Realtime audio/video encoder/converter and >streaming server >ffmpeg1-1.0.1 Realtime audio/video encoder/converter and >streaming server >gstreamer-ffmpeg-0.10.13 GStreamer plug-in for manipulating MPEG >video streams > >I built and rebuilt all ports with libva and libvdpau acceleration >enabled. I was able to see support compiled into the ports, but something >is still broken. I just built this system from scratch using clang, maybe >one of the ports still needs to use GCC? On my previous system with the >same hardware I was able to get this working when the base system and >ports were compiled with GCC4.2, so it leads me to believe it has >something to do with compiling ports with clang. > >Here is info from vainfo: ># vainfo >libva info: VA-API version 0.33.0 >libva info: va_getDriverName() returns 0 >libva info: Trying to open /usr/local/lib/va/nvidia_drv_video.so >libva info: va_openDriver() returns -1 >vaInitialize failed with error code -1 (unknown libva error),exit > >Not sure what to try now, any help would be appreciated. Thanks in >advance. You can test the clang theory by building for example the libva port with gcc, i.e. put USE_GCC= any in it's port Makefile. And if that doesn't help try building the libva-vdpau-driver or libvdpau ports with gcc too. And don't forget to report what you find of course... :) HTH, Juergen