Help me about VLC VDPAU via VAAPI?I'm trapped.

*nix specific usage questions
djstava
Blank Cone
Blank Cone
Posts: 70
Joined: 17 Dec 2009 05:17

Help me about VLC VDPAU via VAAPI?I'm trapped.

Postby djstava » 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

Code: Select all

for i in debian/patches/*.patch; do patch -p1 < $i; done
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:

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.
Last edited by djstava on 31 Dec 2009 07:27, edited 1 time in total.

djstava
Blank Cone
Blank Cone
Posts: 70
Joined: 17 Dec 2009 05:17

Re: Help me about VLC VDPAU via VAAPI?I'm trapped.

Postby djstava » 27 Dec 2009 10:40

djstava@linux:~$ sudo vlc -vvv --list | grep vdpau
VLC media player 1.0.0 Goldeneye
[0x997e198] main libvlc debug: VLC media player - version 1.0.0 Goldeneye - (c) 1996-2009 the VideoLAN team
[0x997e198] main libvlc debug: libvlc was configured with ./configure '--enable-avcodec' '--enable-avformat' '--enable-debug' '--enable-libva' '--enable-run-as-root' 'PKG_CONFIG_PATH=/usr/local/lib/pkgconfig/'
[0x997e198] main libvlc debug: translation test: code is "C"
[0x997e198] main libvlc debug: checking plugin modules
[0x997e198] main libvlc debug: loading plugins cache file /home/djstava/.cache/vlc/plugins-04041e.dat
[0x997e198] main libvlc debug: recursively browsing `/usr/local/lib/vlc'
[0x997e198] main libvlc warning: cannot load module `/usr/local/lib/vlc/demux/libavformat_plugin.so' (/usr/local/lib/libavformat.so.52: undefined symbol: av_init_packet)
[0x997e198] main libvlc warning: cannot load module `/usr/local/lib/vlc/codec/libavcodec_plugin.so' (/usr/local/lib/vlc/codec/libavcodec_plugin.so: undefined symbol: vaUnmapBuffer)

[0x997e198] main libvlc debug: module bank initialized (324 modules)
vdpau VDPAU hardware acc. h264 video decoder
[0x997e198] main libvlc debug: opening config file (/home/djstava/.config/vlc/vlcrc)
[0x997e198] main libvlc debug: writing plugins cache /home/djstava/.cache/vlc/plugins-04041e.dat

djstava@linux:~$ ls /usr/local/lib/vlc/codec/libavcodec_plugin.so -l
-rwxr-xr-x 1 root root 234012 2009-12-27 16:52 /usr/local/lib/vlc/codec/libavcodec_plugin.so

Why i cannot load the avcodec and avformat so?

djstava
Blank Cone
Blank Cone
Posts: 70
Joined: 17 Dec 2009 05:17

Re: Help me about VLC VDPAU via VAAPI?I'm trapped.

Postby djstava » 28 Dec 2009 10:01

Before build the vlc,edit vlc-config.in.in and add "-lX11 -lva -lva-x11" to libs="" ,then configure,make

vlc outputs:

[0x8aa8680] main interface debug: looking for interface module: 2 candidates
[0x8aa8680] main interface debug: using interface module "signals"
[0x8aa8680] main interface debug: TIMER module_need() : 1.024 ms - Total 1.024 ms / 1 intvls (Avg 1.024 ms)
[0x8aa8680] main interface debug: thread started
[0x8aa8680] main interface debug: thread ended
[0x8aa8680] main interface debug: thread (interface) created at priority 0 (interface/interface.c:151)
[0x8bc9450] main interface debug: looking for interface module: 0 candidates
[0x8bc9450] main interface error: no interface module matched "globalhotkeys,none"
[0x8bc9450] main interface debug: TIMER module_need() : 0.459 ms - Total 0.459 ms / 1 intvls (Avg 0.459 ms)
[0x8bc9450] main interface error: no suitable interface module
[0x8aa81c8] main libvlc error: interface "globalhotkeys,none" initialization failed

[0x8e0af80] vdpau decoder debug: Function DecodeVideo called
[0x8e0af80] vdpau decoder debug: DecodeVideo: New while step
[0x8e0af80] vdpau decoder debug: Function ffmpeg_SetFrameBufferPts called
[0x8e0af80] vdpau decoder debug: Function vdpau_GetFreeSurface called
[0x8e0af80] vdpau decoder debug: vdpau_GetFreeSurface: i_used_surfaces = 1
[0x8e0af80] vdpau decoder debug: vdpau_GetFreeSurface: Creation of new video surface i=0, rndr->surface= 2
[0x8e0af80] vdpau decoder error: vdpau_GetFreeSurface : could not create vdpau video surface - The size of a supplied object does not match the object it is being used with.
[0x8e0af80] vdpau decoder debug: Function ffmpeg_GetFrameBuf called : surface number 0
[0x8e0af80] vdpau decoder debug: Function ffmpeg_GetFrameBuf : bitstreams used 0
[0x8e0af80] vdpau decoder debug: Function ffmpeg_SetFrameBufferPts called
[0x8e0af80] vdpau decoder debug: Function vdpau_GetFreeSurface called
[0x8e0af80] vdpau decoder debug: vdpau_GetFreeSurface: i_used_surfaces = 2
[0x8e0af80] vdpau decoder debug: vdpau_GetFreeSurface: Creation of new video surface i=1, rndr->surface= 2
[0x8e0af80] vdpau decoder error: vdpau_GetFreeSurface : could not create vdpau video surface - The size of a supplied object does not match the object it is being used with.
[0x8e0af80] vdpau decoder debug: Function ffmpeg_GetFrameBuf called : surface number 1
[0x8e0af80] vdpau decoder debug: Function ffmpeg_GetFrameBuf : bitstreams used 0
[0x8e0af80] vdpau decoder debug: Function ffmpeg_SetFrameBufferPts called
[0x8e0af80] vdpau decoder debug: Function vdpau_GetFreeSurface called
[0x8e0af80] vdpau decoder debug: vdpau_GetFreeSurface: i_used_surfaces = 3
[0x8e0af80] vdpau decoder debug: vdpau_GetFreeSurface: Creation of new video surface i=2, rndr->surface= 2
[0x8e0af80] vdpau decoder error: vdpau_GetFreeSurface : could not create vdpau video surface - The size of a supplied object does not match the object it is being used with.

[0x8e0af80] vdpau decoder error: ffmpeg_CopyPicture : vdp_decoder_create NULL decoder - The size of a supplied object does not match the object it is being used with.
[0x8e0af80] vdpau decoder debug: ffmpeg_CopyPicture: p_sys->i_max_refs 2
[0x8e0af80] vdpau decoder debug: ffmpeg_CopyPicture : rndr->bitstream_buffers_used : 0
[0x8e0af80] vdpau decoder debug: ffmpeg_CopyPicture : rndr->bitstream_buffers : 148374560
[0x8e0af80] vdpau decoder debug: ffmpeg_CopyPicture : rndr->bitstream_buffers_allocated : 44
[0x8e0af80] vdpau decoder error: ffmpeg_CopyPicture : vdp_decoder_render - An invalid handle value was provided.
[0x8e0af80] vdpau decoder debug: ffmpeg_CopyPicture : rndr->info.h264.is_reference : 1
[0x8e0af80] vdpau decoder debug: ffmpeg_CopyPicture : *(p_sys->p_vdp_decoder) : 3
[0x8e0af80] vdpau decoder debug: ffmpeg_CopyPicture: i_pitch: 1440, i_lines: 1088
[0x8e0af80] vdpau decoder debug: ffmpeg_CopyPicture: i_pitch: 720, i_lines: 544
[0x8e0af80] vdpau decoder debug: ffmpeg_CopyPicture: i_pitch: 720, i_lines: 544
[0x8e0af80] vdpau decoder error: ffmpeg_CopyPicture : vdp_video_surface_get_bits_y_cb_cr - An invalid handle value was provided.
[0x8e0af80] vdpau decoder debug: ffmpeg_CopyPicture: rndr->surface : 2
[0x8f9da88] vdpau decoder debug: Function InitVDPAUFunction called
[0x8f9da88] vdpau decoder debug: Function InitVDPAUFunction called
[0x8f9da88] vdpau decoder debug: Function InitVDPAUFunction called
[0x8f9da88] vdpau decoder debug: Function InitVDPAUFunction called
[0x8f9da88] vdpau decoder debug: Function InitVDPAUFunction called
[0x8f9da88] vdpau decoder debug: Function InitVDPAUFunction called
[0x8f9da88] vdpau decoder debug: Function InitVDPAUFunction called
[0x8f9da88] vdpau decoder debug: Function InitVDPAUFunction called
[0x8f9da88] main decoder debug: using decoder module "vdpau"
[0x8f9da88] main decoder debug: TIMER module_need() : 170.335 ms - Total 170.335 ms / 1 intvls (Avg 170.335 ms)
[0x8fd9ff8] main packetizer debug: looking for packetizer module: 36 candidates
[0x8fd9ff8] main packetizer debug: using packetizer module "packetizer_mpegvideo"
[0x8fd9ff8] main packetizer debug: TIMER module_need() : 1.584 ms - Total 1.584 ms / 1 intvls (Avg 1.584 ms)
[0x8f9da88] main decoder debug: thread started
[0x8e0af80] vdpau decoder debug: Function ffmpeg_NextPts called
[0x8e0af80] main decoder debug: End of video preroll
[0x8e0af80] main decoder debug: Received first picture
[0x8f9da88] main decoder debug: thread (decoder) created at priority 0 (input/decoder.c:315)
[0x8f9da88] vdpau decoder debug: Function DecodeVideo called

[0x8e0af80] vdpau decoder debug: Function CopyPicture called
[0x8e0af80] vdpau decoder debug: ffmpeg_CopyPicture : rndr->bitstream_buffers_used : 0
[0x8e0af80] vdpau decoder debug: ffmpeg_CopyPicture : rndr->bitstream_buffers : 148374560
[0x8e0af80] vdpau decoder debug: ffmpeg_CopyPicture : rndr->bitstream_buffers_allocated : 44
[0x8e0af80] vdpau decoder error: ffmpeg_CopyPicture : vdp_decoder_render - An invalid handle value was provided.
[0x8e0af80] vdpau decoder debug: ffmpeg_CopyPicture : rndr->info.h264.is_reference : 0
[0x8e0af80] vdpau decoder debug: ffmpeg_CopyPicture : *(p_sys->p_vdp_decoder) : 3
[0x8e0af80] vdpau decoder debug: ffmpeg_CopyPicture: i_pitch: 32, i_lines: 32
[0x8e0af80] vdpau decoder debug: ffmpeg_CopyPicture: i_pitch: 16, i_lines: 16
[0x8e0af80] vdpau decoder debug: ffmpeg_CopyPicture: i_pitch: 16, i_lines: 16
[0x8e0af80] vdpau decoder error: ffmpeg_CopyPicture : vdp_video_surface_get_bits_y_cb_cr - An invalid handle value was provided.
[0x8e0af80] vdpau decoder debug: ffmpeg_CopyPicture: rndr->surface : 2
[0x8e0af80] vdpau decoder debug: Function ffmpeg_NextPts called
[0x8e0af80] vdpau decoder debug: Function DecodeVideo called
[0x8e0af80] vdpau decoder debug: Function DecodeVideo called
[0x8e0af80] vdpau decoder debug: DecodeVideo: New while step
[0x8e0af80] vdpau decoder warning: cannot decode one frame (1316 bytes)
[0x8e0af80] vdpau decoder debug: Function DecodeVideo called
[0x8e0af80] vdpau decoder debug: DecodeVideo: New while step
[0x8e0af80] vdpau decoder debug: Function ReleaseFrameBuf called
[0x8e0af80] vdpau decoder debug: ffmpeg_ReleaseFrameBuf: i_used_surfaces = 1
[0x8e0af80] vdpau decoder debug: Function ffmpeg_SetFrameBufferPts called
[0x8e0af80] vdpau decoder debug: Function vdpau_GetFreeSurface called
[0x8e0af80] vdpau decoder debug: vdpau_GetFreeSurface: i_used_surfaces = 2
[0x8e0af80] vdpau decoder debug: Function ffmpeg_GetFrameBuf called : surface number 0
[0x8e0af80] vdpau decoder debug: Function ffmpeg_GetFrameBuf : bitstreams used 0
[0x8e0af80] vdpau decoder debug: Function ReleaseFrameBuf called
[0x8e0af80] vdpau decoder debug: ffmpeg_ReleaseFrameBuf: i_used_surfaces = 1
[0x8e0af80] vdpau decoder debug: Function ffmpeg_SetFrameBufferPts called
[0x8e0af80] vdpau decoder debug: Function vdpau_GetFreeSurface called
[0x8e0af80] vdpau decoder debug: vdpau_GetFreeSurface: i_used_surfaces = 2
[0x8e0af80] vdpau decoder debug: Function ffmpeg_GetFrameBuf called : surface number 0
[0x8e0af80] vdpau decoder debug: Function ffmpeg_GetFrameBuf : bitstreams used 0
[0x8e0af80] vdpau decoder debug: Function ReleaseFrameBuf called
[0x8e0af80] vdpau decoder debug: ffmpeg_ReleaseFrameBuf: i_used_surfaces = 1
[0x8e0af80] vdpau decoder debug: Function ffmpeg_SetFrameBufferPts called
[0x8e0af80] vdpau decoder debug: Function vdpau_GetFreeSurface called
[0x8e0af80] vdpau decoder debug: vdpau_GetFreeSurface: i_used_surfaces = 2
[0x8e0af80] vdpau decoder debug: Function ffmpeg_GetFrameBuf called : surface number 0
[0x8e0af80] vdpau decoder debug: Function ffmpeg_GetFrameBuf : bitstreams used 0
[0x8e0af80] vdpau decoder debug: Function ReleaseFrameBuf called
[0x8e0af80] vdpau decoder debug: ffmpeg_ReleaseFrameBuf: i_used_surfaces = 1
[0x8e0af80] vdpau decoder debug: Function ffmpeg_SetFrameBufferPts called
[0x8e0af80] vdpau decoder debug: Function vdpau_GetFreeSurface called
[0x8e0af80] vdpau decoder debug: vdpau_GetFreeSurface: i_used_surfaces = 2
[0x8e0af80] vdpau decoder debug: Function ffmpeg_GetFrameBuf called : surface number 0
[0x8e0af80] vdpau decoder debug: Function ffmpeg_GetFrameBuf : bitstreams used 0
[0x8e0af80] vdpau decoder debug: Function ReleaseFrameBuf called
[0x8e0af80] vdpau decoder debug: ffmpeg_ReleaseFrameBuf: i_used_surfaces = 1
[0x8e0af80] vdpau decoder debug: Function ffmpeg_SetFrameBufferPts called
[0x8e0af80] vdpau decoder debug: Function vdpau_GetFreeSurface called
[0x8e0af80] vdpau decoder debug: vdpau_GetFreeSurface: i_used_surfaces = 2
[0x8e0af80] vdpau decoder debug: Function ffmpeg_GetFrameBuf called : surface number 0
[0x8e0af80] vdpau decoder debug: Function ffmpeg_GetFrameBuf : bitstreams used 0
[0x8e0af80] vdpau decoder debug: Function ReleaseFrameBuf called
[0x8e0af80] vdpau decoder debug: ffmpeg_ReleaseFrameBuf: i_used_surfaces = 1
[0x8e0af80] vdpau decoder debug: Function ffmpeg_SetFrameBufferPts called
[0x8e0af80] vdpau decoder debug: Function vdpau_GetFreeSurface called
[0x8e0af80] vdpau decoder debug: vdpau_GetFreeSurface: i_used_surfaces = 2
[0x8e0af80] vdpau decoder debug: Function ffmpeg_GetFrameBuf called : surface number 0
[0x8e0af80] vdpau decoder debug: Function ffmpeg_GetFrameBuf : bitstreams used 0
[0x8e0af80] vdpau decoder debug: Function ReleaseFrameBuf called
[0x8e0af80] vdpau decoder debug: ffmpeg_ReleaseFrameBuf: i_used_surfaces = 1
[0x8e0af80] vdpau decoder debug: Function ffmpeg_SetFrameBufferPts called
[0x8e0af80] vdpau decoder debug: Function vdpau_GetFreeSurface called
[0x8e0af80] vdpau decoder debug: vdpau_GetFreeSurface: i_used_surfaces = 2
[0x8e0af80] vdpau decoder debug: Function ffmpeg_GetFrameBuf called : surface number 0
[0x8e0af80] vdpau decoder debug: Function ffmpeg_GetFrameBuf : bitstreams used 0
[0x8e0af80] vdpau decoder debug: Function ReleaseFrameBuf called
[0x8e0af80] vdpau decoder debug: ffmpeg_ReleaseFrameBuf: i_used_surfaces = 1
[0x8e0af80] vdpau decoder debug: Function ffmpeg_SetFrameBufferPts called
[0x8e0af80] vdpau decoder debug: Function vdpau_GetFreeSurface called
[0x8e0af80] vdpau decoder debug: vdpau_GetFreeSurface: i_used_surfaces = 2
[0x8e0af80] vdpau decoder debug: Function ffmpeg_GetFrameBuf called : surface number 0
[0x8e0af80] vdpau decoder debug: Function ffmpeg_GetFrameBuf : bitstreams used 0
[0x8e0af80] vdpau decoder debug: Function ReleaseFrameBuf called
[0x8e0af80] vdpau decoder debug: ffmpeg_ReleaseFrameBuf: i_used_surfaces = 1
[0x8e0af80] vdpau decoder debug: Function ffmpeg_SetFrameBufferPts called
[0x8e0af80] vdpau decoder debug: Function vdpau_GetFreeSurface called
[0x8e0af80] vdpau decoder debug: vdpau_GetFreeSurface: i_used_surfaces = 2
[0x8e0af80] vdpau decoder debug: Function ffmpeg_GetFrameBuf called : surface number 0
[0x8e0af80] vdpau decoder debug: Function ffmpeg_GetFrameBuf : bitstreams used 0
[0x8e0af80] vdpau decoder debug: Function ReleaseFrameBuf called
[0x8e0af80] vdpau decoder debug: ffmpeg_ReleaseFrameBuf: i_used_surfaces = 1
[0x8e0af80] vdpau decoder debug: Function ffmpeg_SetFrameBufferPts called
[0x8e0af80] vdpau decoder debug: Function vdpau_GetFreeSurface called
[0x8e0af80] vdpau decoder debug: vdpau_GetFreeSurface: i_used_surfaces = 2

and then segmentation fault.

I need help!

djstava
Blank Cone
Blank Cone
Posts: 70
Joined: 17 Dec 2009 05:17

Re: Help me about VLC VDPAU via VAAPI?I'm trapped.

Postby djstava » 29 Dec 2009 05:03

Any help?
I get so crazy. :cry:

djstava
Blank Cone
Blank Cone
Posts: 70
Joined: 17 Dec 2009 05:17

Re: Help me about VLC VDPAU via VAAPI?I'm trapped.

Postby djstava » 30 Dec 2009 10:44

I trace the error,found program stops at modules/codec/vdpau/video.c

Code: Select all

if ( p_sys->vdp_decoder == NULL || p_sys->vdp_decoder == VDP_INVALID_HANDLE ) /* Create a new decoder if none is present */ { msg_Dbg(p_dec, "ffmpeg_CopyPicture: creation of first decoder"); //p_sys->vdp_decoder = malloc( sizeof(VdpDecoder) ); // Memory does not have to be allocated vdp_status = p_sys->pf_vdp_decoder_create( p_sys->vdp_device, p_sys->vdp_decoder_profile, i_width, i_height, rndr->info.h264.num_ref_frames, &(p_sys->vdp_decoder) ); error_vdp_status("ffmpeg_CopyPicture", "vdp_decoder_create NULL decoder", vdp_status, p_dec); p_sys->i_max_refs=rndr->info.h264.num_ref_frames; msg_Dbg(p_dec, "ffmpeg_CopyPicture: p_sys->i_max_refs %d",p_sys->i_max_refs); }
rndr->info.h264.num_ref_frames = 0
I found the struct rndr in file /usr/local/include/libavcodec/vdpau.h,but there is no member num_ref_frames??It come from the ffmpeg.
And another vdpau.h header file in /usr/local/include/vdpau/,it define the h264 struct and its members but no rndr struct.It comes from the libvdpau-0.3.

I wonder to know how to fix this?

djstava
Blank Cone
Blank Cone
Posts: 70
Joined: 17 Dec 2009 05:17

Re: Help me about VLC VDPAU via VAAPI?I'm trapped.

Postby djstava » 30 Dec 2009 11:30

Oh,my fault,libavcodec/vdpau.h generated by ffmpeg include vdpau/vdpau.h generated by libvdpau-0.3.
Howerver,I also don't know why it cannot create the vdpau decoder?

djstava
Blank Cone
Blank Cone
Posts: 70
Joined: 17 Dec 2009 05:17

Re: Help me about VLC VDPAU via VAAPI?I'm trapped.

Postby djstava » 31 Dec 2009 08:10

while loop in modules/codec/vdpau/video.c

Code: Select all

while( p_sys->i_buffer > 0 || p_sys->b_flush ) { msg_Dbg( p_dec, "DecodeVideo: New while step" ); int i_used, b_gotpicture; picture_t *p_pic; /* This fills in p_sys->p_context which gives us header information * and does NOT decode the frame when using vdpau */ i_used = avcodec_decode_video( p_sys->p_context, p_sys->p_ff_pic, &b_gotpicture, p_sys->i_buffer <= 0 && p_sys->b_flush ? NULL : (uint8_t*)p_sys->p_buffer, p_sys->i_buffer ); if( b_null_size && p_sys->p_context->width > 0 && p_sys->p_context->height > 0 && !p_sys->b_flush ) { /* Reparse it to not drop the I frame */ b_null_size = false; if( p_sys->b_hurry_up ) p_sys->p_context->skip_frame = p_sys->i_skip_frame; i_used = avcodec_decode_video( p_sys->p_context, p_sys->p_ff_pic, &b_gotpicture, (uint8_t*)p_sys->p_buffer, p_sys->i_buffer ); }
I found i_used returned form fuction avcodec_decode_video always -1,it represent failed.

According to the error message:
vdpau_GetFreeSurface : could not create vdpau video surface - The size of a supplied object does not match the object

I guess the buffer_size maybe too small,p_sys->i_buffer is not a static value.I set the p_sys->i_buffer a very big value,and retry,following the message below:

VLC media player 1.0.0 Goldeneye
[0x8bec1c8] main libvlc debug: VLC media player - version 1.0.0 Goldeneye - (c) 1996-2009 the VideoLAN team
[0x8bec1c8] main libvlc debug: libvlc was configured with ./configure '--enable-run-as-root' '--enable-avformat' '--enable-avcodec' '--enable-debug' '--enable-vdpau' 'PKG_CONFIG_PATH=/usr/local/lib/pkgconfig/'
[0x8bec1c8] main libvlc debug: translation test: code is "C"
[0x8bec1c8] main libvlc debug: checking plugin modules
[0x8bec1c8] main libvlc debug: loading plugins cache file /home/djstava/.cache/vlc/plugins-04041e.dat
[0x8bec1c8] main libvlc debug: recursively browsing `/usr/local/lib/vlc'
[0x8bec1c8] main libvlc warning: cannot load module `/usr/local/lib/vlc/demux/libavformat_plugin.so' (/usr/local/lib/vlc/demux/libavformat_plugin.so: undefined symbol: av_write_frame)
[0x8bec1c8] main libvlc debug: recursively browsing `/home/djstava/vlc-1.0.0/modules'
[0x8bec1c8] main libvlc warning: cannot load module `/home/djstava/vlc-1.0.0/modules/demux/avformat/.libs/libavformat_plugin.so' (/home/djstava/vlc-1.0.0/modules/demux/avformat/.libs/libavformat_plugin.so: undefined symbol: av_free_packet)
[0x8bec1c8] 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: avcodec_default_reget_buffer)

[0x8cba670] main input debug: Input is a meta file: disabling unneeded options
[0x8cba670] main input debug: using timeshift granularity of 50 MBytes
[0x8cba670] main input debug: using timeshift path '/tmp'
[0x8cba670] 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'
[0x8cba670] main input debug: creating demux: access='file' demux='xspf-open' path='/home/djstava/.local/share/vlc/ml.xspf'
[0x8cbe040] main demux debug: looking for access_demux module: 0 candidates
[0x8cbe040] main demux debug: no access_demux module matched "file"
[0x8cbe040] main demux debug: TIMER module_need() : 0.650 ms - Total 0.650 ms / 1 intvls (Avg 0.650 ms)
[0x8cba670] main input debug: creating access 'file' path='/home/djstava/.local/share/vlc/ml.xspf'
[0x8cc0748] main access debug: looking for access module: 6 candidates
[0x8cc0748] access_file access debug: opening file `/home/djstava/.local/share/vlc/ml.xspf'
[0x8cc0748] main access debug: using access module "access_file"
[0x8cc0748] main access debug: TIMER module_need() : 8.410 ms - Total 8.410 ms / 1 intvls (Avg 8.410 ms)
[0x8cbe8e8] main stream debug: Using AStream*Stream
[0x8cbe8e8] main stream debug: pre buffering
[0x8cbe8e8] main stream debug: received first data after 0 ms
[0x8cbe8e8] main stream debug: pre-buffering done 292 bytes in 0s - 4833 kbytes/s
[0x8cbf0d0] main stream debug: looking for stream_filter module: 8 candidates
[0x8cbf0d0] main stream debug: TIMER module_need() : 10.539 ms - Total 10.539 ms / 1 intvls (Avg 10.539 ms)
[0x8cbf0d0] main stream debug: looking for stream_filter module: 2 candidates
[0x8cbf0d0] main stream debug: using stream_filter module "stream_filter_record"
[0x8cbf0d0] main stream debug: TIMER module_need() : 0.727 ms - Total 0.727 ms / 1 intvls (Avg 0.727 ms)
[0x8cba670] main input debug: creating demux: access='file' demux='xspf-open' path='/home/djstava/.local/share/vlc/ml.xspf'
[0x8db3fe0] main demux debug: looking for demux module: 2 candidates
[0x8db3fe0] playlist demux debug: using XSPF playlist reader
[0x8db3fe0] main demux debug: using demux module "playlist"
[0x8db3fe0] main demux debug: TIMER module_need() : 0.648 ms - Total 0.648 ms / 1 intvls (Avg 0.648 ms)
[0x8cba670] main input debug: `file/xspf-open:///home/djstava/.local/share/vlc/ml.xspf' successfully opened
[0x8cbba80] main xml debug: looking for xml module: 2 candidates
[0x8cbba80] main xml debug: using xml module "xtag"
[0x8cbba80] main xml debug: TIMER module_need() : 0.627 ms - Total 0.627 ms / 1 intvls (Avg 0.627 ms)
[0x8db3fe0] playlist demux debug: parsed 0 tracks successfully
[0x8cbba80] main xml debug: removing module "xtag"
[0x8cba670] main input debug: EOF reached
[0x8db3fe0] main demux debug: removing module "playlist"

[0x8cb95a0] main playlist debug: rebuild done - 0 items, index -1
[0x8cba830] main interface debug: looking for interface module: 2 candidates

[0x8cbbf30] main interface debug: looking for interface module: 2 candidates
[0x8cbbf30] main interface debug: using interface module "screensaver"
[0x8cbbf30] main interface debug: TIMER module_need() : 0.662 ms - Total 0.662 ms / 1 intvls (Avg 0.662 ms)
[0x8cbbf30] main interface debug: thread started
[0x8cbbf30] main interface debug: thread (interface) created at priority 0 (interface/interface.c:151)
[0x8cb95a0] main playlist debug: adding item `nd_001.ts' ( ../nd_001.ts )
[0x8bec6c0] main interface debug: looking for interface module: 2 candidates
[0x8bec6c0] main interface debug: using interface module "signals"
[0x8bec6c0] main interface debug: TIMER module_need() : 0.896 ms - Total 0.896 ms / 1 intvls (Avg 0.896 ms)
[0x8bec6c0] main interface debug: thread started
[0x8bec6c0] main interface debug: thread (interface) created at priority 0 (interface/interface.c:151)
[0x8bec6c0] main interface debug: thread ended
[0xb7500b00] main interface debug: looking for interface module: 0 candidates
[0xb7500b00] main interface error: no interface module matched "globalhotkeys,none"
[0xb7500b00] main interface debug: TIMER module_need() : 0.716 ms - Total 0.716 ms / 1 intvls (Avg 0.716 ms)
[0xb7500b00] main interface error: no suitable interface module
[0x8bec1c8] main libvlc error: interface "globalhotkeys,none" initialization failed
for interface module: 6 candidates
[0x8c7e5c8] main interface debug: using interface module "qt4"
[0x8c7e5c8] main interface debug: TIMER module_need() : 205.251 ms - Total 205.251 ms / 1 intvls (Avg 205.251 ms)
[0x8c7e5c8] main interface debug: thread (interface) created at priority 0 (interface/interface.c:151)
[0x8c7e5c8] main interface debug: thread started
[0x8c7e5c8] main interface debug: thread ended

[0x8cb95a0] main playlist debug: starting new item
[0x8cb95a0] main playlist debug: creating new input thread
[0x8f07e80] main input debug: Creating an input for 'nd_001.ts'
[0x8f07e80] main input debug: thread (input) created at priority 10 (input/input.c:230)
[0x8f07e80] main input debug: thread started
[0x8c7e5c8] qt4 interface debug: IM: Setting an input
[0x8f07e80] main input debug: using timeshift granularity of 50 MBytes
[0x8f07e80] main input debug: using timeshift path '/tmp'
[0x8f07e80] main input debug: `../nd_001.ts' gives access `' demux `' path `../nd_001.ts'
[0x8f07e80] main input debug: creating demux: access='' demux='' path='../nd_001.ts'
[0xb7501858] main demux debug: looking for access_demux module: 8 candidates
[0x8c7e5c8] qt4 interface debug: Updating the geometry
[0x8c7e5c8] qt4 interface debug: size: 117 - 417
[0x8c7e5c8] qt4 interface debug: sizeHint: 117 - 349
[0x8c7e5c8] qt4 interface debug: Updating the geometry
[0x8c7e5c8] qt4 interface debug: size: 117 - 417
[0x8c7e5c8] qt4 interface debug: sizeHint: 117 - 349
[0xb7501858] main demux debug: TIMER module_need() : 5.843 ms - Total 5.843 ms / 1 intvls (Avg 5.843 ms)
[0x8f07e80] main input debug: creating access '' path='../nd_001.ts'
[0xb7504280] main access debug: looking for access module: 10 candidates
[0xb7504280] vcd access debug: trying .cue file: ../nd_001.cue
[0xb7504280] vcd access debug: could not find .cue file
[0xb7504280] vcd access debug: trying .cue file: ../nd_001.cue
[0xb7504280] vcd access debug: could not find .cue file
[0xb7504280] access_file access debug: opening file `../nd_001.ts'
[0xb7504280] main access debug: using access module "access_file"
[0xb7504280] main access debug: TIMER module_need() : 3.259 ms - Total 3.259 ms / 1 intvls (Avg 3.259 ms)
[0x8c80a28] main stream debug: Using AStream*Stream

[0x8c808f0] vobsub demux debug: this doesn't seem to be a vobsub file
[0x8c808f0] ps demux warning: this does not look like an MPEG PS stream, continuing anyway
[0x8c808f0] main demux debug: using demux module "ps"
[0x8c808f0] main demux debug: TIMER module_need() : 57.778 ms - Total 57.778 ms / 1 intvls (Avg 57.778 ms)
[0x8f07e80] main input debug: looking for a subtitle file in ../
[0x8f07e80] main input debug: `../nd_001.ts' successfully opened
[0x8c808f0] ps demux warning: garbage at input, trying to resync...
[0x8c808f0] ps demux warning: found sync code
[0x8c7e5c8] qt4 interface debug: New Event: type 1112
[0x8c808f0] ps demux warning: garbage at input, trying to resync...
[0x8c808f0] ps demux warning: found sync code
[0x8c7e5c8] qt4 interface debug: New Event: type 1103
[0x8c808f0] ps demux warning: garbage at input, trying to resync...
[0x8c808f0] ps demux debug: we found a length of: 129400000
[0x8f07e80] main input debug: selecting program id=0
[0xb750cab8] main decoder debug: looking for decoder module: 45 candidates
[0xb750cab8] vdpau decoder debug: libavcodec initialized (interface 0x342d00)
[0xb750cab8] vdpau decoder debug: Function InitVideoDec called
[0xb750cab8] vdpau decoder debug: Chosen codec : h264_vdpau
[0xb750cab8] vdpau decoder debug: using direct rendering
[0xb750cab8] vdpau decoder debug: Function ffmpeg_InitCodec called
[0xb750cab8] vdpau decoder debug: Function ffmpeg_OpenCodec called
[0xb750cab8] vdpau decoder debug: ffmpeg codec (MPEG-2 Video) started
[0xb750cab8] vdpau decoder debug: Function ffmpeg_OpenVDPAU called
[0xb750cab8] vdpau decoder debug: Function LibraryLink called
[0x8c7e5c8] qt4 interface debug: New Event: type 1119
[0x8c7e5c8] qt4 interface debug: New Event: type 1119
[0x8c7e5c8] qt4 interface debug: New Event: type 1107
[0x8c7e5c8] qt4 interface debug: Updating the geometry
[0x8c7e5c8] qt4 interface debug: size: 119 - 417
[0x8c7e5c8] qt4 interface debug: sizeHint: 119 - 349
[0x8c7e5c8] qt4 interface debug: New Event: type 1107
[0x8c7e5c8] qt4 interface debug: Updating the geometry
[0x8c7e5c8] qt4 interface debug: size: 119 - 417
[0x8c7e5c8] qt4 interface debug: sizeHint: 119 - 349
[0x8c7e5c8] qt4 interface debug: New Event: type 1107
[0x8c7e5c8] qt4 interface debug: Updating the geometry
[0x8c7e5c8] qt4 interface debug: size: 119 - 417
[0x8c7e5c8] qt4 interface debug: sizeHint: 119 - 349
[0x8c7e5c8] qt4 interface debug: New Event: type 1108
[0x8c7e5c8] qt4 interface debug: Updating the geometry
[0x8c7e5c8] qt4 interface debug: size: 119 - 417
[0x8c7e5c8] qt4 interface debug: sizeHint: 119 - 349
[0x8c7e5c8] qt4 interface debug: New Event: type 1119
[0x8c7e5c8] qt4 interface debug: New Event: type 1112
[0x8c7e5c8] qt4 interface debug: New Event: type 1107
[0x8c7e5c8] qt4 interface debug: Updating the geometry
[0x8c7e5c8] qt4 interface debug: size: 119 - 417
[0x8c7e5c8] qt4 interface debug: sizeHint: 119 - 349
[0xb750cab8] vdpau decoder debug: Function InitVDPAUFunction called
[0xb750cab8] vdpau decoder debug: Function InitVDPAUFunction called
[0xb750cab8] vdpau decoder debug: Function InitVDPAUFunction called
[0xb750cab8] vdpau decoder debug: Function InitVDPAUFunction called
[0xb750cab8] vdpau decoder debug: Function InitVDPAUFunction called
[0xb750cab8] vdpau decoder debug: Function InitVDPAUFunction called
[0xb750cab8] vdpau decoder debug: Function InitVDPAUFunction called
[0xb750cab8] vdpau decoder debug: Function InitVDPAUFunction called
[0xb750cab8] vdpau decoder debug: Function InitVDPAUFunction called

[0xb750cab8] main decoder debug: using decoder module "vdpau"
[0xb750cab8] main decoder debug: TIMER module_need() : 72.934 ms - Total 72.934 ms / 1 intvls (Avg 72.934 ms)
[0x8fe4500] main packetizer debug: looking for packetizer module: 36 candidates
[0x8fe4500] main packetizer debug: using packetizer module "packetizer_mpegvideo"
[0x8fe4500] main packetizer debug: TIMER module_need() : 5.375 ms - Total 5.375 ms / 1 intvls (Avg 5.375 ms)
[0xb750cab8] main decoder debug: thread (decoder) created at priority 0 (input/decoder.c:315)
[0xb750cab8] main decoder debug: thread started
[0xb750cab8] vdpau decoder debug: Function DecodeVideo called

[0x8c7e5c8] qt4 interface debug: New Event: type 1107
[0x8c7e5c8] qt4 interface debug: Updating the geometry
[0x8c7e5c8] qt4 interface debug: size: 119 - 417
[0x8c808f0] ps demux warning: found sync code
[0x8fe4500] packetizer_mpegvideo packetizer debug: size 1920x1088 fps=30.000
[0x8c7e5c8] qt4 interface debug: sizeHint: 119 - 349
[0x8c808f0] ps demux debug: es id=0xbd0b format unknown
[0x8c7e5c8] qt4 interface debug: New Event: type 1108
[0x8c7e5c8] qt4 interface debug: Updating the geometry
[0x8c808f0] ps demux debug: es id=0xbd56 format unknown
[0x8c7e5c8] qt4 interface debug: size: 119 - 417
[0x8c7e5c8] qt4 interface debug: sizeHint: 119 - 349
[0x8c7e5c8] qt4 interface debug: New Event: type 1114
[0x8c7e5c8] qt4 interface debug: New Event: type 1114
[0x8c7e5c8] qt4 interface debug: New Event: type 1114
[0xb7511750] main decoder debug: looking for decoder module: 45 candidates
[0x8c7e5c8] qt4 interface debug: New Event: type 1107
[0x8c7e5c8] qt4 interface debug: Updating the geometry
[0x8c7e5c8] qt4 interface debug: size: 119 - 417
[0x8c7e5c8] qt4 interface debug: sizeHint: 119 - 349
[0xb7511750] main decoder debug: using decoder module "a52"
[0xb7511750] main decoder debug: TIMER module_need() : 6.977 ms - Total 6.977 ms / 1 intvls (Avg 6.977 ms)
[0xb7511750] main decoder debug: thread (decoder) created at priority 5 (input/decoder.c:315)
[0xb7511750] main decoder debug: thread started
[0x8c7e5c8] qt4 interface debug: New Event: type 1107
[0x8c7e5c8] qt4 interface debug: Updating the geometry
[0x8c7e5c8] qt4 interface debug: size: 119 - 417
[0x8c7e5c8] qt4 interface debug: sizeHint: 119 - 349
[0x8c7e5c8] qt4 interface debug: New Event: type 1108

NO other err,Segmentation Fault all the same.

djstava
Blank Cone
Blank Cone
Posts: 70
Joined: 17 Dec 2009 05:17

Re: Help me about VLC VDPAU via VAAPI?I'm trapped.

Postby djstava » 03 Jan 2010 13:02

Is my operation list correct??
Anybody who succeed in this,PLS give me some suggestions?Thank YOU!

djstava
Blank Cone
Blank Cone
Posts: 70
Joined: 17 Dec 2009 05:17

Re: Help me about VLC VDPAU via VAAPI?I'm trapped.

Postby djstava » 05 Jan 2010 10:22

Audio is OK,Video is not.

djstava
Blank Cone
Blank Cone
Posts: 70
Joined: 17 Dec 2009 05:17

Re: Help me about VLC VDPAU via VAAPI?I'm trapped.

Postby djstava » 06 Jan 2010 04:56

And I want to know which decoder module is used when play h264 file,avcodec or h264_vdpau??

djstava
Blank Cone
Blank Cone
Posts: 70
Joined: 17 Dec 2009 05:17

Re: Help me about VLC VDPAU via VAAPI?I'm trapped.

Postby djstava » 06 Jan 2010 10:12

modules/codec/vdpau/video.c

Code: Select all

i_used = avcodec_decode_video( p_sys->p_context, p_sys->p_ff_pic, &b_gotpicture, p_sys->i_buffer <= 0 && p_sys->b_flush ? NULL : (uint8_t*)p_sys->p_buffer, p_sys->i_buffer );
ffmpeg use p_sys->p_buffer to decoder one or more frames video,but p_sys->p_buffer always NULL.

lec-chr
New Cone
New Cone
Posts: 7
Joined: 03 Feb 2010 15:53

Re: Help me about VLC VDPAU via VAAPI?I'm trapped.

Postby lec-chr » 03 Feb 2010 16:30

Hi,

I'm also very interested in getting VDPAU integrated in VLC: have you been able to make some progress on this topic ?

Wondering when we will get it out of the box.....

fabriciolelis
New Cone
New Cone
Posts: 4
Joined: 14 Dec 2009 20:42

Re: Help me about VLC VDPAU via VAAPI?I'm trapped.

Postby fabriciolelis » 11 Feb 2010 20:52



Return to “VLC media player for Linux and friends Troubleshooting”

Who is online

Users browsing this forum: No registered users and 12 guests