let's test the students patch... go to this URL [vlc-devel] VDPAU decoder - http://mailman.videolan.org/pipermail/v ... 64220.html and find a .diff file.I've successfully installed VLC 1.0.0 (Goldeneye) with VAAPI patch (I know hardware acceleration is in place since prior to installing the patch, my CPU is about 70% for 1080i content,
Code: Select all
$ sudo git clone git://git.videolan.org/vlc.git
$ cd vlc
-- always do an update executing: $sudo git pull
$ cd extras
$ sudo git clone git://git.videolan.org/x264.git x264-trunk
$ cd x264-trunk
-- always do an update executing: $sudo git pull
$ sudo make distclean
$ sudo ./configure --prefix=/usr
$ sudo make
$ ls -alh /usr/include/vdpau
***** it should being presenting something like this
-r--r--r-- 1 root root 149K 2009-08-21 19:51 vdpau.h
-r--r--r-- 1 root root 5,9K 2009-08-21 19:51 vdpau_x11.h
$ ls -alh /usr/lib/libvdpau*
***** it should being presenting something like this
lrwxrwxrwx 1 root root 28 2009-08-21 19:51 /usr/lib/libvdpau_nvidia.so -> libvdpau_nvidia.so.185.18.36
-rwxr-xr-x 1 root root 1,4M 2009-08-21 19:51 /usr/lib/libvdpau_nvidia.so.185.18.36
lrwxrwxrwx 1 root root 13 2009-08-21 19:51 /usr/lib/libvdpau.so -> libvdpau.so.1
lrwxrwxrwx 1 root root 21 2009-08-21 19:51 /usr/lib/libvdpau.so.1 -> libvdpau.so.185.18.36
-rwxr-xr-x 1 root root 3,6K 2009-08-21 19:51 /usr/lib/libvdpau.so.185.18.36
lrwxrwxrwx 1 root root 27 2009-08-21 19:51 /usr/lib/libvdpau_trace.so -> libvdpau_trace.so.185.18.36
-rwxr-xr-x 1 root root 49K 2009-08-21 19:51 /usr/lib/libvdpau_trace.so.185.18.36
$ cd ..
$ sudo svn checkout svn://svn.ffmpeg.org/ffmpeg/trunk ffmpeg
$ cd ffmpeg
***** always do an update executing: $sudo svn update
$ sudo make distclean
$ sudo ./configure --prefix=/usr --enable-gpl --enable-pthreads --enable-libmp3lame --enable-libfaac --enable-vdpau --enable-nonfree | grep vdpau
***** it should being presented something like this: h264_vdpau mpeg1_vdpau mpeg_vdpau wmv3_vdpau vc1_vdpau
$ sudo make
$ cd ../..
***** get the patch from http://mailman.videolan.org/pipermail/vlc-devel/2009-August/064220.html
$ sudo patch -R -p1 -i attachment-0001.diff
$ sudo ./bootstrap
$ sudo mkdir build
$ cd build
***** always perform $ sudo make distclean
$ sudo ../configure --prefix=/usr --enable-x11 --enable-xvideo --enable-snapshot --enable-debug --enable-dbus-control --enable-mozilla --enable-lirc --enable-qt4 --disable-live555 --enable-x264 --with-x264-tree=../extras/x264-trunk --enable-shout --enable-taglib --enable-v4l2 --enable-cddax --enable-dvb --enable-vcdx --disable-realrtsp --disable-svg --enable-dvdread --disable-dc1394 --disable-dv --disable-theora --enable-faad --enable-twolame --disable-real --enable-flac --enable-tremor --disable-quicktime --enable-dirac --enable-skins2 --enable-ncurses --enable-aa --enable-caca --enable-alsa --disable-portaudio --enable-jack --enable-xosd --disable-goom --enable-ggi --disable-cddax --disable-vcdx --enable-release --enable-speex --enable-fribidi --enable-freetype --disable-mkv --disable-theora --disable-vorbis --disable-ogg --enable-dvdnav --enable-libmpeg2 --enable-a52 --enable-dvbpsi --enable-mad --enable-swscale --enable-avformat --enable-avcodec --enable-sdl --enable-run-as-root --enable-vlm --enable-pvr --enable-bonjour --enable-opengl
***** it should being presented something like below. See vdpau in the last lines.
<...>
config.status: creating vlc-config
Enabled modules: a52tofloat32 a52tospdif aa access_alsa access_jack access_mmap access_oss access_output_shout access_smb adjust alphamask alsa aout_file aout_sdl atmo audio_format audioscrobbler avcodec avformat bandlimited_resampler blend blendbench bluescreen bonjour caca canvas cdda chain clone cmml colorthres converter_float crop croppadd dbus deinterlace dirac dolby_surround_decoder dtstospdif dvb dvb dvdnav dvdread dynamicoverlay equalizer erase extract faad fake fb flac float32_mixer folder freetype gaussianblur gestures ggi globalhotkeys glx gnutls gradient grain hal headphone_channel_mixer hotkeys http i420_rgb_mmx i420_rgb_sse2 i420_ymga i420_ymga_mmx i420_yuy2 i420_yuy2_mmx i420_yuy2_sse2 i422_i420 i422_yuy2 i422_yuy2_mmx i422_yuy2_sse2 inhibit invert jack libmpeg2 linear_resampler lirc logo magnify marq memcpy3dn memcpymmx memcpymmxext mirror mod mosaic motion motionblur motiondetect mozilla mpc mpgatofixed32 mux_ogg mux_ts ncurses noise normvol notify opengl opengl osd_parser osdmenu oss param_eq png podcast postproc psychedelic pulse puzzle pvr qt4 rc remoteosd ripple rotate rss rv32 sap scale scaletempo scene screensaver sdl_image sharpen shout showintf signals simple_channel_mixer skins2 snapshot spatializer spdif_mixer speex stream_out_raop swscale taglib telepathy telnet telx transform ts twolame unzip v4l2 vcd vdpau vdpau visual vmem vout_sdl wall wave x264 xcb xcb_screen xcb_window xcb_xv xml yuv yuvp yuy2_i420 yuy2_i422 zip
$ sudo make
$ sudo make install
I also get this behaviour when using VLC 1.0 with VAAPI patch and VDPAU backend when playing h.264 UDP streams (it seems to not happen when playing h.264 files). Lots of jittering... Any idea why?Hi,
I've successfully installed VLC 1.0.0 (Goldeneye) with VAAPI patch (I know hardware acceleration is in place since prior to installing the patch, my CPU is about 70% for 1080i content, whereas now it's around 20%), however, I seem to have problem playing 720p and 1080p contents. Although in both cases, CPU usage is pretty low (~25% for 720p and ~ 50% for 1080p), I got these very blocky videos -- it's worst when there's motion.
Does this mean there's something wrong with my installation? Or there's some configuration(s) that needs to be set?
Thanks!
i followed your howto right to the final "make" (i never thought to get that far), but unfortunately this make stops with an error:Keep in mind, this is a DRAFT HOWTO in version v0.0.0.0.0.0.0.0.1.
Code: Select all
make[6]: *** [libvdpau_plugin_la-video.lo] Error 1
make[6]: Leaving directory `/home/nas/Desktop/vlc/build/modules/codec/vdpau'
make[5]: *** [all] Error 2
make[5]: Leaving directory `/home/nas/Desktop/vlc/build/modules/codec/vdpau'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/home/nas/Desktop/vlc/build/modules/codec'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/home/nas/Desktop/vlc/build/modules/codec'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/nas/Desktop/vlc/build/modules'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/nas/Desktop/vlc/build'
make: *** [all] Error 2
Code: Select all
libtool: compile: gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../../../../modules/codec/vdpau -I../../.. -I../../../../include -I../../../include -DSYS_LINUX -D_FILE_OFFSET_BITS=64 -D__USE_UNIX98 -D_LARGEFILE64_SOURCE -D_REENTRANT -D_THREAD_SAFE -DDEBUG -DHAVE_RELEASE -D__LIBVLC__ -D__PLUGIN__ -DMODULE_NAME=vdpau -DMODULE_NAME_IS_vdpau -DMODULE_STRING=\"vdpau\" -g -O2 -ffast-math -funroll-loops -mtune=pentium2 -Werror=unused-function -Werror=unused-label -Werror=unused-value -Werror=unused-parameter -Werror=unused-variable -Werror=unused -Werror=missing-braces -Werror=nonnull -Werror=parentheses -Werror=address -Werror=undef -Werror=comment -Werror=switch -Werror=bad-function-cast -Werror=implicit -Werror=sequence-point -Werror=strict-aliasing -Werror=array-bounds -Werror=missing-parameter-type -Werror=overflow -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -Werror=div-by-zero -Werror=overflow -Wall -Wextra -Wsign-compare -Wundef -Wpointer-arith -Wbad-function-cast -Wcast-align -Wwrite-strings -Wmissing-prototypes -Wvolatile-register-var -Werror-implicit-function-declaration -pipe -MT libvdpau_plugin_la-video.lo -MD -MP -MF .deps/libvdpau_plugin_la-video.Tpo -c ../../../../modules/codec/vdpau/video.c -fPIC -DPIC -o .libs/libvdpau_plugin_la-video.o
../../../../modules/codec/vdpau/video.c:40:44: error: src/video_output/vout_pictures.h: No such file or directory
../../../../modules/codec/vdpau/video.c:93: warning: ‘AVPaletteControl’ is deprecated
../../../../modules/codec/vdpau/video.c:140: warning: ‘AVPaletteControl’ is deprecated
../../../../modules/codec/vdpau/video.c:234: warning: no previous prototype for ‘debug_vdp_status’
../../../../modules/codec/vdpau/video.c:243: warning: no previous prototype for ‘error_vdp_status’
../../../../modules/codec/vdpau/video.c: In function ‘ffmpeg_PreemptionCallback’:
../../../../modules/codec/vdpau/video.c:253: error: unused parameter ‘device’
../../../../modules/codec/vdpau/video.c: In function ‘ffmpeg_reinitialize_decoder’:
../../../../modules/codec/vdpau/video.c:277: warning: passing argument 1 of ‘error_vdp_status’ discards qualifiers from pointer target type
../../../../modules/codec/vdpau/video.c:277: warning: passing argument 2 of ‘error_vdp_status’ discards qualifiers from pointer target type
../../../../modules/codec/vdpau/video.c:292: warning: passing argument 2 of ‘p_sys->pf_vdp_preemption_callback_register’ from incompatible pointer type
../../../../modules/codec/vdpau/video.c:293: warning: passing argument 1 of ‘error_vdp_status’ discards qualifiers from pointer target type
../../../../modules/codec/vdpau/video.c:293: warning: passing argument 2 of ‘error_vdp_status’ discards qualifiers from pointer target type
../../../../modules/codec/vdpau/video.c: In function ‘ffmpeg_OpenVDPAU’:
../../../../modules/codec/vdpau/video.c:1028: warning: passing argument 2 of ‘p_sys->pf_vdp_preemption_callback_register’ from incompatible pointer type
../../../../modules/codec/vdpau/video.c:1032: warning: passing argument 1 of ‘error_vdp_status’ discards qualifiers from pointer target type
../../../../modules/codec/vdpau/video.c:1032: warning: passing argument 2 of ‘error_vdp_status’ discards qualifiers from pointer target type
../../../../modules/codec/vdpau/video.c: In function ‘ffmpeg_CopyPicture’:
../../../../modules/codec/vdpau/video.c:1085: warning: comparison between pointer and integer
../../../../modules/codec/vdpau/video.c:1094: warning: passing argument 1 of ‘error_vdp_status’ discards qualifiers from pointer target type
../../../../modules/codec/vdpau/video.c:1094: warning: passing argument 2 of ‘error_vdp_status’ discards qualifiers from pointer target type
../../../../modules/codec/vdpau/video.c:1111: warning: passing argument 1 of ‘error_vdp_status’ discards qualifiers from pointer target type
../../../../modules/codec/vdpau/video.c:1111: warning: passing argument 2 of ‘error_vdp_status’ discards qualifiers from pointer target type
../../../../modules/codec/vdpau/video.c:1117: warning: format ‘%d’ expects type ‘int’, but argument 5 has type ‘struct VdpBitstreamBuffer *’
../../../../modules/codec/vdpau/video.c:1127: warning: passing argument 1 of ‘error_vdp_status’ discards qualifiers from pointer target type
../../../../modules/codec/vdpau/video.c:1127: warning: passing argument 2 of ‘error_vdp_status’ discards qualifiers from pointer target type
../../../../modules/codec/vdpau/video.c:1145: warning: implicit declaration of function ‘vlc_memalign’
../../../../modules/codec/vdpau/video.c:1145: warning: assignment makes pointer from integer without a cast
../../../../modules/codec/vdpau/video.c:1153: warning: passing argument 3 of ‘p_sys->pf_vdp_video_surface_get_bits_y_cb_cr’ from incompatible pointer type
../../../../modules/codec/vdpau/video.c:1155: warning: passing argument 1 of ‘error_vdp_status’ discards qualifiers from pointer target type
../../../../modules/codec/vdpau/video.c:1155: warning: passing argument 2 of ‘error_vdp_status’ discards qualifiers from pointer target type
../../../../modules/codec/vdpau/video.c: In function ‘ffmpeg_ReGetFrameBuf’:
../../../../modules/codec/vdpau/video.c:1276: warning: comparison between signed and unsigned
../../../../modules/codec/vdpau/video.c: In function ‘vdpau_GetFreeSurface’:
../../../../modules/codec/vdpau/video.c:1436: warning: passing argument 1 of ‘error_vdp_status’ discards qualifiers from pointer target type
../../../../modules/codec/vdpau/video.c:1436: warning: passing argument 2 of ‘error_vdp_status’ discards qualifiers from pointer target type
make[6]: *** [libvdpau_plugin_la-video.lo] Error 1
make[6]: Leaving directory `/home/nas/Desktop/vlc/build/modules/codec/vdpau'
make[5]: *** [all] Error 2
make[5]: Leaving directory `/home/nas/Desktop/vlc/build/modules/codec/vdpau'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/home/nas/Desktop/vlc/build/modules/codec'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/home/nas/Desktop/vlc/build/modules/codec'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/nas/Desktop/vlc/build/modules'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/nas/Desktop/vlc/build'
make: *** [all] Error 2
Return to “VLC media player for Linux and friends Troubleshooting”
Users browsing this forum: Bing [Bot] and 7 guests