Help me about VLC VDPAU via VAAPI?I'm trapped.
Posted: 27 Dec 2009 07:34
This is my operation list:
Atom ION Nvidia9400
ubuntu alternative 9.10
nvidia driver 190.53
1、Libva
tar xvf libva_0.31.0-1+sds9.tar.gz
cd libva-0.31.0
autoreconf -f -i
./configure
make
sudo make install
2、Vdpau-video
tar xvf vdpau-video-0.6.1.tar.gz
cd vdpau-video
./configure
make
sudo make install
check step 1 and step 2:
3、FFMPEG SVN version:30103
http://lists.mplayerhq.hu/pipermail/ffm ... 71061.html
patch -p0 < ffmpeg.patch
./configure --enable-vdpau --enable-shared --disable-static --enable-debug
if sth wrong like:
Please upgrade to libvdpau >= 0.2 if you would like vdpau support.
download libvdpau-0.3.tar.bz2
tar xvf libvdpau-0.3.tar.bz2
cd libvdpau-0.3
./autogen.sh
./configure
make
sudo make install
make
sudo make install
sudo ldconfig
4、VLC 1.0.0.tar.gz
http://mailman.videolan.org/pipermail/v ... 58798.html
http://mailman.videolan.org/pipermail/v ... 64220.html
Patch -p0 < vlc_vaapi_nob.patch
Patch -p0 < vlc_vdpau_nob.patch
vi modules/codec/avcodec/vaapi.c,and add following lines with prefix +=:
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig/
#This step is to find the *.pc
./configure --enable-avcodec --enable-avformat --enable-libva --enable-run-as-root --enable-debug
#here you need a lot of libs,install them
make
# Maybe skins2 or http dir is needed here,cp new version vlc tar ball #corresponding files or dir
sudo make install
But when i play MPEG2TS file,vlc outputs:
VLC media player 1.0.0 Goldeneye
[0x81191d0] main libvlc debug: VLC media player - version 1.0.0 Goldeneye - (c) 1996-2009 the VideoLAN team
[0x81191d0] main libvlc debug: libvlc was configured with ./configure '--enable-run-as-root' '--enable-avcodec' '--enable-avformat' '--enable-debug' '--enable-libva' 'PKG_CONFIG_PATH=/usr/local/lib/pkgconfig/'
[0x81191d0] main libvlc debug: translation test: code is "C"
[0x81191d0] main libvlc debug: checking plugin modules
[0x81191d0] main libvlc debug: loading plugins cache file /home/djstava/.cache/vlc/plugins-04041e.dat
[0x81191d0] main libvlc debug: recursively browsing `/usr/local/lib/vlc'
[0x81191d0] main libvlc debug: recursively browsing `/home/djstava/vlc-1.0.0/modules'
[0x81191d0] main libvlc warning: cannot load module `/home/djstava/vlc-1.0.0/modules/demux/avformat/.libs/libavformat_plugin.so' (/usr/local/lib/libavformat.so.52: undefined symbol: av_init_packet)
[0x81191d0] main libvlc warning: cannot load module `/home/djstava/vlc-1.0.0/modules/codec/avcodec/.libs/libavcodec_plugin.so' (/home/djstava/vlc-1.0.0/modules/codec/avcodec/.libs/libavcodec_plugin.so: undefined symbol: vaUnmapBuffer)
[0x81191d0] main libvlc debug: module bank initialized (324 modules)
[0x81191d0] main libvlc debug: opening config file (/home/djstava/.config/vlc/vlcrc)
[0x81191d0] main libvlc debug: CPU has capabilities 486 586 MMX MMXEXT SSE SSE2 FPU
[0x81191d0] main libvlc debug: looking for memcpy module: 3 candidates
[0x81191d0] main libvlc debug: using memcpy module "memcpymmxext"
[0x81a6938] main input debug: Creating an input for 'Media Library'
[0x81a6938] main input debug: Input is a meta file: disabling unneeded options
[0x81a6938] main input debug: using timeshift granularity of 50 MBytes
[0x81a6938] main input debug: using timeshift path '/tmp'
[0x81a6938] main input debug: `file/xspf-open:///home/djstava/.local/share/vlc/ml.xspf' gives access `file' demux `xspf-open' path `/home/djstava/.local/share/vlc/ml.xspf'
[0x81a6938] main input debug: creating demux: access='file' demux='xspf-open' path='/home/djstava/.local/share/vlc/ml.xspf'
[0x81a9cc8] main demux debug: looking for access_demux module: 0 candidates
[0x81a9cc8] main demux debug: no access_demux module matched "file"
[0x81a9cc8] main demux debug: TIMER module_need() : 0.225 ms - Total 0.225 ms / 1 intvls (Avg 0.225 ms)
[0x81a6938] main input debug: creating access 'file' path='/home/djstava/.local/share/vlc/ml.xspf'
[0x81a9f40] main access debug: looking for access module: 3 candidates
[0x81a9f40] access_file access debug: opening file `/home/djstava/.local/share/vlc/ml.xspf'
[0x81a9f40] main access debug: using access module "access_file"
[0x81a9f40] main access debug: TIMER module_need() : 1.486 ms - Total 1.486 ms / 1 intvls (Avg 1.486 ms)
[0x81a81d0] main stream debug: Using AStream*Stream
[0x81a81d0] main stream debug: pre buffering
[0x81a81d0] main stream debug: received first data after 0 ms
[0x81a81d0] main stream debug: pre-buffering done 296 bytes in 0s - 5781 kbytes/s
[0x819cd30] main stream debug: looking for stream_filter module: 4 candidates
[0x819cd30] main stream debug: TIMER module_need() : 1.307 ms - Total 1.307 ms / 1 intvls (Avg 1.307 ms)
[0x819cd30] main stream debug: looking for stream_filter module: 1 candidate
[0x819cd30] main stream debug: using stream_filter module "stream_filter_record"
[0x819cd30] main stream debug: TIMER module_need() : 0.524 ms - Total 0.524 ms / 1 intvls (Avg 0.524 ms)
[0x81a6938] main input debug: creating demux: access='file' demux='xspf-open' path='/home/djstava/.local/share/vlc/ml.xspf'
[0x819def8] main demux debug: looking for demux module: 1 candidate
[0x819def8] playlist demux debug: using XSPF playlist reader
[0x819def8] main demux debug: using demux module "playlist"
[0x819def8] main demux debug: TIMER module_need() : 0.800 ms - Total 0.800 ms / 1 intvls (Avg 0.800 ms)
[0x81a6938] main input debug: `file/xspf-open:///home/djstava/.local/share/vlc/ml.xspf' successfully opened
[0x819f388] main xml debug: looking for xml module: 1 candidate
[0x819f388] main xml debug: using xml module "xtag"
[0x819f388] main xml debug: TIMER module_need() : 0.537 ms - Total 0.537 ms / 1 intvls (Avg 0.537 ms)
[0x819def8] playlist demux debug: parsed 0 tracks successfully
[0x819f388] main xml debug: removing module "xtag"
[0x81a6938] main input debug: EOF reached
[0x819def8] main demux debug: removing module "playlist"
[0x819cd30] main stream debug: removing module "stream_filter_record"
[0x81a9f40] main access debug: removing module "access_file"
[0x81a6938] main input debug: Destroying the input for 'Media Library'
[0x81a6938] main input debug: TIMER input launching for 'Media Library' : 13.338 ms - Total 13.338 ms / 1 intvls (Avg 13.338 ms)
[0x81a6798] main playlist debug: Activated
[0x81a6798] main playlist debug: rebuilding array of current - root Playlist
[0x81a6798] main playlist debug: rebuild done - 0 items, index -1
[0x81a82e0] main interface debug: looking for interface module: 1 candidate
[0x81a82e0] main interface debug: using interface module "hotkeys"
[0x81a82e0] main interface debug: TIMER module_need() : 0.982 ms - Total 0.982 ms / 1 intvls (Avg 0.982 ms)
[0x81a82e0] main interface debug: thread (interface) created at priority 0 (interface/interface.c:151)
[0x81a82e0] main interface debug: thread started
[0x819ed80] main interface debug: looking for interface module: 1 candidate
[0x819ed80] main interface debug: using interface module "inhibit"
[0x819ed80] main interface debug: TIMER module_need() : 2.338 ms - Total 2.338 ms / 1 intvls (Avg 2.338 ms)
[0x819ed80] main interface debug: thread (interface) created at priority 0 (interface/interface.c:151)
[0x819ed80] main interface debug: thread started
[0x81a91e0] main interface debug: looking for interface module: 1 candidate
[0x81a91e0] main interface debug: using interface module "screensaver"
[0x81a91e0] main interface debug: TIMER module_need() : 0.599 ms - Total 0.599 ms / 1 intvls (Avg 0.599 ms)
[0x81a91e0] main interface debug: thread (interface) created at priority 0 (interface/interface.c:151)
[0x81a91e0] main interface debug: thread started
[0x81a6798] main playlist debug: adding item `fly.ts' ( ../fly.ts )
[0x8119528] main interface debug: looking for interface module: 1 candidate
[0x8119528] main interface debug: using interface module "signals"
[0x8119528] main interface debug: TIMER module_need() : 0.706 ms - Total 0.706 ms / 1 intvls (Avg 0.706 ms)
[0x8119528] main interface debug: thread (interface) created at priority 0 (interface/interface.c:151)
[0x8119528] main interface debug: thread started
[0x8119528] main interface debug: thread ended
[0x81a0d60] main interface debug: looking for interface module: 0 candidates
[0x81a0d60] main interface error: no interface module matched "globalhotkeys,none"
[0x81a0d60] main interface debug: TIMER module_need() : 0.274 ms - Total 0.274 ms / 1 intvls (Avg 0.274 ms)
[0x81a0d60] main interface error: no suitable interface module
[0x81191d0] main libvlc error: interface "globalhotkeys,none" initialization failed
[0x81191d0] main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
[0x81a0e30] main interface debug: looking for interface module: 3 candidates
[0x81a0e30] main interface debug: using interface module "qt4"
[0x81a0e30] main interface debug: TIMER module_need() : 153.247 ms - Total 153.247 ms / 1 intvls (Avg 153.247 ms)
[0x81a0e30] main interface debug: thread (interface) created at priority 0 (interface/interface.c:151)
[0x81a0e30] main interface debug: thread started
[0x81a0e30] main interface debug: thread ended
[0x81a6798] main playlist debug: rebuilding array of current - root Playlist
[0x81a6798] main playlist debug: rebuild done - 1 items, index -1
[0x81a6798] main playlist debug: processing request item null node Playlist skip 0
[0x81a6798] main playlist debug: starting new item
[0x81a6798] main playlist debug: creating new input thread
[0xb7400e68] main input debug: Creating an input for 'fly.ts'
[0xb7400e68] main input debug: thread (input) created at priority 10 (input/input.c:230)
[0xb7400e68] main input debug: thread started
[0xb7400e68] main input debug: using timeshift granularity of 50 MBytes
[0xb7400e68] main input debug: using timeshift path '/tmp'
[0xb7400e68] main input debug: `../fly.ts' gives access `' demux `' path `../fly.ts'
[0xb7400e68] main input debug: creating demux: access='' demux='' path='../fly.ts'
[0xb7401c20] main demux debug: looking for access_demux module: 4 candidates
[0xb7401c20] main demux debug: TIMER module_need() : 2.238 ms - Total 2.238 ms / 1 intvls (Avg 2.238 ms)
[0xb7400e68] main input debug: creating access '' path='../fly.ts'
[0x82f4710] main access debug: looking for access module: 5 candidates
[0x82f4710] vcd access debug: trying .cue file: ../fly.cue
[0x82f4710] vcd access debug: could not find .cue file
[0x81a0e30] qt4 interface debug: IM: Setting an input
[0x82f4710] access_file access debug: opening file `../fly.ts'
[0x82f4710] main access debug: using access module "access_file"
[0x82f4710] main access debug: TIMER module_need() : 1.668 ms - Total 1.668 ms / 1 intvls (Avg 1.668 ms)
[0x82f59e8] main stream debug: Using AStream*Stream
[0x82f59e8] main stream debug: pre buffering
[0x82f59e8] main stream debug: received first data after 0 ms
[0x82f59e8] main stream debug: pre-buffering done 1024 bytes in 0s - 18181 kbytes/s
[0x82f6198] main stream debug: looking for stream_filter module: 4 candidates
[0x82f6198] main stream debug: TIMER module_need() : 0.232 ms - Total 0.232 ms / 1 intvls (Avg 0.232 ms)
[0x82f6198] main stream debug: looking for stream_filter module: 1 candidate
[0x82f6198] main stream debug: using stream_filter module "stream_filter_record"
[0x82f6198] main stream debug: TIMER module_need() : 0.184 ms - Total 0.184 ms / 1 intvls (Avg 0.184 ms)
[0xb7400e68] main input debug: creating demux: access='' demux='' path='../fly.ts'
[0x82f6868] main demux debug: looking for demux module: 44 candidates
[0x81a0e30] qt4 interface debug: Updating the geometry
[0x81a0e30] qt4 interface debug: size: 117 - 374
[0x81a0e30] qt4 interface debug: sizeHint: 117 - 349
[0x81a0e30] qt4 interface debug: Updating the geometry
[0x81a0e30] qt4 interface debug: size: 117 - 374
[0x81a0e30] qt4 interface debug: sizeHint: 117 - 349
[0x82f6868] lua demux debug: Trying Lua scripts in /home/djstava/.local/share/vlc/lua/playlist
[0x82f6868] lua demux debug: Trying Lua scripts in /usr/local/share/vlc/lua/playlist
[0x82f6868] vobsub demux debug: this doesn't seem to be a vobsub file
[0x82f6868] ps demux warning: this does not look like an MPEG PS stream, continuing anyway
[0x82f6868] main demux debug: using demux module "ps"
[0x82f6868] main demux debug: TIMER module_need() : 18.777 ms - Total 18.777 ms / 1 intvls (Avg 18.777 ms)
[0xb7400e68] main input debug: looking for a subtitle file in ../
[0xb7400e68] main input debug: `../fly.ts' successfully opened
[0x82f6868] ps demux warning: garbage at input, trying to resync...
[0x82f6868] ps demux warning: found sync code
[0x82f6868] ps demux warning: garbage at input, trying to resync...
[0x82f6868] ps demux warning: found sync code
[0x82f6868] ps demux warning: garbage at input, trying to resync...
[0x82f6868] ps demux warning: found sync code
[0x82f6868] ps demux warning: garbage at input, trying to resync...
[0xb7400e68] main input debug: selecting program id=0
[0xb74040a8] main decoder debug: looking for decoder module: 22 candidates
[0xb74040a8] vdpau decoder debug: libavcodec initialized (interface 0x342d00)
[0xb74040a8] main decoder error: option ffmpeg-debug does not exist
[0xb74040a8] vdpau decoder debug: Function InitVideoDec called
[0xb74040a8] vdpau decoder debug: Chosen codec : h264_vdpau
[0xb74040a8] main decoder error: option ffmpeg-workaround-bugs does not exist
[0xb74040a8] main decoder error: option ffmpeg-error-resilience does not exist
[0x81191d0] main libvlc error: option ffmpeg-vismv does not exist
[0x81191d0] main libvlc error: option ffmpeg-lowres does not exist
[0x81191d0] main libvlc error: option ffmpeg-skiploopfilter does not exist
[0x81191d0] main libvlc error: option ffmpeg-fast does not exist
[0x81191d0] main libvlc error: option ffmpeg-hurry-up does not exist
[0x81191d0] main libvlc error: option ffmpeg-skip-frame does not exist
[0x81191d0] main libvlc error: option ffmpeg-skip-idct does not exist
[0x81191d0] main libvlc error: option ffmpeg-dr does not exist
[0xb74040a8] vdpau decoder debug: Function ffmpeg_InitCodec called
[0xb74040a8] vdpau decoder debug: Function ffmpeg_OpenCodec called
[0xb74040a8] vdpau decoder debug: ffmpeg codec (MPEG-2 Video) started
[0xb74040a8] vdpau decoder debug: Function ffmpeg_OpenVDPAU called
[0xb74040a8] vdpau decoder debug: Function LibraryLink called
[0xb74040a8] vdpau decoder debug: Function InitVDPAUFunction called
[0xb74040a8] vdpau decoder debug: Function InitVDPAUFunction called
[0xb74040a8] vdpau decoder debug: Function InitVDPAUFunction called
[0xb74040a8] vdpau decoder debug: Function InitVDPAUFunction called
[0xb74040a8] vdpau decoder debug: Function InitVDPAUFunction called
[0xb74040a8] vdpau decoder debug: Function InitVDPAUFunction called
[0xb74040a8] vdpau decoder debug: Function InitVDPAUFunction called
[0xb74040a8] vdpau decoder debug: Function InitVDPAUFunction called
[0xb74040a8] vdpau decoder debug: Function InitVDPAUFunction called
[0xb74040a8] main decoder debug: using decoder module "vdpau"
[0xb74040a8] main decoder debug: TIMER module_need() : 99.772 ms - Total 99.772 ms / 1 intvls (Avg 99.772 ms)
[0x8307b88] main packetizer debug: looking for packetizer module: 18 candidates
[0x8307b88] main packetizer debug: using packetizer module "packetizer_mpegvideo"
[0x8307b88] main packetizer debug: TIMER module_need() : 6.940 ms - Total 6.940 ms / 1 intvls (Avg 6.940 ms)
[0xb74040a8] main decoder debug: thread (decoder) created at priority 0 (input/decoder.c:315)
[0xb74040a8] main decoder debug: thread started
[0xb74040a8] vdpau decoder debug: Function DecodeVideo called
[0x8307b88] packetizer_mpegvideo packetizer debug: size 1920x1080 fps=29.970
[0x82f6868] ps demux warning: found sync code
[0xb74040a8] vdpau decoder debug: Function DecodeVideo called
[0xb74040a8] vdpau decoder debug: DecodeVideo: New while step
[0xb74040a8] vdpau decoder warning: cannot decode one frame (3844 bytes)
[0x82f6868] ps demux warning: garbage at input, trying to resync...
[0x82f6868] ps demux warning: found sync code
[0xb74040a8] vdpau decoder debug: Function DecodeVideo called
[0xb74040a8] vdpau decoder debug: DecodeVideo: New while step
[0xb74040a8] vdpau decoder warning: cannot decode one frame (48373 bytes)
[0xb74040a8] vdpau decoder debug: Function DecodeVideo called
[0xb74040a8] vdpau decoder debug: DecodeVideo: New while step
[0xb74040a8] vdpau decoder warning: cannot decode one frame (34014 bytes)
[0xb74040a8] vdpau decoder debug: Function DecodeVideo called
[0xb74040a8] vdpau decoder debug: DecodeVideo: New while step
[0xb74040a8] vdpau decoder warning: cannot decode one frame (35518 bytes)
[0x82f6868] ps demux warning: garbage at input, trying to resync...
[0x82f6868] ps demux warning: found sync code
[0xb74040a8] vdpau decoder debug: Function DecodeVideo called
[0xb74040a8] vdpau decoder debug: DecodeVideo: New while step
[0xb74040a8] vdpau decoder warning: cannot decode one frame (117369 bytes)
[0x82f6868] ps demux warning: garbage at input, trying to resync...
[0xb74040a8] vdpau decoder debug: Function DecodeVideo called
[0xb74040a8] vdpau decoder debug: DecodeVideo: New while step
[0x82f6868] ps demux warning: found sync code
[0xb74040a8] vdpau decoder warning: cannot decode one frame (47550 bytes)
[0xb74040a8] vdpau decoder debug: Function DecodeVideo called
[0xb74040a8] vdpau decoder debug: DecodeVideo: New while step
[0xb74040a8] vdpau decoder warning: cannot decode one frame (43602 bytes)
[0x82f6868] ps demux debug: es id=0xbd0b format unknown
[0x82f6868] ps demux warning: garbage at input, trying to resync...
[0xb74040a8] vdpau decoder debug: Function DecodeVideo called
[0x82f6868] ps demux warning: found sync code
[0xb74040a8] vdpau decoder debug: DecodeVideo: New while step
[0x82f6868] ps demux warning: garbage at input, trying to resync...
[0xb74040a8] vdpau decoder warning: cannot decode one frame (129025 bytes)
[0x82f6868] ps demux warning: found sync code
[0xb74040a8] vdpau decoder debug: Function DecodeVideo called
[0xb74040a8] vdpau decoder debug: DecodeVideo: New while step
[0xb74040a8] vdpau decoder warning: cannot decode one frame (44166 bytes)
[0xb74040a8] vdpau decoder debug: Function DecodeVideo called
[0xb74040a8] vdpau decoder debug: DecodeVideo: New while step
[0xb74040a8] vdpau decoder warning: cannot decode one frame (43414 bytes)
[0xb7400e68] main input debug: `../fly.ts' successfully opened
[0x82f6868] ps demux warning: garbage at input, trying to resync...
[0x82f6868] ps demux warning: found sync code
[0x82f6868] ps demux warning: garbage at input, trying to resync...
[0x82f6868] ps demux warning: found sync code
[0x82f6868] ps demux warning: garbage at input, trying to resync...
[0x82f6868] ps demux warning: found sync code
[0x82f6868] ps demux warning: garbage at input, trying to resync...
[0xb7400e68] main input debug: selecting program id=0
[0xb74040a8] main decoder debug: looking for decoder module: 22 candidates
[0xb74040a8] vdpau decoder debug: libavcodec initialized (interface 0x342d00)
[0xb74040a8] main decoder error: option ffmpeg-debug does not exist
[0xb74040a8] vdpau decoder debug: Function InitVideoDec called
[0xb74040a8] vdpau decoder debug: Chosen codec : h264_vdpau
[0xb74040a8] main decoder error: option ffmpeg-workaround-bugs does not exist
[0xb74040a8] main decoder error: option ffmpeg-error-resilience does not exist
[0x81191d0] main libvlc error: option ffmpeg-vismv does not exist
[0x81191d0] main libvlc error: option ffmpeg-lowres does not exist
[0x81191d0] main libvlc error: option ffmpeg-skiploopfilter does not exist
[0x81191d0] main libvlc error: option ffmpeg-fast does not exist
[0x81191d0] main libvlc error: option ffmpeg-hurry-up does not exist
[0x81191d0] main libvlc error: option ffmpeg-skip-frame does not exist
[0x81191d0] main libvlc error: option ffmpeg-skip-idct does not exist
[0x81191d0] main libvlc error: option ffmpeg-dr does not exist
[0xb74040a8] vdpau decoder debug: Function ffmpeg_InitCodec called
[0xb74040a8] vdpau decoder debug: Function ffmpeg_OpenCodec called
[0xb74040a8] vdpau decoder debug: ffmpeg codec (MPEG-2 Video) started
[0xb74040a8] vdpau decoder debug: Function ffmpeg_OpenVDPAU called
[0xb74040a8] vdpau decoder debug: Function LibraryLink called
It can't play the file.
Atom ION Nvidia9400
ubuntu alternative 9.10
nvidia driver 190.53
1、Libva
tar xvf libva_0.31.0-1+sds9.tar.gz
cd libva-0.31.0
Code: Select all
for i in debian/patches/*.patch;
do patch -p1 < $i;
done
./configure
make
sudo make install
2、Vdpau-video
tar xvf vdpau-video-0.6.1.tar.gz
cd vdpau-video
./configure
make
sudo make install
check step 1 and step 2:
Code: Select all
djstava@linux:~/vlc-1.0.0$ vainfo
libva: libva version 0.31.0-sds4
Xlib: extension "XFree86-DRI" missing on display ":0.0".
libva: va_getDriverName() returns 0
libva: Trying to open /usr/local/lib/va/drivers/nvidia_drv_video.so
libva: va_openDriver() returns 0
vainfo: VA API version: 0.31
vainfo: Driver version: Splitted-Desktop Systems VDPAU backend for VA API - 0.6.1
vainfo: Supported profile and entrypoint
VAProfileMPEG2Simple : VAEntrypointVLD
VAProfileMPEG2Main: VAEntrypointVLD
VAProfileH264Main: VAEntrypointVLD
VAProfileH264High: VAEntrypointVLD
VAProfileVC1Simple: VAEntrypointVLD
VAProfileVC1Main: VAEntrypointVLD
VAProfileVC1Advanced: VAEntrypointVLD
3、FFMPEG SVN version:30103
http://lists.mplayerhq.hu/pipermail/ffm ... 71061.html
patch -p0 < ffmpeg.patch
./configure --enable-vdpau --enable-shared --disable-static --enable-debug
if sth wrong like:
Please upgrade to libvdpau >= 0.2 if you would like vdpau support.
download libvdpau-0.3.tar.bz2
tar xvf libvdpau-0.3.tar.bz2
cd libvdpau-0.3
./autogen.sh
./configure
make
sudo make install
make
sudo make install
sudo ldconfig
4、VLC 1.0.0.tar.gz
http://mailman.videolan.org/pipermail/v ... 58798.html
http://mailman.videolan.org/pipermail/v ... 64220.html
Patch -p0 < vlc_vaapi_nob.patch
Patch -p0 < vlc_vdpau_nob.patch
vi modules/codec/avcodec/vaapi.c,and add following lines with prefix +=:
Code: Select all
VASurfaceID i_surface_id = (VASurfaceID)(uintptr_t)p_ff->data[3];
+#if VA_CHECK_VERSION(0,31,0)
+
if( vaSyncSurface( p_va->p_display, i_surface_id ) )
+#else
if( vaSyncSurface( p_va->p_display, p_va->i_context_id, i_surface_id ) )
+#endif
return VLC_EGENERIC;
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig/
#This step is to find the *.pc
./configure --enable-avcodec --enable-avformat --enable-libva --enable-run-as-root --enable-debug
#here you need a lot of libs,install them
make
# Maybe skins2 or http dir is needed here,cp new version vlc tar ball #corresponding files or dir
sudo make install
But when i play MPEG2TS file,vlc outputs:
VLC media player 1.0.0 Goldeneye
[0x81191d0] main libvlc debug: VLC media player - version 1.0.0 Goldeneye - (c) 1996-2009 the VideoLAN team
[0x81191d0] main libvlc debug: libvlc was configured with ./configure '--enable-run-as-root' '--enable-avcodec' '--enable-avformat' '--enable-debug' '--enable-libva' 'PKG_CONFIG_PATH=/usr/local/lib/pkgconfig/'
[0x81191d0] main libvlc debug: translation test: code is "C"
[0x81191d0] main libvlc debug: checking plugin modules
[0x81191d0] main libvlc debug: loading plugins cache file /home/djstava/.cache/vlc/plugins-04041e.dat
[0x81191d0] main libvlc debug: recursively browsing `/usr/local/lib/vlc'
[0x81191d0] main libvlc debug: recursively browsing `/home/djstava/vlc-1.0.0/modules'
[0x81191d0] main libvlc warning: cannot load module `/home/djstava/vlc-1.0.0/modules/demux/avformat/.libs/libavformat_plugin.so' (/usr/local/lib/libavformat.so.52: undefined symbol: av_init_packet)
[0x81191d0] main libvlc warning: cannot load module `/home/djstava/vlc-1.0.0/modules/codec/avcodec/.libs/libavcodec_plugin.so' (/home/djstava/vlc-1.0.0/modules/codec/avcodec/.libs/libavcodec_plugin.so: undefined symbol: vaUnmapBuffer)
[0x81191d0] main libvlc debug: module bank initialized (324 modules)
[0x81191d0] main libvlc debug: opening config file (/home/djstava/.config/vlc/vlcrc)
[0x81191d0] main libvlc debug: CPU has capabilities 486 586 MMX MMXEXT SSE SSE2 FPU
[0x81191d0] main libvlc debug: looking for memcpy module: 3 candidates
[0x81191d0] main libvlc debug: using memcpy module "memcpymmxext"
[0x81a6938] main input debug: Creating an input for 'Media Library'
[0x81a6938] main input debug: Input is a meta file: disabling unneeded options
[0x81a6938] main input debug: using timeshift granularity of 50 MBytes
[0x81a6938] main input debug: using timeshift path '/tmp'
[0x81a6938] main input debug: `file/xspf-open:///home/djstava/.local/share/vlc/ml.xspf' gives access `file' demux `xspf-open' path `/home/djstava/.local/share/vlc/ml.xspf'
[0x81a6938] main input debug: creating demux: access='file' demux='xspf-open' path='/home/djstava/.local/share/vlc/ml.xspf'
[0x81a9cc8] main demux debug: looking for access_demux module: 0 candidates
[0x81a9cc8] main demux debug: no access_demux module matched "file"
[0x81a9cc8] main demux debug: TIMER module_need() : 0.225 ms - Total 0.225 ms / 1 intvls (Avg 0.225 ms)
[0x81a6938] main input debug: creating access 'file' path='/home/djstava/.local/share/vlc/ml.xspf'
[0x81a9f40] main access debug: looking for access module: 3 candidates
[0x81a9f40] access_file access debug: opening file `/home/djstava/.local/share/vlc/ml.xspf'
[0x81a9f40] main access debug: using access module "access_file"
[0x81a9f40] main access debug: TIMER module_need() : 1.486 ms - Total 1.486 ms / 1 intvls (Avg 1.486 ms)
[0x81a81d0] main stream debug: Using AStream*Stream
[0x81a81d0] main stream debug: pre buffering
[0x81a81d0] main stream debug: received first data after 0 ms
[0x81a81d0] main stream debug: pre-buffering done 296 bytes in 0s - 5781 kbytes/s
[0x819cd30] main stream debug: looking for stream_filter module: 4 candidates
[0x819cd30] main stream debug: TIMER module_need() : 1.307 ms - Total 1.307 ms / 1 intvls (Avg 1.307 ms)
[0x819cd30] main stream debug: looking for stream_filter module: 1 candidate
[0x819cd30] main stream debug: using stream_filter module "stream_filter_record"
[0x819cd30] main stream debug: TIMER module_need() : 0.524 ms - Total 0.524 ms / 1 intvls (Avg 0.524 ms)
[0x81a6938] main input debug: creating demux: access='file' demux='xspf-open' path='/home/djstava/.local/share/vlc/ml.xspf'
[0x819def8] main demux debug: looking for demux module: 1 candidate
[0x819def8] playlist demux debug: using XSPF playlist reader
[0x819def8] main demux debug: using demux module "playlist"
[0x819def8] main demux debug: TIMER module_need() : 0.800 ms - Total 0.800 ms / 1 intvls (Avg 0.800 ms)
[0x81a6938] main input debug: `file/xspf-open:///home/djstava/.local/share/vlc/ml.xspf' successfully opened
[0x819f388] main xml debug: looking for xml module: 1 candidate
[0x819f388] main xml debug: using xml module "xtag"
[0x819f388] main xml debug: TIMER module_need() : 0.537 ms - Total 0.537 ms / 1 intvls (Avg 0.537 ms)
[0x819def8] playlist demux debug: parsed 0 tracks successfully
[0x819f388] main xml debug: removing module "xtag"
[0x81a6938] main input debug: EOF reached
[0x819def8] main demux debug: removing module "playlist"
[0x819cd30] main stream debug: removing module "stream_filter_record"
[0x81a9f40] main access debug: removing module "access_file"
[0x81a6938] main input debug: Destroying the input for 'Media Library'
[0x81a6938] main input debug: TIMER input launching for 'Media Library' : 13.338 ms - Total 13.338 ms / 1 intvls (Avg 13.338 ms)
[0x81a6798] main playlist debug: Activated
[0x81a6798] main playlist debug: rebuilding array of current - root Playlist
[0x81a6798] main playlist debug: rebuild done - 0 items, index -1
[0x81a82e0] main interface debug: looking for interface module: 1 candidate
[0x81a82e0] main interface debug: using interface module "hotkeys"
[0x81a82e0] main interface debug: TIMER module_need() : 0.982 ms - Total 0.982 ms / 1 intvls (Avg 0.982 ms)
[0x81a82e0] main interface debug: thread (interface) created at priority 0 (interface/interface.c:151)
[0x81a82e0] main interface debug: thread started
[0x819ed80] main interface debug: looking for interface module: 1 candidate
[0x819ed80] main interface debug: using interface module "inhibit"
[0x819ed80] main interface debug: TIMER module_need() : 2.338 ms - Total 2.338 ms / 1 intvls (Avg 2.338 ms)
[0x819ed80] main interface debug: thread (interface) created at priority 0 (interface/interface.c:151)
[0x819ed80] main interface debug: thread started
[0x81a91e0] main interface debug: looking for interface module: 1 candidate
[0x81a91e0] main interface debug: using interface module "screensaver"
[0x81a91e0] main interface debug: TIMER module_need() : 0.599 ms - Total 0.599 ms / 1 intvls (Avg 0.599 ms)
[0x81a91e0] main interface debug: thread (interface) created at priority 0 (interface/interface.c:151)
[0x81a91e0] main interface debug: thread started
[0x81a6798] main playlist debug: adding item `fly.ts' ( ../fly.ts )
[0x8119528] main interface debug: looking for interface module: 1 candidate
[0x8119528] main interface debug: using interface module "signals"
[0x8119528] main interface debug: TIMER module_need() : 0.706 ms - Total 0.706 ms / 1 intvls (Avg 0.706 ms)
[0x8119528] main interface debug: thread (interface) created at priority 0 (interface/interface.c:151)
[0x8119528] main interface debug: thread started
[0x8119528] main interface debug: thread ended
[0x81a0d60] main interface debug: looking for interface module: 0 candidates
[0x81a0d60] main interface error: no interface module matched "globalhotkeys,none"
[0x81a0d60] main interface debug: TIMER module_need() : 0.274 ms - Total 0.274 ms / 1 intvls (Avg 0.274 ms)
[0x81a0d60] main interface error: no suitable interface module
[0x81191d0] main libvlc error: interface "globalhotkeys,none" initialization failed
[0x81191d0] main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
[0x81a0e30] main interface debug: looking for interface module: 3 candidates
[0x81a0e30] main interface debug: using interface module "qt4"
[0x81a0e30] main interface debug: TIMER module_need() : 153.247 ms - Total 153.247 ms / 1 intvls (Avg 153.247 ms)
[0x81a0e30] main interface debug: thread (interface) created at priority 0 (interface/interface.c:151)
[0x81a0e30] main interface debug: thread started
[0x81a0e30] main interface debug: thread ended
[0x81a6798] main playlist debug: rebuilding array of current - root Playlist
[0x81a6798] main playlist debug: rebuild done - 1 items, index -1
[0x81a6798] main playlist debug: processing request item null node Playlist skip 0
[0x81a6798] main playlist debug: starting new item
[0x81a6798] main playlist debug: creating new input thread
[0xb7400e68] main input debug: Creating an input for 'fly.ts'
[0xb7400e68] main input debug: thread (input) created at priority 10 (input/input.c:230)
[0xb7400e68] main input debug: thread started
[0xb7400e68] main input debug: using timeshift granularity of 50 MBytes
[0xb7400e68] main input debug: using timeshift path '/tmp'
[0xb7400e68] main input debug: `../fly.ts' gives access `' demux `' path `../fly.ts'
[0xb7400e68] main input debug: creating demux: access='' demux='' path='../fly.ts'
[0xb7401c20] main demux debug: looking for access_demux module: 4 candidates
[0xb7401c20] main demux debug: TIMER module_need() : 2.238 ms - Total 2.238 ms / 1 intvls (Avg 2.238 ms)
[0xb7400e68] main input debug: creating access '' path='../fly.ts'
[0x82f4710] main access debug: looking for access module: 5 candidates
[0x82f4710] vcd access debug: trying .cue file: ../fly.cue
[0x82f4710] vcd access debug: could not find .cue file
[0x81a0e30] qt4 interface debug: IM: Setting an input
[0x82f4710] access_file access debug: opening file `../fly.ts'
[0x82f4710] main access debug: using access module "access_file"
[0x82f4710] main access debug: TIMER module_need() : 1.668 ms - Total 1.668 ms / 1 intvls (Avg 1.668 ms)
[0x82f59e8] main stream debug: Using AStream*Stream
[0x82f59e8] main stream debug: pre buffering
[0x82f59e8] main stream debug: received first data after 0 ms
[0x82f59e8] main stream debug: pre-buffering done 1024 bytes in 0s - 18181 kbytes/s
[0x82f6198] main stream debug: looking for stream_filter module: 4 candidates
[0x82f6198] main stream debug: TIMER module_need() : 0.232 ms - Total 0.232 ms / 1 intvls (Avg 0.232 ms)
[0x82f6198] main stream debug: looking for stream_filter module: 1 candidate
[0x82f6198] main stream debug: using stream_filter module "stream_filter_record"
[0x82f6198] main stream debug: TIMER module_need() : 0.184 ms - Total 0.184 ms / 1 intvls (Avg 0.184 ms)
[0xb7400e68] main input debug: creating demux: access='' demux='' path='../fly.ts'
[0x82f6868] main demux debug: looking for demux module: 44 candidates
[0x81a0e30] qt4 interface debug: Updating the geometry
[0x81a0e30] qt4 interface debug: size: 117 - 374
[0x81a0e30] qt4 interface debug: sizeHint: 117 - 349
[0x81a0e30] qt4 interface debug: Updating the geometry
[0x81a0e30] qt4 interface debug: size: 117 - 374
[0x81a0e30] qt4 interface debug: sizeHint: 117 - 349
[0x82f6868] lua demux debug: Trying Lua scripts in /home/djstava/.local/share/vlc/lua/playlist
[0x82f6868] lua demux debug: Trying Lua scripts in /usr/local/share/vlc/lua/playlist
[0x82f6868] vobsub demux debug: this doesn't seem to be a vobsub file
[0x82f6868] ps demux warning: this does not look like an MPEG PS stream, continuing anyway
[0x82f6868] main demux debug: using demux module "ps"
[0x82f6868] main demux debug: TIMER module_need() : 18.777 ms - Total 18.777 ms / 1 intvls (Avg 18.777 ms)
[0xb7400e68] main input debug: looking for a subtitle file in ../
[0xb7400e68] main input debug: `../fly.ts' successfully opened
[0x82f6868] ps demux warning: garbage at input, trying to resync...
[0x82f6868] ps demux warning: found sync code
[0x82f6868] ps demux warning: garbage at input, trying to resync...
[0x82f6868] ps demux warning: found sync code
[0x82f6868] ps demux warning: garbage at input, trying to resync...
[0x82f6868] ps demux warning: found sync code
[0x82f6868] ps demux warning: garbage at input, trying to resync...
[0xb7400e68] main input debug: selecting program id=0
[0xb74040a8] main decoder debug: looking for decoder module: 22 candidates
[0xb74040a8] vdpau decoder debug: libavcodec initialized (interface 0x342d00)
[0xb74040a8] main decoder error: option ffmpeg-debug does not exist
[0xb74040a8] vdpau decoder debug: Function InitVideoDec called
[0xb74040a8] vdpau decoder debug: Chosen codec : h264_vdpau
[0xb74040a8] main decoder error: option ffmpeg-workaround-bugs does not exist
[0xb74040a8] main decoder error: option ffmpeg-error-resilience does not exist
[0x81191d0] main libvlc error: option ffmpeg-vismv does not exist
[0x81191d0] main libvlc error: option ffmpeg-lowres does not exist
[0x81191d0] main libvlc error: option ffmpeg-skiploopfilter does not exist
[0x81191d0] main libvlc error: option ffmpeg-fast does not exist
[0x81191d0] main libvlc error: option ffmpeg-hurry-up does not exist
[0x81191d0] main libvlc error: option ffmpeg-skip-frame does not exist
[0x81191d0] main libvlc error: option ffmpeg-skip-idct does not exist
[0x81191d0] main libvlc error: option ffmpeg-dr does not exist
[0xb74040a8] vdpau decoder debug: Function ffmpeg_InitCodec called
[0xb74040a8] vdpau decoder debug: Function ffmpeg_OpenCodec called
[0xb74040a8] vdpau decoder debug: ffmpeg codec (MPEG-2 Video) started
[0xb74040a8] vdpau decoder debug: Function ffmpeg_OpenVDPAU called
[0xb74040a8] vdpau decoder debug: Function LibraryLink called
[0xb74040a8] vdpau decoder debug: Function InitVDPAUFunction called
[0xb74040a8] vdpau decoder debug: Function InitVDPAUFunction called
[0xb74040a8] vdpau decoder debug: Function InitVDPAUFunction called
[0xb74040a8] vdpau decoder debug: Function InitVDPAUFunction called
[0xb74040a8] vdpau decoder debug: Function InitVDPAUFunction called
[0xb74040a8] vdpau decoder debug: Function InitVDPAUFunction called
[0xb74040a8] vdpau decoder debug: Function InitVDPAUFunction called
[0xb74040a8] vdpau decoder debug: Function InitVDPAUFunction called
[0xb74040a8] vdpau decoder debug: Function InitVDPAUFunction called
[0xb74040a8] main decoder debug: using decoder module "vdpau"
[0xb74040a8] main decoder debug: TIMER module_need() : 99.772 ms - Total 99.772 ms / 1 intvls (Avg 99.772 ms)
[0x8307b88] main packetizer debug: looking for packetizer module: 18 candidates
[0x8307b88] main packetizer debug: using packetizer module "packetizer_mpegvideo"
[0x8307b88] main packetizer debug: TIMER module_need() : 6.940 ms - Total 6.940 ms / 1 intvls (Avg 6.940 ms)
[0xb74040a8] main decoder debug: thread (decoder) created at priority 0 (input/decoder.c:315)
[0xb74040a8] main decoder debug: thread started
[0xb74040a8] vdpau decoder debug: Function DecodeVideo called
[0x8307b88] packetizer_mpegvideo packetizer debug: size 1920x1080 fps=29.970
[0x82f6868] ps demux warning: found sync code
[0xb74040a8] vdpau decoder debug: Function DecodeVideo called
[0xb74040a8] vdpau decoder debug: DecodeVideo: New while step
[0xb74040a8] vdpau decoder warning: cannot decode one frame (3844 bytes)
[0x82f6868] ps demux warning: garbage at input, trying to resync...
[0x82f6868] ps demux warning: found sync code
[0xb74040a8] vdpau decoder debug: Function DecodeVideo called
[0xb74040a8] vdpau decoder debug: DecodeVideo: New while step
[0xb74040a8] vdpau decoder warning: cannot decode one frame (48373 bytes)
[0xb74040a8] vdpau decoder debug: Function DecodeVideo called
[0xb74040a8] vdpau decoder debug: DecodeVideo: New while step
[0xb74040a8] vdpau decoder warning: cannot decode one frame (34014 bytes)
[0xb74040a8] vdpau decoder debug: Function DecodeVideo called
[0xb74040a8] vdpau decoder debug: DecodeVideo: New while step
[0xb74040a8] vdpau decoder warning: cannot decode one frame (35518 bytes)
[0x82f6868] ps demux warning: garbage at input, trying to resync...
[0x82f6868] ps demux warning: found sync code
[0xb74040a8] vdpau decoder debug: Function DecodeVideo called
[0xb74040a8] vdpau decoder debug: DecodeVideo: New while step
[0xb74040a8] vdpau decoder warning: cannot decode one frame (117369 bytes)
[0x82f6868] ps demux warning: garbage at input, trying to resync...
[0xb74040a8] vdpau decoder debug: Function DecodeVideo called
[0xb74040a8] vdpau decoder debug: DecodeVideo: New while step
[0x82f6868] ps demux warning: found sync code
[0xb74040a8] vdpau decoder warning: cannot decode one frame (47550 bytes)
[0xb74040a8] vdpau decoder debug: Function DecodeVideo called
[0xb74040a8] vdpau decoder debug: DecodeVideo: New while step
[0xb74040a8] vdpau decoder warning: cannot decode one frame (43602 bytes)
[0x82f6868] ps demux debug: es id=0xbd0b format unknown
[0x82f6868] ps demux warning: garbage at input, trying to resync...
[0xb74040a8] vdpau decoder debug: Function DecodeVideo called
[0x82f6868] ps demux warning: found sync code
[0xb74040a8] vdpau decoder debug: DecodeVideo: New while step
[0x82f6868] ps demux warning: garbage at input, trying to resync...
[0xb74040a8] vdpau decoder warning: cannot decode one frame (129025 bytes)
[0x82f6868] ps demux warning: found sync code
[0xb74040a8] vdpau decoder debug: Function DecodeVideo called
[0xb74040a8] vdpau decoder debug: DecodeVideo: New while step
[0xb74040a8] vdpau decoder warning: cannot decode one frame (44166 bytes)
[0xb74040a8] vdpau decoder debug: Function DecodeVideo called
[0xb74040a8] vdpau decoder debug: DecodeVideo: New while step
[0xb74040a8] vdpau decoder warning: cannot decode one frame (43414 bytes)
[0xb7400e68] main input debug: `../fly.ts' successfully opened
[0x82f6868] ps demux warning: garbage at input, trying to resync...
[0x82f6868] ps demux warning: found sync code
[0x82f6868] ps demux warning: garbage at input, trying to resync...
[0x82f6868] ps demux warning: found sync code
[0x82f6868] ps demux warning: garbage at input, trying to resync...
[0x82f6868] ps demux warning: found sync code
[0x82f6868] ps demux warning: garbage at input, trying to resync...
[0xb7400e68] main input debug: selecting program id=0
[0xb74040a8] main decoder debug: looking for decoder module: 22 candidates
[0xb74040a8] vdpau decoder debug: libavcodec initialized (interface 0x342d00)
[0xb74040a8] main decoder error: option ffmpeg-debug does not exist
[0xb74040a8] vdpau decoder debug: Function InitVideoDec called
[0xb74040a8] vdpau decoder debug: Chosen codec : h264_vdpau
[0xb74040a8] main decoder error: option ffmpeg-workaround-bugs does not exist
[0xb74040a8] main decoder error: option ffmpeg-error-resilience does not exist
[0x81191d0] main libvlc error: option ffmpeg-vismv does not exist
[0x81191d0] main libvlc error: option ffmpeg-lowres does not exist
[0x81191d0] main libvlc error: option ffmpeg-skiploopfilter does not exist
[0x81191d0] main libvlc error: option ffmpeg-fast does not exist
[0x81191d0] main libvlc error: option ffmpeg-hurry-up does not exist
[0x81191d0] main libvlc error: option ffmpeg-skip-frame does not exist
[0x81191d0] main libvlc error: option ffmpeg-skip-idct does not exist
[0x81191d0] main libvlc error: option ffmpeg-dr does not exist
[0xb74040a8] vdpau decoder debug: Function ffmpeg_InitCodec called
[0xb74040a8] vdpau decoder debug: Function ffmpeg_OpenCodec called
[0xb74040a8] vdpau decoder debug: ffmpeg codec (MPEG-2 Video) started
[0xb74040a8] vdpau decoder debug: Function ffmpeg_OpenVDPAU called
[0xb74040a8] vdpau decoder debug: Function LibraryLink called
It can't play the file.