Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Compilation mplayer-vdpau in gentoo
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
APolozov
Tux's lil' helper
Tux's lil' helper


Joined: 28 Sep 2006
Posts: 138
Location: Voronezh, Russia

PostPosted: Sat Nov 15, 2008 10:06 pm    Post subject: [SOLVED] Compilation mplayer-vdpau in gentoo Reply with quote

Nvidia release new driver (180.06) + new video-extension for ffmpeg&mplayer VDPAU (Video Decode and Presentation API for Unix) and plase pack for manualy compilation ftp://download.nvidia.com/XFree86/vdpau/mplayer-vdpau-3076399.tar.bz2

Compilation in gentoo confused.
Code:
cc -DHAVE_AV_CONFIG_H -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_ISOC9X_SOURCE -I.. -I.. -Wdisabled-optimization -Wno-pointer-sign -Wdeclaration-after-statement -std=gnu99 -I. -Wall -Wno-switch -Wpointer-arith -Wredundant-decls -O4 -march=k8 -mtune=k8 -pipe -ffast-math -fomit-frame-pointer -D_REENTRANT -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -I/usr/X11R6/include  -I/usr/include/SDL  -D_REENTRANT    -I/usr/include/freetype2 -I/usr/include/dirac     -c -o libx264.o libx264.c
libx264.c: In function 'X264_init':
libx264.c:165: error: 'x264_param_t' has no member named 'b_bframe_adaptive'
libx264.c:230: error: 'struct <anonymous>' has no member named 'b_bidir_me'
libx264.c:231: error: 'struct <anonymous>' has no member named 'b_bframe_rdo'
libx264.c:256: error: 'struct <anonymous>' has no member named 'psz_rc_eq'
make[1]: *** [libx264.o] Error 1
make[1]: Leaving directory `/home/brian/download/mplayer-vdpau-3076399/mplayer-vdpau/libavcodec'
make: *** [libavcodec/libavcodec.a] Error 2


In http://www.nvnews.net/vbulletin/showthread.php?t=123095 recomended this patch
Code:
--- ./libavcodec/libx264.c.orig 2008-11-15 23:49:30.000000000 +0300
+++ ./libavcodec/libx264.c      2008-11-15 23:52:49.000000000 +0300
@@ -162,7 +162,7 @@

     x4->params.i_bframe = avctx->max_b_frames;
     x4->params.b_cabac = avctx->coder_type == FF_CODER_TYPE_AC;
-    x4->params.b_bframe_adaptive = avctx->b_frame_strategy;
+    x4->params.i_bframe_adaptive = avctx->b_frame_strategy;
     x4->params.i_bframe_bias = avctx->bframebias;
     x4->params.b_bframe_pyramid = avctx->flags2 & CODEC_FLAG2_BPYRAMID;
     avctx->has_b_frames= avctx->flags2 & CODEC_FLAG2_BPYRAMID ? 2 : !!avctx->max_b_frames;
@@ -227,8 +227,6 @@
     x4->params.analyse.i_me_range = avctx->me_range;
     x4->params.analyse.i_subpel_refine = avctx->me_subpel_quality;

-    x4->params.analyse.b_bidir_me = avctx->bidir_refine > 0;
-    x4->params.analyse.b_bframe_rdo = avctx->flags2 & CODEC_FLAG2_BRDO;
     x4->params.analyse.b_mixed_references =
         avctx->flags2 & CODEC_FLAG2_MIXED_REFS;
     x4->params.analyse.b_chroma_me = avctx->me_cmp & FF_CMP_CHROMA;
@@ -253,7 +251,6 @@
     x4->params.rc.f_ip_factor = 1/fabs(avctx->i_quant_factor);
     x4->params.rc.f_pb_factor = avctx->b_quant_factor;
     x4->params.analyse.i_chroma_qp_offset = avctx->chromaoffset;
-    x4->params.rc.psz_rc_eq = avctx->rc_eq;

     x4->params.analyse.b_psnr = avctx->flags & CODEC_FLAG_PSNR;
     x4->params.i_log_level = X264_LOG_DEBUG;

and place --enable-vdpau after configure in script

Curent time I have this error
Code:
cc -DHAVE_AV_CONFIG_H -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_ISOC9X_SOURCE -I.. -I.. -I. -Wall -Wno-switch -Wpointer-arith -Wredundant-decls -O4 -march=native -mtune=native -pipe -ffast-math -fomit-frame-pointer -D_REENTRANT -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE    -c -o noise_bsf.o noise_bsf.c
cc -DHAVE_AV_CONFIG_H -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_ISOC9X_SOURCE -I.. -I.. -I. -Wall -Wno-switch -Wpointer-arith -Wredundant-decls -O4 -march=native -mtune=native -pipe -ffast-math -fomit-frame-pointer -D_REENTRANT -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE    -c -o remove_extradata_bsf.o remove_extradata_bsf.c
cc -DHAVE_AV_CONFIG_H -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_ISOC9X_SOURCE -I.. -I.. -I. -Wall -Wno-switch -Wpointer-arith -Wredundant-decls -O4 -march=native -mtune=native -pipe -ffast-math -fomit-frame-pointer -D_REENTRANT -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE    -c -o pthread.o pthread.c
pthread.c:46: warning: 'force_align_arg_pointer' attribute ignored
cc -DHAVE_AV_CONFIG_H -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_ISOC9X_SOURCE -I.. -I.. -I. -Wall -Wno-switch -Wpointer-arith -Wredundant-decls -O4 -march=native -mtune=native -pipe -ffast-math -fomit-frame-pointer -D_REENTRANT -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE    -c -o vdpauvideo.o vdpauvideo.c
vdpauvideo.c: In function 'VDPAU_h264_picture_complete':
vdpauvideo.c:192: error: redeclaration of 'i' with no linkage
vdpauvideo.c:180: error: previous declaration of 'i' was here
vdpauvideo.c:192: error: 'for' loop initial declaration used outside C99 mode
make[1]: *** [vdpauvideo.o] Error 1
make[1]: Leaving directory `/home/ml/mplayer-vdpau/libavcodec'
make: *** [libavcodec/libavcodec.a] Error 2


