Date: Sat, 08 Jan 2011 17:11:41 +0300 From: Anonymous <swell.k@gmail.com> To: =?utf-8?Q?Micka=C3=ABl?= Maillot <mickael.maillot@gmail.com> Cc: freebsd-multimedia@freebsd.org Subject: Re: XBMC crash with vaapi vdpau Message-ID: <86wrmfcwo2.fsf@gmail.com> In-Reply-To: <AANLkTina7ScTL5AYvX%2B=L=TBm-Bm%2BWyR1fKm=P98qG30@mail.gmail.com> (=?utf-8?Q?=22Micka=C3=ABl?= Maillot"'s message of "Sat, 8 Jan 2011 14:35:54 %2B0100") References: <AANLkTina7ScTL5AYvX%2B=L=TBm-Bm%2BWyR1fKm=P98qG30@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Micka=C3=ABl Maillot <mickael.maillot@gmail.com> writes: > Hi, > > i just tried the VAAPI / VDPAU option in XBMC (trunk) but i can't play > video without crash and i don't know what can i do: > > (gdb) bt > #0 0x0000000812e0e079 in __vaDriverInit_0_31_1_sds () from > /usr/local/lib/va/nvidia_drv_video.so > #1 0x0000000812e0cd8b in __vaDriverInit_0_31_1_sds () from > /usr/local/lib/va/nvidia_drv_video.so Does vainfo crash too? And you've compiled vdpau-video without debug symbols, so no source lines. Note, you need to define empty STRIP explicitly unless you apply the diff in ports/153539. libva and vdpau-video are not the only ports affected by the issue. > also, i think we need to add two notes for the VAAPI option: > - ffmpeg need also vaapi option > - user need to install a vaapi backend (multimedia/vdpau-video) A user needs to (manually) install x11/nvidia-driver for VDPAU option, too. Should I add RUN_DEPENDS options to libvdpau/libva? %% Index: multimedia/libvdpau/Makefile =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /a/.cvsup/ports/multimedia/libvdpau/Makefile,v retrieving revision 1.1 diff -u -p -r1.1 Makefile --- multimedia/libvdpau/Makefile 24 Sep 2010 19:06:00 -0000 1.1 +++ multimedia/libvdpau/Makefile 8 Jan 2011 14:07:42 -0000 @@ -21,9 +24,17 @@ =20 LICENSE=3D MIT LICENSE_FILE=3D ${WRKSRC}/COPYING + +OPTIONS=3D NVIDIA "install Nvidia VDPAU driver" on + +.include <bsd.port.pre.mk> + +.if !defined(WITHOUT_NVIDIA) +RUN_DEPENDS+=3D ${LOCALBASE}/lib/vdpau/libvdpau_nvidia.so.1:${PORTSDIR}/x1= 1/nvidia-driver +.endif =20 post-patch: .SILENT ${REINPLACE_CMD} 's|$$(libdir)/\(pkgconfig\)|$$(prefix)/libdata/\1|' \ ${WRKSRC}/Makefile.in =20 -.include <bsd.port.mk> +.include <bsd.port.post.mk> diff --git multimedia/libva/Makefile multimedia/libva/Makefile index 9292679..49697d4 100644 --- multimedia/libva/Makefile +++ multimedia/libva/Makefile @@ -34,6 +34,8 @@ LDFLAGS+=3D -L${LOCALBASE}/lib # prevent types conflict: videodev2.h vs. drm.h CFLAGS+=3D -DHAVE_LINUX_INTEGER_TYPES =20 +OPTIONS=3D VDPAU "install VDPAU-based VAAPI driver" on + .include <bsd.port.pre.mk> =20 .if !defined(WITH_DEBUG) @@ -46,6 +48,10 @@ CFLAGS+=3D -D_DEBUG INSTALL_TARGET=3D install-strip .endif =20 +.if !defined(WITHOUT_VDPAU) +RUN_DEPENDS+=3D ${LOCALBASE}/lib/va/vdpau_drv_video.so:${PORTSDIR}/multime= dia/vdpau-video +.endif + post-patch: .SILENT ${REINPLACE_CMD} -e 's|\($$libdir\)/dri|\1/va|' \ -e 's|$${libdir}/\(pkgconfig\)|$${prefix}/libdata/\1|' \ diff --git multimedia/vdpau-video/Makefile multimedia/vdpau-video/Makefile index 5f02390..d4f340a 100644 --- multimedia/vdpau-video/Makefile +++ multimedia/vdpau-video/Makefile @@ -13,8 +13,8 @@ MASTER_SITES=3D http://www.splitted-desktop.com/~gbeauche= sne/${PORTNAME}/ MAINTAINER=3D swell.k@gmail.com COMMENT=3D A VDPAU-based backend for VAAPI =20 -LIB_DEPENDS=3D va.1:${PORTSDIR}/multimedia/libva \ - vdpau.1:${PORTSDIR}/multimedia/libvdpau +BUILD_DEPENDS=3D ${LOCALBASE}/libdata/pkgconfig/libva.pc:${PORTSDIR}/multi= media/libva +LIB_DEPENDS=3D vdpau.1:${PORTSDIR}/multimedia/libvdpau =20 LICENSE=3D GPLv2 GPLv3 LICENSE_COMB=3D dual %%
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?86wrmfcwo2.fsf>