Last edited by APolozov on Sun Nov 16, 2008 12:00 pm; edited 1 time in total
Back to top
View user's profile Send private message
desultory
Administrator
Administrator


Joined: 04 Nov 2005
Posts: 9268

PostPosted: Sat Nov 15, 2008 11:39 pm    Post subject: Reply with quote

Moved from Multimedia to Unsupported Software.
Back to top
View user's profile Send private message
dodo1122
Guru
Guru


Joined: 02 Sep 2006
Posts: 347
Location: York, England

PostPosted: Sun Nov 16, 2008 1:58 am    Post subject: Reply with quote

I got this to compile on freebsd, but unforutnately it doesn't work (mplayer segfaults). I think it might be related to the fact that my card model is not on the 'supported' list (i have quadro fx 570M), but my card is based on geforce 8600M, which is on the list so this _should_ work. Maybe nvidia hardcoded model id's which work with this and forgot about my card...

dodo
_________________
#zen-sources on irc.rizon.net
Back to top
View user's profile Send private message
APolozov
Tux's lil' helper
Tux's lil' helper


Joined: 28 Sep 2006
Posts: 138
Location: Voronezh, Russia

PostPosted: Sun Nov 16, 2008 11:59 am    Post subject: Reply with quote

I finished! :-)

To compile need depending /usr/include/vdpau/*.h and /usr/lib/libvdpau* i.e. right symlinks.
After manually placing mplayer-vdpau complled and halfworked :-)

This taim compare vdpau with Xv :twisted:
Back to top
View user's profile Send private message
APolozov
Tux's lil' helper
Tux's lil' helper


Joined: 28 Sep 2006
Posts: 138
Location: Voronezh, Russia

PostPosted: Fri Nov 28, 2008 9:40 am    Post subject: Reply with quote

Nvidia present new patchset for mplayer-vdpau ftp://download.nvidia.com/XFree86/vdpau/mplayer-vdpau-3139462.tar.bz2
It's compilled without manually patching and errors. :-)
Back to top
View user's profile Send private message
Tariella
Guru
Guru


Joined: 10 Dec 2005
Posts: 377
Location: Europe/Austria

PostPosted: Mon Dec 01, 2008 1:25 pm    Post subject: Reply with quote

If you don't want to manually patch files you can use the berkano-overlay. The vdpau support (per USE-flag) for mplayer was added recently.
Back to top
View user's profile Send private message
jmartos
Tux's lil' helper
Tux's lil' helper


Joined: 23 Mar 2008
Posts: 76

PostPosted: Sun Jan 25, 2009 4:44 pm    Post subject: Reply with quote

How can I get the correct mplayer, one with vdpau support, on the berkano overlay. I am not able to select the p27960-r1 version. I only get the 9999-r21 version when I add mplayer to the package.keywords file. Any help will be appreciated.
Back to top
View user's profile Send private message
loftwyr
l33t
l33t


Joined: 29 Dec 2004
Posts: 970
Location: 43°38'23.62"N 79°27'8.60"W

PostPosted: Sun Jan 25, 2009 5:35 pm    Post subject: Reply with quote

Add the 9999 version to package.mask (or do what I did and mask everything and then unmask only the version you want.)
_________________
My emerge --info
Have you run revdep-rebuild lately? It's in gentoolkit and it's worth a shot if things don't work well.
Celebrating 5 years of Gentoo-ing.
Back to top
View user's profile Send private message
jmartos
Tux's lil' helper
Tux's lil' helper


Joined: 23 Mar 2008
Posts: 76

PostPosted: Sun Jan 25, 2009 6:18 pm    Post subject: Reply with quote

Thank you. I had to mask all other versions of mplayer to finally get the version I wanted.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum