vdpau & vlc

*nix specific usage questions
posthumecaver
New Cone
New Cone
Posts: 8
Joined: 20 Jun 2009 10:56

Re: vdpau & vlc

Postby posthumecaver » 23 Jun 2009 21:51

Now that is a really good question first of all, the file that I told crashing is working but only if my computer newly started and vlc running first time.....

I start this file first shutdown the VLC and try to restart VLC is crashing with Segmentation Fault with the same file, don't ask me why.....

Secondly the performance for this file relatively bad compaired to other one...

Now took very detailed log outputs may be you can tell me vdpau is activated or not

First the problem file, which is crashing after initial start causing considerably more load

main debug: adding item `1.mkv' ( /media/Data/1.mkv )
qt4 debug: Adding a new MRL to recent ones: /media/Data/1.mkv
main debug: rebuilding array of current - root Playlist
main debug: rebuild done - 1 items, index -1
main debug: processing request item 1.mkv node null skip 0
main debug: resyncing on 1.mkv
main debug: 1.mkv is at 0
main debug: starting new item
main debug: creating new input thread
main debug: Creating an input for '1.mkv'
main debug: thread started
main debug: using timeshift granularity of 50 MBytes
main debug: using timeshift path '/tmp'
main debug: thread (input) created at priority 10 (../../src/input/input.c:230)
main debug: `/media/Data/1.mkv' gives access `' demux `' path `/media/Data/1.mkv'
main debug: creating demux: access='' demux='' path='/media/Data/1.mkv'
main debug: looking for access_demux module: 6 candidates
main debug: TIMER module_need() : 23.515 ms - Total 23.515 ms / 1 intvls (Avg 23.515 ms)
main debug: creating access '' path='/media/Data/1.mkv'
main debug: looking for access module: 5 candidates
access_file debug: opening file `/media/Data/1.mkv'
main debug: using access module "access_file"
main debug: TIMER module_need() : 0.627 ms - Total 0.627 ms / 1 intvls (Avg 0.627 ms)
main debug: Using AStream*Stream
main debug: pre buffering
main debug: received first data after 17 ms
main debug: pre-buffering done 1024 bytes in 0s - 57 kbytes/s
main debug: looking for stream_filter module: 4 candidates
main debug: TIMER module_need() : 0.143 ms - Total 0.143 ms / 1 intvls (Avg 0.143 ms)
main debug: looking for stream_filter module: 1 candidate
main debug: using stream_filter module "stream_filter_record"
main debug: TIMER module_need() : 0.099 ms - Total 0.099 ms / 1 intvls (Avg 0.099 ms)
main debug: creating demux: access='' demux='' path='/media/Data/1.mkv'
main debug: looking for demux module: 53 candidates
mp4 debug: found Box: ftyp size 20
mp4 debug: found Box: moov size 1065938
mp4 debug: found Box: mvhd size 108
mp4 debug: read box: "mvhd" creation 733488d-27h:54m:20s modification 733488d-27h:54m:20s time scale 600 duration 694977d-48h:00m:13s rate 1.000000 volume 1.000000 next track id 3
mp4 debug: found Box: iods size 21
mp4 warning: unknown box type iods (incompletely loaded)
mp4 debug: found Box: trak size 911830
mp4 debug: found Box: tkhd size 92
mp4 debug: read box: "tkhd" creation 733488d-22h:19m:15s modification 733488d-27h:55m:23s duration 1815070108d-17h:05m:04s track ID 1 layer 0 volume 0.000000 width 1264.000000 height 704.000000
mp4 debug: found Box: mdia size 911730
mp4 debug: found Box: mdhd size 32
mp4 debug: read box: "mdhd" creation 733488d-22h:19m:15s modification 733488d-27h:55m:23s time scale 60000 duration 696019d-41h:52m:40s language und
mp4 debug: found Box: hdlr size 55
mp4 debug: read box: "hdlr" handler type vide name GPAC ISO Video Handler
mp4 debug: found Box: minf size 911635
mp4 debug: found Box: vmhd size 20
mp4 debug: read box: "vmhd" graphics-mode 0 opcolor (0, 0, 0)
mp4 debug: found Box: dinf size 36
mp4 debug: found Box: dref size 28
mp4 debug: found Box: url size 12
mp4 debug: read box: "url" url: (null)
mp4 debug: read box: "dref" entry-count 1
mp4 debug: found Box: stbl size 911571
mp4 debug: found Box: stsd size 171
mp4 debug: found Box: avc1 size 155
mp4 debug: found Box: avcC size 49
mp4 debug: read box: "avcC" version=1 profile=0x64 level=0x29 length size=4 sps=1 pps=1
mp4 debug: - sps[0] length=25
mp4 debug: - pps[0] length=5
mp4 debug: found Box: btrt size 20
mp4 warning: unknown box type btrt (incompletely loaded)
mp4 debug: read box: "vide" in stsd 1264x704 depth 24
mp4 debug: read box: "stsd" entry-count 1
mp4 debug: found Box: stts size 24
mp4 debug: read box: "stts" entry-count 1
mp4 debug: found Box: ctts size 526576
qt4 debug: IM: Setting an input
qt4 debug: Updating the geometry
qt4 debug: Updating the geometry
mp4 debug: read box: "ctts" entry-count 65820
mp4 debug: found Box: stss size 1956
mp4 debug: read box: "stss" entry-count 485
mp4 debug: found Box: stsc size 10168
mp4 debug: read box: "stsc" entry-count 846
mp4 debug: found Box: stsz size 359860
mp4 debug: read box: "stsz" sample-size 0 sample-count 89960
mp4 debug: found Box: stco size 12808
mp4 debug: read box: "co64" entry-count 3198
mp4 debug: found Box: trak size 153971
mp4 debug: found Box: tkhd size 92
mp4 debug: read box: "tkhd" creation 733488d-27h:55m:23s modification 733488d-27h:55m:23s duration 1816660836d-44h:09m:36s track ID 2 layer 0 volume 1.000000 width 0.000000 height 0.000000
mp4 debug: found Box: mdia size 153871
mp4 debug: found Box: mdhd size 32
mp4 debug: read box: "mdhd" creation 733488d-27h:55m:23s modification 733488d-27h:55m:23s time scale 48000 duration 695810d-19h:48m:16s language und
mp4 debug: found Box: hdlr size 55
mp4 debug: read box: "hdlr" handler type soun name GPAC ISO Audio Handler
mp4 debug: found Box: minf size 153776
mp4 debug: found Box: smhd size 16
mp4 debug: read box: "smhd" balance 0.000000
mp4 debug: found Box: dinf size 36
mp4 debug: found Box: dref size 28
mp4 debug: found Box: url size 12
mp4 debug: read box: "url" url: (null)
mp4 debug: read box: "dref" entry-count 1
mp4 debug: found Box: stbl size 153716
mp4 debug: found Box: stsd size 96
mp4 debug: found Box: mp4a size 80
mp4 debug: read box: "soun" mp4 or qt1/2 (rest=44)
mp4 debug: found Box: esds size 44
mp4 debug: found esds MPEG4ESDescr (30Bytes)
mp4 debug: found esds MP4DecConfigDescr (22Bytes)
mp4 debug: found esds MP4DecSpecificDescr (7Bytes)
mp4 debug: read box: "soun" in stsd channel 2 sample size 16 sample rate 24000.000000
mp4 debug: read box: "stsd" entry-count 1
mp4 debug: found Box: stts size 24
mp4 debug: read box: "stts" entry-count 1
mp4 debug: found Box: stsc size 52
mp4 debug: read box: "stsc" entry-count 3
mp4 debug: found Box: stsz size 140728
mp4 debug: read box: "stsz" sample-size 0 sample-count 35177
mp4 debug: found Box: stco size 12808
mp4 debug: read box: "co64" entry-count 3198
mp4 debug: found Box: mdat size 955986230
mp4 debug: skip box: "mdat"
mp4 debug: found Box: free size 96
mp4 debug: skip box: "free"
mp4 debug: dumping root Box "root"
mp4 debug: | + ftyp size 20
mp4 debug: | + moov size 1065938
mp4 debug: | | + mvhd size 108
mp4 debug: | | + iods size 21
mp4 debug: | | + trak size 911830
mp4 debug: | | | + tkhd size 92
mp4 debug: | | | + mdia size 911730
mp4 debug: | | | | + mdhd size 32
mp4 debug: | | | | + hdlr size 55
mp4 debug: | | | | + minf size 911635
mp4 debug: | | | | | + vmhd size 20
mp4 debug: | | | | | + dinf size 36
mp4 debug: | | | | | | + dref size 28
mp4 debug: | | | | | | | + url size 12
mp4 debug: | | | | | + stbl size 911571
mp4 debug: | | | | | | + stsd size 171
mp4 debug: | | | | | | | + avc1 size 155
mp4 debug: | | | | | | | | + avcC size 49
mp4 debug: | | | | | | | | + btrt size 20
mp4 debug: | | | | | | + stts size 24
mp4 debug: | | | | | | + ctts size 526576
mp4 debug: | | | | | | + stss size 1956
mp4 debug: | | | | | | + stsc size 10168
mp4 debug: | | | | | | + stsz size 359860
mp4 debug: | | | | | | + stco size 12808
mp4 debug: | | + trak size 153971
mp4 debug: | | | + tkhd size 92
mp4 debug: | | | + mdia size 153871
mp4 debug: | | | | + mdhd size 32
mp4 debug: | | | | + hdlr size 55
mp4 debug: | | | | + minf size 153776
mp4 debug: | | | | | + smhd size 16
mp4 debug: | | | | | + dinf size 36
mp4 debug: | | | | | | + dref size 28
mp4 debug: | | | | | | | + url size 12
mp4 debug: | | | | | + stbl size 153716
mp4 debug: | | | | | | + stsd size 96
mp4 debug: | | | | | | | + mp4a size 80
mp4 debug: | | | | | | | | + esds size 44
mp4 debug: | | | | | | + stts size 24
mp4 debug: | | | | | | + stsc size 52
mp4 debug: | | | | | | + stsz size 140728
mp4 debug: | | | | | | + stco size 12808
mp4 debug: | + mdat size 955986230
mp4 debug: | + free size 96
mp4 debug: ISO Media file (isom) version 1.
mp4 debug: found 2 tracks
mp4 debug: track[Id 0x1] read 3198 chunk
mp4 warning: CTTS table
mp4 debug: track[Id 0x1] read 89960 samples length:1500s
main debug: selecting program id=0
mp4 debug: adding track[Id 0x1] video (enable) language undef
mp4 debug: track[Id 0x2] read 3198 chunk
mp4 debug: track[Id 0x2] read 35177 samples length:1500s
mp4 debug: adding track[Id 0x2] audio (enable) language undef
main debug: using demux module "mp4"
main debug: TIMER module_need() : 185.492 ms - Total 185.492 ms / 1 intvls (Avg 185.492 ms)
mp4 warning: control query 14 unimplemented
mp4 warning: DEMUX_GET_FPS unimplemented !!
main debug: looking for a subtitle file in /media/Data_700/bt/Finals.Game.3.Lakers@Magic-hdt/
main debug: looking for decoder module: 26 candidates
avcodec debug: libavcodec initialized (interface 0x341400)
avcodec debug: ffmpeg codec (H264 - MPEG-4 AVC (part 10)) started
main debug: using decoder module "avcodec"
main debug: TIMER module_need() : 3.750 ms - Total 3.750 ms / 1 intvls (Avg 3.750 ms)
main debug: thread started
main debug: thread (decoder) created at priority 0 (../../src/input/decoder.c:302)
main debug: looking for decoder module: 26 candidates
avcodec debug: libavcodec already initialized
avcodec debug: ffmpeg codec (MPEG AAC Audio) started
avcodec debug: Using 192000 bytes output buffer
main debug: using decoder module "avcodec"
main debug: TIMER module_need() : 26.346 ms - Total 26.346 ms / 1 intvls (Avg 26.346 ms)
main debug: thread started
main debug: thread (decoder) created at priority 5 (../../src/input/decoder.c:302)
main debug: `/media/Data/1.mkv' successfully opened
mp4 debug: track[Id 0x1] using Sync Sample Box (stss)
mp4 debug: stts gives 0 --> 0 (sample number)
mp4 debug: track[Id 0x2] does not provide Sync Sample Box (stss)
main debug: Buffering 0%
avcodec warning: Physical channel configuration not set : guessing
main debug: creating aout
main debug: looking for audio output module: 5 candidates
main debug: Buffering 0%
main debug: Buffering 33%
main debug: Buffering 66%
main debug: Buffering 100%
main debug: Stream buffering done (400 ms in 65 ms)
main debug: no usable vout present, spawning one
main debug: looking for text renderer module: 2 candidates
alsa debug: opening ALSA device `default'
main debug: thread started
qt4 debug: Updating the geometry
qt4 debug: Updating the geometry
qt4 debug: Updating the geometry
qt4 debug: Updating the geometry
qt4 debug: Updating the geometry
freetype debug: Building font database...
freetype debug: Finished building font database.
freetype debug: Took 405 microseconds
main debug: thread (fontlist builder) created at priority 0 (../../../modules/misc/freetype.c:473)
main debug: thread ended
freetype debug: using fontsize: 2
main debug: using text renderer module "freetype"
main debug: TIMER module_need() : 43.543 ms - Total 43.543 ms / 1 intvls (Avg 43.543 ms)
main debug: looking for video filter2 module: 20 candidates
swscale debug: 32x32 chroma: YUVA -> 16x16 chroma: YUVA with scaling using Bicubic (good quality)
main debug: using video filter2 module "swscale"
main debug: TIMER module_need() : 1.132 ms - Total 1.132 ms / 1 intvls (Avg 1.132 ms)
main debug: looking for video filter2 module: 20 candidates
yuvp debug: YUVP to YUVA converter
main debug: using video filter2 module "yuvp"
main debug: TIMER module_need() : 0.273 ms - Total 0.273 ms / 1 intvls (Avg 0.273 ms)
main debug: window size: 1264x704
main debug: looking for video output module: 6 candidates
xvideo debug: adaptor 0, port 280, format 0x32315659 (YV12) planar
main debug: looking for xwindow module: 4 candidates
qt4 debug: requesting video...
qt4 debug: Video was requested -1, -1
main debug: thread started
qt4 debug: Updating the geometry
main debug: thread (aout) created at priority 15 (../../../modules/audio_output/alsa.c:687)
main debug: using audio output module "alsa"
main debug: TIMER module_need() : 149.004 ms - Total 149.004 ms / 1 intvls (Avg 149.004 ms)
main debug: output 'fl32' 24000 Hz Stereo frame=1 samples/8 bytes
main debug: mixer 'fl32' 24000 Hz Stereo frame=1 samples/8 bytes
main debug: no need for any filter
main debug: looking for audio mixer module: 3 candidates
main debug: using audio mixer module "float32_mixer"
main debug: TIMER module_need() : 0.204 ms - Total 0.204 ms / 1 intvls (Avg 0.204 ms)
main debug: input 's16l' 24000 Hz Stereo frame=1 samples/4 bytes
main debug: looking for audio filter module: 1 candidate
scaletempo warning: bad input or output format
main warning: no audio filter module matching "scaletempo" could be loaded
main debug: TIMER module_need() : 0.329 ms - Total 0.329 ms / 1 intvls (Avg 0.329 ms)
main debug: looking for audio filter module: 1 candidate
scaletempo debug: format: 24000 rate, 2 nch, 4 bps, fl32
scaletempo debug: params: 30 stride, 0.200 overlap, 14 search
scaletempo debug: 1.000 scale, 720.000 stride_in, 720 stride_out, 576 standing, 144 overlap, 336 search, 1200 queue, fl32 mode
main debug: using audio filter module "scaletempo"
main debug: TIMER module_need() : 0.516 ms - Total 0.516 ms / 1 intvls (Avg 0.516 ms)
main debug: filter(s) 's16l'->'fl32' 24000 Hz->24000 Hz Stereo->Stereo
main debug: looking for audio filter module: 24 candidates
main debug: using audio filter module "converter_float"
main debug: TIMER module_need() : 0.161 ms - Total 0.161 ms / 1 intvls (Avg 0.161 ms)
main debug: found a filter for the whole conversion
main debug: filter(s) 'fl32'->'fl32' 26400 Hz->24000 Hz Stereo->Stereo
main debug: looking for audio filter module: 24 candidates
main debug: using audio filter module "bandlimited_resampler"
main debug: TIMER module_need() : 0.308 ms - Total 0.308 ms / 1 intvls (Avg 0.308 ms)
main debug: found a filter for the whole conversion
main debug: End of audio preroll
qt4 debug: Updating the geometry
qt4 debug: Updating the geometry
qt4 debug: Updating the geometry
qt4 debug: Updating the geometry
qt4 debug: New caching: 100
qt4 debug: New caching: 100
qt4 debug: Video is resizing to: 1264 704
main debug: using xwindow module "qt4"
main debug: TIMER module_need() : 111.559 ms - Total 111.559 ms / 1 intvls (Avg 111.559 ms)
xvideo debug: XShm video extension v1.1 (without pixmaps, opcode: 142)
xvideo debug: Window manager supports NetWM
xvideo debug: Window manager supports _NET_WM_STATE_FULLSCREEN
xvideo debug: Window manager supports _NET_WM_STATE_ABOVE
xvideo debug: Window manager supports _NET_WM_STATE_BELOW
main debug: using video output module "xvideo"
main debug: TIMER module_need() : 157.005 ms - Total 157.005 ms / 1 intvls (Avg 157.005 ms)
main debug: Deinterlacing available
main debug: got 16 direct buffer(s)
main debug: pic render sz 1264x704, of (0,0), vsz 1264x704, 4cc I420, ar 193909:108000, sar 1:1, msk r0x0 g0x0 b0x0
main debug: pic in sz 1264x704, of (0,0), vsz 1264x704, 4cc I420, ar 193909:108000, sar 1:1, msk r0x0 g0x0 b0x0
main debug: pic out sz 1264x704, of (0,0), vsz 1264x704, 4cc I420, ar 193909:108000, sar 1:1, msk r0x0 g0x0 b0x0
main debug: direct render, mapping render pictures 0-14 to system pictures 1-15
main debug: End of video preroll
main debug: Received first picture
qt4 debug: Updating the geometry
main debug: Post-processing available
qt4 debug: Qt: Entering Fullscreen
main debug: Decoder buffering done in 328 ms
freetype debug: using fontsize: 44
main debug: looking for video blending module: 1 candidate
blend debug: chroma: YUVA -> I420
main debug: using video blending module "blend"
main debug: TIMER module_need() : 0.163 ms - Total 0.163 ms / 1 intvls (Avg 0.163 ms)
main warning: output date isn't PTS date, requesting resampling (78497)
main warning: buffer is 78495 late, triggering upsampling
main warning: output date isn't PTS date, requesting resampling (47084)
main warning: audio drift is too big (125246), dropping buffer

posthumecaver
New Cone
New Cone
Posts: 8
Joined: 20 Jun 2009 10:56

Re: vdpau & vlc

Postby posthumecaver » 23 Jun 2009 21:56

Ans this the second file that is working without problem and running with maximal 30 load....

main debug: adding item `uw.mkv' ( /media/Data/uw.mkv )
qt4 debug: Adding a new MRL to recent ones: /media/Data/uw.mkv
main debug: rebuilding array of current - root Playlist
main debug: rebuild done - 1 items, index -1
main debug: processing request item uw.mkv node null skip 0
main debug: resyncing on uw.mkv
main debug: uw.mkv is at 0
main debug: starting new item
main debug: creating new input thread
main debug: Creating an input for uwmkv'
main debug: thread (input) created at priority 10 (../../src/input/input.c:230)
qt4 debug: IM: Setting an input
qt4 debug: Updating the geometry
main debug: thread started
main debug: using timeshift granularity of 50 MBytes
main debug: using timeshift path '/tmp'
main debug: `/media/Data/uw.mkv' gives access `' demux `' path `/media/Data/uw.mkv'
main debug: creating demux: access='' demux='' path='/media/Data/uw.mkv'
main debug: looking for access_demux module: 6 candidates
qt4 debug: Updating the geometry
main debug: TIMER module_need() : 2.781 ms - Total 2.781 ms / 1 intvls (Avg 2.781 ms)
main debug: creating access '' path='/media/Data/uw.mkv'
main debug: looking for access module: 5 candidates
access_file debug: opening file `/media/Data/uw.mkv'
main debug: using access module "access_file"
main debug: TIMER module_need() : 1.321 ms - Total 1.321 ms / 1 intvls (Avg 1.321 ms)
main debug: Using AStream*Stream
main debug: pre buffering
main debug: received first data after 0 ms
main debug: pre-buffering done 1024 bytes in 0s - 24390 kbytes/s
main debug: looking for stream_filter module: 4 candidates
main debug: TIMER module_need() : 0.194 ms - Total 0.194 ms / 1 intvls (Avg 0.194 ms)
main debug: looking for stream_filter module: 1 candidate
main debug: using stream_filter module "stream_filter_record"
main debug: TIMER module_need() : 0.191 ms - Total 0.191 ms / 1 intvls (Avg 0.191 ms)
main debug: creating demux: access='' demux='' path='/media/Data/uw.mkv'
main debug: looking for demux module: 53 candidates
mkv debug: | + Seek head
mkv debug: | | + Seek
mkv debug: | - info at 4135
mkv debug: | + Information
mkv debug: | | + TimecodeScale=1000000
mkv debug: | | + Muxing Application=libebml v0.7.7 + libmatroska v0.8.1
mkv debug: | | + Writing Application=mkvmerge v2.5.3 ('Boogie') built on Mar 7 2009 15:00:41
mkv debug: | | + Duration=6384337
mkv debug: | | + Date=Mon Mar 30 06:09:53 2009
mkv debug: | | + UID=-1701155159
mkv debug: | | + Seek
mkv debug: | - tracks at 4282
mkv debug: | + Tracks
mkv debug: | | + Track Entry
mkv debug: | | | + Track Number=1
mkv debug: | | | + Track UID=1
mkv debug: | | | + Track Type=video
mkv debug: | | | + Unknown (N11libmatroska19KaxTrackFlagEnabledE)
mkv debug: | | | + Track Default=1
mkv debug: | | | + Unknown (N11libmatroska18KaxTrackFlagForcedE)
mkv debug: | | | + Track Lacing=0
mkv debug: | | | + Track MinCache=1
mkv debug: | | | + Track TimeCodeScale=1.000000
mkv debug: | | | + Unknown (N11libmatroska21KaxMaxBlockAdditionIDE)
mkv debug: | | | + Track CodecId=V_MPEG4/ISO/AVC
mkv debug: | | | + Unknown (N11libmatroska17KaxCodecDecodeAllE)
mkv debug: | | | + Track CodecPrivate size=169
mkv debug: | | | + Track Default Duration=41708332
mkv debug: | | | + Track Language=`eng'
mkv debug: | | | + Track Name=x264@High Profile L4.1 720p
mkv debug: | | | + Track Video
mkv debug: | | | | + width=1280
mkv debug: | | | | + height=534
mkv debug: | | | | + Unknown (N11libmatroska22KaxVideoFlagInterlacedE)
mkv debug: | | | | + display width=640
mkv debug: | | | | + display height=267
mkv debug: | | + Track Entry
mkv debug: | | | + Track Number=2
mkv debug: | | | + Track UID=3057261217
mkv debug: | | | + Track Type=audio
mkv debug: | | | + Unknown (N11libmatroska19KaxTrackFlagEnabledE)
mkv debug: | | | + Track Default=1
mkv debug: | | | + Unknown (N11libmatroska18KaxTrackFlagForcedE)
mkv debug: | | | + Track Lacing=1
mkv debug: | | | + Track MinCache=0
mkv debug: | | | + Track TimeCodeScale=1.000000
mkv debug: | | | + Unknown (N11libmatroska21KaxMaxBlockAdditionIDE)
mkv debug: | | | + Track CodecId=A_DTS
mkv debug: | | | + Unknown (N11libmatroska17KaxCodecDecodeAllE)
mkv debug: | | | + Track Language=`eng'
mkv debug: | | | + Track Name=DTS5.1 1536Kbps from LPCM5.1
mkv debug: | | | + Track Audio
mkv debug: | | | | + afreq=48000
mkv debug: | | | | + achan=6
mkv debug: | | + Track Entry
mkv debug: | | | + Track Number=3
mkv debug: | | | + Track UID=81794987
mkv debug: | | | + Track Type=subtitle
mkv debug: | | | + Unknown (N11libmatroska19KaxTrackFlagEnabledE)
mkv debug: | | | + Track Default=0
mkv debug: | | | + Unknown (N11libmatroska18KaxTrackFlagForcedE)
mkv debug: | | | + Track Lacing=0
mkv debug: | | | + Track MinCache=0
mkv debug: | | | + Track TimeCodeScale=1.000000
mkv debug: | | | + Unknown (N11libmatroska21KaxMaxBlockAdditionIDE)
mkv debug: | | | + Track CodecId=S_TEXT/UTF8
mkv debug: | | | + Unknown (N11libmatroska17KaxCodecDecodeAllE)
mkv debug: | | | + Track Language=`eng'
mkv debug: | | | + Track Name=English
mkv debug: | | + Track Entry
mkv debug: | | | + Track Number=4
mkv debug: | | | + Track UID=1217019565
mkv debug: | | | + Track Type=subtitle
mkv debug: | | | + Unknown (N11libmatroska19KaxTrackFlagEnabledE)
mkv debug: | | | + Track Default=1
mkv debug: | | | + Unknown (N11libmatroska18KaxTrackFlagForcedE)
mkv debug: | | | + Track Lacing=0
mkv debug: | | | + Track MinCache=0
mkv debug: | | | + Track TimeCodeScale=1.000000
mkv debug: | | | + Unknown (N11libmatroska21KaxMaxBlockAdditionIDE)
mkv debug: | | | + Track CodecId=S_TEXT/UTF8
mkv debug: | | | + Unknown (N11libmatroska17KaxCodecDecodeAllE)
mkv debug: | | | + Track Language=`chi'
mkv debug: | | | + Track Name=Simplified Chinese
mkv debug: | | + Seek
mkv debug: | - chained seekhead at 4592587590
mkv debug: | + Seek head
mkv debug: | | + Seek
mkv debug: | - unknown seekhead reference at 5886
mkv debug: | | + Seek
mkv debug: | - unknown seekhead reference at 387407
mkv debug: | | + Seek
mkv debug: | - unknown seekhead reference at 1378901
mkv debug: | | + Seek
mkv debug: | - unknown seekhead reference at 2881359
mkv debug: | | + Seek
mkv debug: | - unknown seekhead reference at 4391468
mkv debug: | | + Seek
mkv debug: | - unknown seekhead reference at 5922285

mkv debug: | - unknown seekhead reference at 4592253454
mkv debug: | | + Seek
mkv debug: | | + Unknown (N7libebml8EbmlVoidE)
mkv debug: | - cues at 4592547429
mkv debug: | + Cues
mkv debug: | - loading cues done.
mkv debug: | + Preload Unknown (N7libebml8EbmlVoidE)
mkv debug: | + Information
mkv debug: | + Tracks
mkv debug: | + Preload Unknown (N7libebml8EbmlVoidE)
mkv debug: | + Cluster
mkv debug: found 4 es
main debug: selecting program id=0
mkv debug: Starting the UI Hook
main debug: thread started
main debug: thread (mkv event thread handler) created at priority 0 (../../../../modules/demux/mkv/demux.cpp:199)
main debug: using demux module "mkv"
main debug: TIMER module_need() : 125.506 ms - Total 125.506 ms / 1 intvls (Avg 125.506 ms)
main debug: looking for a subtitle file in /media/Data/uw/
main debug: looking for decoder module: 26 candidates
avcodec debug: libavcodec initialized (interface 0x341400)
avcodec debug: ffmpeg codec (H264 - MPEG-4 AVC (part 10)) started
main debug: using decoder module "avcodec"
main debug: TIMER module_need() : 13.649 ms - Total 13.649 ms / 1 intvls (Avg 13.649 ms)
main debug: thread started
main debug: thread (decoder) created at priority 0 (../../src/input/decoder.c:302)
main debug: looking for decoder module: 26 candidates
main debug: using decoder module "dts"
main debug: TIMER module_need() : 0.406 ms - Total 0.406 ms / 1 intvls (Avg 0.406 ms)
main debug: thread started
main debug: thread (decoder) created at priority 5 (../../src/input/decoder.c:302)
main debug: looking for decoder module: 26 candidates
avcodec debug: libavcodec already initialized
avcodec debug: codec not found (Text subtitles with various tags)
subsdec debug: trying demuxer-specified character encoding: UTF-8
main debug: using decoder module "subsdec"
main debug: TIMER module_need() : 2.675 ms - Total 2.675 ms / 1 intvls (Avg 2.675 ms)
main debug: thread started
main debug: thread (decoder) created at priority 0 (../../src/input/decoder.c:302)
main debug: `/media/Data/uw.mkv' successfully opened
main error: Invalid PCR value in ES_OUT_SET_(GROUP_)PCR !
main error: Invalid PCR value in ES_OUT_SET_(GROUP_)PCR !
main debug: Buffering 0%
dts info: DTS channels:6 samplerate:48000 bitrate:1536000
main debug: creating aout
main debug: looking for audio output module: 5 candidates
main debug: Buffering 27%
main debug: Buffering 0%
main debug: no usable vout present, spawning one
main debug: looking for text renderer module: 2 candidates
main debug: thread started
freetype debug: Building font database...
freetype debug: Finished building font database.
freetype debug: Took 410 microseconds
main debug: Buffering -14%
main debug: Buffering 13%
main debug: Buffering 28%
main debug: Buffering 56%
main debug: Buffering 82%
main debug: Buffering 55%
main debug: Buffering 41%
main debug: Buffering 68%
main debug: Buffering 85%
main debug: Stream buffering done (342 ms in 30 ms)
main debug: thread (fontlist builder) created at priority 0 (../../../modules/misc/freetype.c:473)
main debug: thread ended
freetype debug: using fontsize: 2
main debug: using text renderer module "freetype"
main debug: TIMER module_need() : 8.010 ms - Total 8.010 ms / 1 intvls (Avg 8.010 ms)
main debug: looking for video filter2 module: 20 candidates
swscale debug: 32x32 chroma: YUVA -> 16x16 chroma: YUVA with scaling using Bicubic (good quality)
main debug: using video filter2 module "swscale"
main debug: TIMER module_need() : 2.265 ms - Total 2.265 ms / 1 intvls (Avg 2.265 ms)
main debug: looking for video filter2 module: 20 candidates
yuvp debug: YUVP to YUVA converter
main debug: using video filter2 module "yuvp"
main debug: TIMER module_need() : 3.307 ms - Total 3.307 ms / 1 intvls (Avg 3.307 ms)
main debug: window size: 1280x534
main debug: looking for video output module: 6 candidates
xvideo debug: adaptor 0, port 280, format 0x32315659 (YV12) planar
main debug: looking for xwindow module: 4 candidates
qt4 debug: requesting video...
qt4 debug: Video was requested -1, -1
alsa debug: opening ALSA device `default'
main debug: thread (aout) created at priority 15 (../../../modules/audio_output/alsa.c:687)
main debug: thread started
main debug: using audio output module "alsa"
main debug: TIMER module_need() : 138.934 ms - Total 138.934 ms / 1 intvls (Avg 138.934 ms)
main debug: output 'fl32' 48000 Hz Stereo frame=1 samples/8 bytes
main debug: mixer 'fl32' 48000 Hz Stereo frame=1 samples/8 bytes
main debug: no need for any filter
main debug: looking for audio mixer module: 3 candidates
main debug: using audio mixer module "float32_mixer"
main debug: TIMER module_need() : 0.369 ms - Total 0.369 ms / 1 intvls (Avg 0.369 ms)
main debug: input 'dts ' 48000 Hz 3F2R/LFE frame=512 samples/2048 bytes
main debug: looking for audio filter module: 1 candidate
scaletempo warning: bad input or output format
scaletempo warning: input and output formats are not similar
main warning: no audio filter module matching "scaletempo" could be loaded
main debug: TIMER module_need() : 0.377 ms - Total 0.377 ms / 1 intvls (Avg 0.377 ms)
main debug: looking for audio filter module: 1 candidate
scaletempo debug: format: 48000 rate, 6 nch, 4 bps, fl32
scaletempo debug: params: 30 stride, 0.200 overlap, 14 search
scaletempo debug: 1.000 scale, 1440.000 stride_in, 1440 stride_out, 1152 standing, 288 overlap, 672 search, 2400 queue, fl32 mode
main debug: using audio filter module "scaletempo"
main debug: TIMER module_need() : 0.374 ms - Total 0.374 ms / 1 intvls (Avg 0.374 ms)
main debug: filter(s) 'dts '->'fl32' 48000 Hz->48000 Hz 3F2R/LFE->3F2R/LFE
main debug: looking for audio filter module: 24 candidates
main debug: using audio filter module "dtstofloat32"
main debug: TIMER module_need() : 0.725 ms - Total 0.725 ms / 1 intvls (Avg 0.725 ms)
main debug: found a filter for the whole conversion
main debug: filter(s) 'fl32'->'fl32' 48000 Hz->48000 Hz 3F2R/LFE->Stereo
main debug: looking for audio filter module: 24 candidates
main debug: using audio filter module "simple_channel_mixer"
main debug: TIMER module_need() : 1.801 ms - Total 1.801 ms / 1 intvls (Avg 1.801 ms)
main debug: found a filter for the whole conversion
main debug: filter(s) 'fl32'->'fl32' 52800 Hz->48000 Hz Stereo->Stereo
main debug: looking for audio filter module: 24 candidates
main debug: using audio filter module "bandlimited_resampler"
main debug: TIMER module_need() : 0.366 ms - Total 0.366 ms / 1 intvls (Avg 0.366 ms)
main debug: found a filter for the whole conversion
main debug: End of audio preroll
qt4 debug: Updating the geometry
qt4 debug: Updating the geometry
qt4 debug: Updating the geometry
qt4 debug: Updating the geometry
qt4 debug: Updating the geometry
qt4 debug: Updating the geometry
qt4 debug: Updating the geometry
qt4 debug: Updating the geometry
qt4 debug: Updating the geometry
qt4 debug: Updating the geometry
qt4 debug: Updating the geometry
qt4 debug: Updating the geometry
qt4 debug: Updating the geometry
qt4 debug: Updating the geometry
qt4 debug: New caching: 100
qt4 debug: New caching: 100
qt4 debug: Video is resizing to: 1280 534
main debug: using xwindow module "qt4"
main debug: TIMER module_need() : 6710.809 ms - Total 6710.809 ms / 1 intvls (Avg 6710.809 ms)
xvideo debug: XShm video extension v1.1 (without pixmaps, opcode: 142)
xvideo debug: Window manager supports NetWM
xvideo debug: Window manager supports _NET_WM_STATE_FULLSCREEN
xvideo debug: Window manager supports _NET_WM_STATE_ABOVE
xvideo debug: Window manager supports _NET_WM_STATE_BELOW
main debug: using video output module "xvideo"
main debug: TIMER module_need() : 6716.532 ms - Total 6716.532 ms / 1 intvls (Avg 6716.532 ms)
main debug: Deinterlacing available
main debug: got 16 direct buffer(s)
main debug: pic render sz 1280x534, of (0,0), vsz 1280x534, 4cc I420, ar 207101:86400, sar 1:1, msk r0x0 g0x0 b0x0
main debug: pic in sz 1280x534, of (0,0), vsz 1280x534, 4cc I420, ar 207101:86400, sar 1:1, msk r0x0 g0x0 b0x0
main debug: pic out sz 1280x534, of (0,0), vsz 1280x534, 4cc I420, ar 207101:86400, sar 1:1, msk r0x0 g0x0 b0x0
main debug: direct render, mapping render pictures 0-14 to system pictures 1-15
main debug: End of video preroll
main debug: Received first picture
main debug: Post-processing available
main debug: Decoder buffering done in 6774 ms
main warning: PTS is out of range (-9468), dropping buffer
main warning: PTS is out of range (-20085), dropping buffer
main warning: PTS is out of range (-30736), dropping buffer
main warning: late picture skipped (16425 > -10)
freetype debug: using fontsize: 33
main debug: looking for video blending module: 1 candidate
blend debug: chroma: YUVA -> I420
main debug: using video blending module "blend"
main debug: TIMER module_need() : 0.824 ms - Total 0.824 ms / 1 intvls (Avg 0.824 ms)
main warning: output date isn't PTS date, requesting resampling (45665)
main warning: buffer is 45665 late, triggering upsampling
qt4 debug: Updating the geometry
qt4 debug: Qt: Entering Fullscreen
main warning: resampling stopped after 6769293 usec (drift: -1227)

posthumecaver
New Cone
New Cone
Posts: 8
Joined: 20 Jun 2009 10:56

Re: vdpau & vlc

Postby posthumecaver » 23 Jun 2009 21:58

If you say vdpau is succesfully activated I can write post how the whole compile process...

One other question is VLC single threaded, with the the file that is causing the problem most of the load gets to one core.....

Spulit
Blank Cone
Blank Cone
Posts: 11
Joined: 20 Nov 2008 18:29

Re: vdpau & vlc

Postby Spulit » 25 Jun 2009 19:46

Well, I guess I did the job. However, despite playing H.264 files ok, I'm not getting good results with IPTV streams sent by Anevia IPTV streamers... Any idea?

Thanks

stevendaniel
New Cone
New Cone
Posts: 1
Joined: 03 Jul 2009 17:56

Re: vdpau & vlc

Postby stevendaniel » 03 Jul 2009 18:44

Is anyone who's had success able to post more detailed information on the process required?

I'm using ubuntu 9.04 on an acer revo and have done the following:

1) Installed the latest ffmpeg (including H264_VAAPI patch)

2) Installed libva and vdpau-video. When I run vainfo I get the following:

libva: libva version 0.30.4-sds2
Xlib: extension "XFree86-DRI" missing on display ":0.0".
libva: va_NVCTRL_GetDriverName: 180.44.0 nvidia (screen 0)
libva: va_getDriverName() returns 0
libva: Trying to open /usr/lib/va/drivers/nvidia_drv_video.so
libva: va_openDriver() returns 0
vainfo: VA API version: 0.30
vainfo: Driver version: Splitted-Desktop Systems VDPAU backend for VA API - 0.3.2
vainfo: Supported profile and entrypoints
VAProfileMPEG2Simple : VAEntrypointVLD
VAProfileMPEG2Main : VAEntrypointVLD
VAProfileH264Baseline : VAEntrypointVLD
VAProfileH264Main : VAEntrypointVLD
VAProfileH264High : VAEntrypointVLD
VAProfileVC1Simple : VAEntrypointVLD
VAProfileVC1Main : VAEntrypointVLD
VAProfileVC1Advanced : VAEntrypointVLD

3) Installed the latest VLC (using VLC 1.1-git)

Before compiling I edited configure.ac and added va to the avcodec libraries:

VLC_ADD_LIBS([avcodec],[$AVCODEC_LIBS -lva-x11])


I've tried streaming a variety of HD media but unfortunately not seeing the hardware acceleration (CPU usage is typically at 60-150% depending on the file).

Any further info would be much appreciated!

Spulit
Blank Cone
Blank Cone
Posts: 11
Joined: 20 Nov 2008 18:29

Re: vdpau & vlc

Postby Spulit » 05 Jul 2009 14:49

Hi,

Did you set

ffmpeg-hw=1

in your vlcrc config file?

ksng
New Cone
New Cone
Posts: 4
Joined: 19 Jun 2009 02:40

Re: vdpau & vlc

Postby ksng » 12 Jul 2009 08:06

I found that the vlc compile process doesn't flag out errors when there're missing headers/libraries included, at least when building the ffmpeg extension. Below are the stupid and dirty steps I've followed to successfully build from VLC 1.1 GIT under Ubuntu 8.04 environment:

1. Modify ../modules/codec/avcodec/avcodec.h to uncomment the last line, to make it become:
#define HAVE_AVCODEC_VAAPI 1

2. Modify ../modules/codec/avcodec/vaapi.c to insert the followings at around line 50 (after the #include(s) ):

struct vaapi_context {
void *display;
uint32_t config_id;
uint32_t context_id;
uint32_t pic_param_buf_id;
uint32_t iq_matrix_buf_id;
uint32_t bitplane_buf_id;
uint32_t *slice_buf_ids;
unsigned int n_slice_buf_ids;
unsigned int slice_buf_ids_alloc;
void *slice_params;
unsigned int slice_param_size;
unsigned int slice_params_alloc;
unsigned int slice_count;
const uint8_t *slice_data;
uint32_t slice_data_size;
};

The thing is 'vaapi_context' is defined in avcodec.h of libavcodec, but it is not included. So I just added it locally.

3. Modify ../modules/codec/avcodec/vaapi.c again to add the following #include(s) at around line 49 after '#include <X11/Xlib.h>':

#include <X11/Xutil.h>
#include <va/va.h>

The thing is that 'XOpenDisplay()' is defined in Xutil.h, and 'vaInitialize()' is defined in va.h, but both headers are not included. The compile process doesn't flag out any error for their missing, but it is just that the ffmpeg extension is not included in the built vlc ('vlc --list |grep -i ffmpeg' won't show anything).

4. For the build scripts, my stupid way is just to modify vlc-config.in.in for the 'libs' line at around line 22 to:
libs="-lX11 -lva -lva-x11"

The change will also be made to vlc-config.in and vlc-config after './configure'.

The 3 libraries are required just for avcodec, so a more elegant way should be to add them under the avcodec section.

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: vdpau & vlc

Postby Jean-Baptiste Kempf » 12 Jul 2009 15:03

1 is right
2 is not
4. just add it to configure.ac
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

ksng
New Cone
New Cone
Posts: 4
Joined: 19 Jun 2009 02:40

Re: vdpau & vlc

Postby ksng » 12 Jul 2009 15:53

I found if I perform my step 1 but not step 2, then compilation would abort with following error:

=== quote ===
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I. -I../../.. -I../../../include -I../../../include -DSYS_LINUX -I/usr/local/include -D_FILE_OFFSET_BITS=64 -D__USE_UNIX98 -D_LARGEFILE64_SOURCE -D_REENTRANT -D_THREAD_SAFE -D__LIBVLC__ -D__PLUGIN__ -DMODULE_NAME=avcodec -DMODULE_NAME_IS_avcodec -DMODULE_STRING=\"avcodec\" -O2 -ffast-math -funroll-loops -mtune=pentium2 -fomit-frame-pointer -I/usr/local/include -Wall -Wextra -Wsign-compare -Wundef -Wpointer-arith -Wbad-function-cast -Wcast-align -Wwrite-strings -Wmissing-prototypes -Wvolatile-register-var -Werror-implicit-function-declaration -MT libavcodec_plugin_la-vaapi.lo -MD -MP -MF .deps/libavcodec_plugin_la-vaapi.Tpo -c vaapi.c -fPIC -DPIC -o .libs/libavcodec_plugin_la-vaapi.o
In file included from ../../../include/vlc_common.h:490,
from vaapi.c:28:
../../../include/vlc_mtime.h:80: warning: ‘error’ attribute directive ignored
../../../include/vlc_mtime.h:90: warning: ‘warning’ attribute directive ignored
../../../include/vlc_mtime.h:108: warning: ‘error’ attribute directive ignored
vaapi.c:70: error: field ‘hw_ctx’ has incomplete type
make[6]: *** [libavcodec_plugin_la-vaapi.lo] Error 1
make[6]: Leaving directory `/home/ksng/install/vlc_100_pre/vlc/modules/codec/avcodec'
make[5]: *** [all] Error 2
make[5]: Leaving directory `/home/ksng/install/vlc_100_pre/vlc/modules/codec/avcodec'
make[4]: *** [all-recursive] Error 1
=== unquote ===

I've tried adding '#include <libavcodec/avcodec.h> to vaapi.c, but it resulted in other errors. So I did a dirty job of adding vaapi_context definition locally. I don't know what's wrong with my environment.

ksng
New Cone
New Cone
Posts: 4
Joined: 19 Jun 2009 02:40

Re: vdpau & vlc

Postby ksng » 12 Jul 2009 16:57

I would like to confirm that in my case, vdpau in vlc is working successfully. Test materials are Hong Kong DVB HD broadcasts, which before vlc-vaapi, exhausted usage of one CPU to constant 100% but still got stops and goes for the video output, and now it is 15 to 20% and materials are mostly played OK (see below).

For sake of interest, comparison of various players are:

1. mplayer-vdpau : fails to play Hong Kong DVB broadcasts - it plays them in slow motion
2. xine-vdpau : OK to great extend, but have random transparent blocks flying around when playing one of the HD channels
3. vlc-vaapi: resolves the xine-vdpau issue to a good extend, though still not 100% smooth for that HD channel. However vlc-vaapi requires a more powerfull nvidia card than xine-vdpau - the screen is seriously scrambled with vlc for HD materials that play well with xine-vdpau when using the same GF9300 external display card. The materials play well in vlc when using GF9500. Playing SD materials in VLC is not a problem with less powerful display cards. My CPU is AMD X2 4800+ on a GF8200 IGP motherboard (but forget about GF8200 as its vdpau performance is so poor that I have to add an external display card).

Another problem with VLC when playing DVB mpegts is that navigation using left/right keys doesn't work (navigation using the progress bar works though).

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: vdpau & vlc

Postby Jean-Baptiste Kempf » 12 Jul 2009 17:25

* left/right keys is NOT navigation in VLC (use shitf or alt +keys)

* VLC needs more CPU than xine in vdpau/vaapi, because it doesn't use a VAAPI video output (yet)
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

crocha
New Cone
New Cone
Posts: 2
Joined: 02 Aug 2009 01:14

Re: vdpau & vlc

Postby crocha » 02 Aug 2009 02:02

Pls, confirm or adjust this How To built with this forum info.

1. Install VDPAU backend for VA API from
http://www.splitted-desktop.com/~gbeauc ... pau-video/

2. Install FFmpeg with H264_VAAPI patch from
http://www.splitted-desktop.com/~gbeauc ... yer-vaapi/

3. use VLC 1.1-git that has vaapi patch already integrated
http://git.videolan.org/gitweb.cgi/vlc. ... 7d045eb734

4. modify vlc-config with the va flags
[insert link]

5. set ffmpeg-hw=1 in vlcrc config file
[insert link]

6. compile

Pls, confirm, complete or adjust each item. Thanks much.

teco_sodre
New Cone
New Cone
Posts: 3
Joined: 14 Aug 2009 21:44

Re: vdpau & vlc

Postby teco_sodre » 14 Aug 2009 21:52

ksng,

we are trying to compiling VLC-1.1 git with VDPAU support but we didn´t realize what is going on.

Reading another forums about vlc, xine, mythtv, mplayer supporting VDPAU, we did find you AGAIN!

What do you think to build a HOWTO building (step-by-step) VLC with VDPAU Support?

We are trying with Zotac Nivida ION Motherboard with Intel ATom Single Core, 1.6Ghz, with NVIDIA-Linux-x86.185.18.31 and using with Ubuntu 9.04 server with XFCE/X11/XORG configs HDMI audio and video it´s working pretty well.

Best, Teco_Sodre.

cherryzi3
New Cone
New Cone
Posts: 2
Joined: 15 Aug 2009 00:50

Re: vdpau & vlc

Postby cherryzi3 » 15 Aug 2009 00:58

Hi,

I've successfully installed VLC 1.0.0 (Goldeneye) with VAAPI patch (I know hardware acceleration is in place since prior to installing the patch, my CPU is about 70% for 1080i content, whereas now it's around 20%), however, I seem to have problem playing 720p and 1080p contents. Although in both cases, CPU usage is pretty low (~25% for 720p and ~ 50% for 1080p), I got these very blocky videos -- it's worst when there's motion.

Does this mean there's something wrong with my installation? Or there's some configuration(s) that needs to be set?

Thanks!

TimeWaster
New Cone
New Cone
Posts: 5
Joined: 27 Aug 2009 15:41

Re: vdpau & vlc

Postby TimeWaster » 27 Aug 2009 15:47

could someone write a step-by-step guide on how to build vlc with vdpau support for ubuntu? (or simply build one for ubuntu 9.04 and release the executable)

im no programmer and i dont know how to "install" the packages mentioned above, as they are source code and no programm which can be installed? *confused*

i already have vdpau with mplayer running at a good performance, but mplayer is some shitty player and you have to run it with parameters in order to use vdpau, i hope vlc will be much more comfortable.

thanx in advance
TimeWaster

teco_sodre
New Cone
New Cone
Posts: 3
Joined: 14 Aug 2009 21:44

Re: vdpau & vlc

Postby teco_sodre » 28 Aug 2009 00:01

I do not have any success in VLC supporting VA_API :( , however, now I'm trying to use a new patch from three french students who submitted to videolan developers. :idea:

Hi cherryzi3, any how-to for what you did ?
I've successfully installed VLC 1.0.0 (Goldeneye) with VAAPI patch (I know hardware acceleration is in place since prior to installing the patch, my CPU is about 70% for 1080i content,
let's test the students patch... go to this URL [vlc-devel] VDPAU decoder - http://mailman.videolan.org/pipermail/v ... 64220.html and find a .diff file.

If you're experienced in compiling VLC, try it and let us know. Don't forget to install subversion, cvs clients in your machine and compile ffmpeg with --enable-vdpau when run ffmpeg ./configure script. See below.

If you're not, please see this draft HOWTO below. You must install several lib...-dev to accomplish a full VLC installation from a Ubuntu 9.04 fresh install. Keep in mind, this is a DRAFT HOWTO in version v0.0.0.0.0.0.0.0.1. :-|

I'm using in a Ubuntu Jaunty 9.04, kernel 2.6.28-15-generic inside a NVIDIA ION (Atom single Core 1,6Ghz) with GPU 9400 GeForce with 2GB RAM using HDMI video output with ALSA 1.0.20 in place. The NVIDIA installed driver is 185.18.36. I'm also have Mplayer with VDPAU support in the same machine.

Code: Select all

$ sudo git clone git://git.videolan.org/vlc.git $ cd vlc -- always do an update executing: $sudo git pull $ cd extras $ sudo git clone git://git.videolan.org/x264.git x264-trunk $ cd x264-trunk -- always do an update executing: $sudo git pull $ sudo make distclean $ sudo ./configure --prefix=/usr $ sudo make $ ls -alh /usr/include/vdpau ***** it should being presenting something like this -r--r--r-- 1 root root 149K 2009-08-21 19:51 vdpau.h -r--r--r-- 1 root root 5,9K 2009-08-21 19:51 vdpau_x11.h $ ls -alh /usr/lib/libvdpau* ***** it should being presenting something like this lrwxrwxrwx 1 root root 28 2009-08-21 19:51 /usr/lib/libvdpau_nvidia.so -> libvdpau_nvidia.so.185.18.36 -rwxr-xr-x 1 root root 1,4M 2009-08-21 19:51 /usr/lib/libvdpau_nvidia.so.185.18.36 lrwxrwxrwx 1 root root 13 2009-08-21 19:51 /usr/lib/libvdpau.so -> libvdpau.so.1 lrwxrwxrwx 1 root root 21 2009-08-21 19:51 /usr/lib/libvdpau.so.1 -> libvdpau.so.185.18.36 -rwxr-xr-x 1 root root 3,6K 2009-08-21 19:51 /usr/lib/libvdpau.so.185.18.36 lrwxrwxrwx 1 root root 27 2009-08-21 19:51 /usr/lib/libvdpau_trace.so -> libvdpau_trace.so.185.18.36 -rwxr-xr-x 1 root root 49K 2009-08-21 19:51 /usr/lib/libvdpau_trace.so.185.18.36 $ cd .. $ sudo svn checkout svn://svn.ffmpeg.org/ffmpeg/trunk ffmpeg $ cd ffmpeg ***** always do an update executing: $sudo svn update $ sudo make distclean $ sudo ./configure --prefix=/usr --enable-gpl --enable-pthreads --enable-libmp3lame --enable-libfaac --enable-vdpau --enable-nonfree | grep vdpau ***** it should being presented something like this: h264_vdpau mpeg1_vdpau mpeg_vdpau wmv3_vdpau vc1_vdpau $ sudo make $ cd ../.. ***** get the patch from http://mailman.videolan.org/pipermail/vlc-devel/2009-August/064220.html $ sudo patch -R -p1 -i attachment-0001.diff $ sudo ./bootstrap $ sudo mkdir build $ cd build ***** always perform $ sudo make distclean $ sudo ../configure --prefix=/usr --enable-x11 --enable-xvideo --enable-snapshot --enable-debug --enable-dbus-control --enable-mozilla --enable-lirc --enable-qt4 --disable-live555 --enable-x264 --with-x264-tree=../extras/x264-trunk --enable-shout --enable-taglib --enable-v4l2 --enable-cddax --enable-dvb --enable-vcdx --disable-realrtsp --disable-svg --enable-dvdread --disable-dc1394 --disable-dv --disable-theora --enable-faad --enable-twolame --disable-real --enable-flac --enable-tremor --disable-quicktime --enable-dirac --enable-skins2 --enable-ncurses --enable-aa --enable-caca --enable-alsa --disable-portaudio --enable-jack --enable-xosd --disable-goom --enable-ggi --disable-cddax --disable-vcdx --enable-release --enable-speex --enable-fribidi --enable-freetype --disable-mkv --disable-theora --disable-vorbis --disable-ogg --enable-dvdnav --enable-libmpeg2 --enable-a52 --enable-dvbpsi --enable-mad --enable-swscale --enable-avformat --enable-avcodec --enable-sdl --enable-run-as-root --enable-vlm --enable-pvr --enable-bonjour --enable-opengl ***** it should being presented something like below. See vdpau in the last lines. <...> config.status: creating vlc-config Enabled modules: a52tofloat32 a52tospdif aa access_alsa access_jack access_mmap access_oss access_output_shout access_smb adjust alphamask alsa aout_file aout_sdl atmo audio_format audioscrobbler avcodec avformat bandlimited_resampler blend blendbench bluescreen bonjour caca canvas cdda chain clone cmml colorthres converter_float crop croppadd dbus deinterlace dirac dolby_surround_decoder dtstospdif dvb dvb dvdnav dvdread dynamicoverlay equalizer erase extract faad fake fb flac float32_mixer folder freetype gaussianblur gestures ggi globalhotkeys glx gnutls gradient grain hal headphone_channel_mixer hotkeys http i420_rgb_mmx i420_rgb_sse2 i420_ymga i420_ymga_mmx i420_yuy2 i420_yuy2_mmx i420_yuy2_sse2 i422_i420 i422_yuy2 i422_yuy2_mmx i422_yuy2_sse2 inhibit invert jack libmpeg2 linear_resampler lirc logo magnify marq memcpy3dn memcpymmx memcpymmxext mirror mod mosaic motion motionblur motiondetect mozilla mpc mpgatofixed32 mux_ogg mux_ts ncurses noise normvol notify opengl opengl osd_parser osdmenu oss param_eq png podcast postproc psychedelic pulse puzzle pvr qt4 rc remoteosd ripple rotate rss rv32 sap scale scaletempo scene screensaver sdl_image sharpen shout showintf signals simple_channel_mixer skins2 snapshot spatializer spdif_mixer speex stream_out_raop swscale taglib telepathy telnet telx transform ts twolame unzip v4l2 vcd vdpau vdpau visual vmem vout_sdl wall wave x264 xcb xcb_screen xcb_window xcb_xv xml yuv yuvp yuy2_i420 yuy2_i422 zip $ sudo make $ sudo make install

Spulit
Blank Cone
Blank Cone
Posts: 11
Joined: 20 Nov 2008 18:29

Re: vdpau & vlc

Postby Spulit » 02 Sep 2009 12:03

Is it possible to have a patch for version 1.0?

Thanks

Spulit
Blank Cone
Blank Cone
Posts: 11
Joined: 20 Nov 2008 18:29

Re: vdpau & vlc

Postby Spulit » 02 Sep 2009 13:39

Hi,

I've successfully installed VLC 1.0.0 (Goldeneye) with VAAPI patch (I know hardware acceleration is in place since prior to installing the patch, my CPU is about 70% for 1080i content, whereas now it's around 20%), however, I seem to have problem playing 720p and 1080p contents. Although in both cases, CPU usage is pretty low (~25% for 720p and ~ 50% for 1080p), I got these very blocky videos -- it's worst when there's motion.

Does this mean there's something wrong with my installation? Or there's some configuration(s) that needs to be set?

Thanks!
I also get this behaviour when using VLC 1.0 with VAAPI patch and VDPAU backend when playing h.264 UDP streams (it seems to not happen when playing h.264 files). Lots of jittering... Any idea why?

Thanks

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: vdpau & vlc

Postby Jean-Baptiste Kempf » 02 Sep 2009 18:29

increase udp-caching
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

Spulit
Blank Cone
Blank Cone
Posts: 11
Joined: 20 Nov 2008 18:29

Re: vdpau & vlc

Postby Spulit » 02 Sep 2009 18:52

Didn't help...I set udp-caching to 5000 ms and the result is the same...

cherryzi3
New Cone
New Cone
Posts: 2
Joined: 15 Aug 2009 00:50

Re: vdpau & vlc

Postby cherryzi3 » 10 Sep 2009 02:06

Yeah increase udp-caching doesn't help in my case... any other ideas?

Here's what I did to get VA-API working (sort of...):

1) Install VLC_1.0.0 and make sure it's working properly before going to the next step

2) Install libva_0.30.4+sds3 (http://www.splitted-desktop.com/~gbeauchesne/libva/) by doing the following:
$ tar zxvf libva_0.30.4-1+sds3.tar.gz
$ cd libva-0.30.4
$ for p in debian/patches/*.patch; do patch -p1 < $p; done
$ autoreconf -f -i
$ ./configure
$ make
$ make install
(Thanks to Gwenole Beauchesne, who provided me with the above instructions :) )
In order to install libva, I had to install other libraries -- these are pretty straight forward since the error message(s) indicated what was missing.

4) Install vdpau-video_0.3.2 (http://www.splitted-desktop.com/~gbeauc ... pau-video/) -- just do the usual 'make' and 'make install'

** NOTE: up to this point, make sure libva is properly installed by running vainfo

5) Patch ffmpeg with h264-vaapi (http://lists.mplayerhq.hu/pipermail/ffm ... 71061.html):
a) Copy h264-vaapi.patch to ffmpeg project root
b) Appy patch:
$ patch -p0 < h264-vaapi.patch
d) Compile and install FFmpeg:
$ ./configure --enable-gpl --enable-postproc <...and/or other optional configurations...>
$ make
$ make install

** NOTE: after ./configure, make sure you see 'h264_vaapi' under 'hw_accel'

6) Patch VLC with VA-API (http://mailman.videolan.org/pipermail/v ... 58798.html)
a) Copy the patch to VLC project root (in my case I called it "vlc-vaapi.patch")
b) Apply patch:
$ patch -p1 < vlc-vaapi.patch
c) Edit vlc-config.in.in and add "-lX11 -lva -lva-x11" to libs=""
d) $ ./configure <...optional configurations...>
e) modify <vlc_root>/modules/codec/avcodec/Makefile to include vaapi.h and vaapi.c (this is a bit confusing, but in short, just search for 'avcodec.c', replicate those lines, and rename to vaapi)
f) compile:
$ make
$ make install

And there you go! You now have VLC with VA-API (which uses VDPAU as backend) :D

TimeWaster
New Cone
New Cone
Posts: 5
Joined: 27 Aug 2009 15:41

Re: vdpau & vlc

Postby TimeWaster » 10 Sep 2009 10:00

Keep in mind, this is a DRAFT HOWTO in version v0.0.0.0.0.0.0.0.1. :-|
i followed your howto right to the final "make" (i never thought to get that far), but unfortunately this make stops with an error:

Code: Select all

make[6]: *** [libvdpau_plugin_la-video.lo] Error 1 make[6]: Leaving directory `/home/nas/Desktop/vlc/build/modules/codec/vdpau' make[5]: *** [all] Error 2 make[5]: Leaving directory `/home/nas/Desktop/vlc/build/modules/codec/vdpau' make[4]: *** [all-recursive] Error 1 make[4]: Leaving directory `/home/nas/Desktop/vlc/build/modules/codec' make[3]: *** [all] Error 2 make[3]: Leaving directory `/home/nas/Desktop/vlc/build/modules/codec' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/home/nas/Desktop/vlc/build/modules' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/nas/Desktop/vlc/build' make: *** [all] Error 2
and i dont know what that means.

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: vdpau & vlc

Postby Jean-Baptiste Kempf » 10 Sep 2009 11:58

People need info above that.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

TimeWaster
New Cone
New Cone
Posts: 5
Joined: 27 Aug 2009 15:41

Re: vdpau & vlc

Postby TimeWaster » 10 Sep 2009 21:37

okok:

Code: Select all

libtool: compile: gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../../../../modules/codec/vdpau -I../../.. -I../../../../include -I../../../include -DSYS_LINUX -D_FILE_OFFSET_BITS=64 -D__USE_UNIX98 -D_LARGEFILE64_SOURCE -D_REENTRANT -D_THREAD_SAFE -DDEBUG -DHAVE_RELEASE -D__LIBVLC__ -D__PLUGIN__ -DMODULE_NAME=vdpau -DMODULE_NAME_IS_vdpau -DMODULE_STRING=\"vdpau\" -g -O2 -ffast-math -funroll-loops -mtune=pentium2 -Werror=unused-function -Werror=unused-label -Werror=unused-value -Werror=unused-parameter -Werror=unused-variable -Werror=unused -Werror=missing-braces -Werror=nonnull -Werror=parentheses -Werror=address -Werror=undef -Werror=comment -Werror=switch -Werror=bad-function-cast -Werror=implicit -Werror=sequence-point -Werror=strict-aliasing -Werror=array-bounds -Werror=missing-parameter-type -Werror=overflow -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -Werror=div-by-zero -Werror=overflow -Wall -Wextra -Wsign-compare -Wundef -Wpointer-arith -Wbad-function-cast -Wcast-align -Wwrite-strings -Wmissing-prototypes -Wvolatile-register-var -Werror-implicit-function-declaration -pipe -MT libvdpau_plugin_la-video.lo -MD -MP -MF .deps/libvdpau_plugin_la-video.Tpo -c ../../../../modules/codec/vdpau/video.c -fPIC -DPIC -o .libs/libvdpau_plugin_la-video.o ../../../../modules/codec/vdpau/video.c:40:44: error: src/video_output/vout_pictures.h: No such file or directory ../../../../modules/codec/vdpau/video.c:93: warning: ‘AVPaletteControl’ is deprecated ../../../../modules/codec/vdpau/video.c:140: warning: ‘AVPaletteControl’ is deprecated ../../../../modules/codec/vdpau/video.c:234: warning: no previous prototype for ‘debug_vdp_status’ ../../../../modules/codec/vdpau/video.c:243: warning: no previous prototype for ‘error_vdp_status’ ../../../../modules/codec/vdpau/video.c: In function ‘ffmpeg_PreemptionCallback’: ../../../../modules/codec/vdpau/video.c:253: error: unused parameter ‘device’ ../../../../modules/codec/vdpau/video.c: In function ‘ffmpeg_reinitialize_decoder’: ../../../../modules/codec/vdpau/video.c:277: warning: passing argument 1 of ‘error_vdp_status’ discards qualifiers from pointer target type ../../../../modules/codec/vdpau/video.c:277: warning: passing argument 2 of ‘error_vdp_status’ discards qualifiers from pointer target type ../../../../modules/codec/vdpau/video.c:292: warning: passing argument 2 of ‘p_sys->pf_vdp_preemption_callback_register’ from incompatible pointer type ../../../../modules/codec/vdpau/video.c:293: warning: passing argument 1 of ‘error_vdp_status’ discards qualifiers from pointer target type ../../../../modules/codec/vdpau/video.c:293: warning: passing argument 2 of ‘error_vdp_status’ discards qualifiers from pointer target type ../../../../modules/codec/vdpau/video.c: In function ‘ffmpeg_OpenVDPAU’: ../../../../modules/codec/vdpau/video.c:1028: warning: passing argument 2 of ‘p_sys->pf_vdp_preemption_callback_register’ from incompatible pointer type ../../../../modules/codec/vdpau/video.c:1032: warning: passing argument 1 of ‘error_vdp_status’ discards qualifiers from pointer target type ../../../../modules/codec/vdpau/video.c:1032: warning: passing argument 2 of ‘error_vdp_status’ discards qualifiers from pointer target type ../../../../modules/codec/vdpau/video.c: In function ‘ffmpeg_CopyPicture’: ../../../../modules/codec/vdpau/video.c:1085: warning: comparison between pointer and integer ../../../../modules/codec/vdpau/video.c:1094: warning: passing argument 1 of ‘error_vdp_status’ discards qualifiers from pointer target type ../../../../modules/codec/vdpau/video.c:1094: warning: passing argument 2 of ‘error_vdp_status’ discards qualifiers from pointer target type ../../../../modules/codec/vdpau/video.c:1111: warning: passing argument 1 of ‘error_vdp_status’ discards qualifiers from pointer target type ../../../../modules/codec/vdpau/video.c:1111: warning: passing argument 2 of ‘error_vdp_status’ discards qualifiers from pointer target type ../../../../modules/codec/vdpau/video.c:1117: warning: format ‘%d’ expects type ‘int’, but argument 5 has type ‘struct VdpBitstreamBuffer *’ ../../../../modules/codec/vdpau/video.c:1127: warning: passing argument 1 of ‘error_vdp_status’ discards qualifiers from pointer target type ../../../../modules/codec/vdpau/video.c:1127: warning: passing argument 2 of ‘error_vdp_status’ discards qualifiers from pointer target type ../../../../modules/codec/vdpau/video.c:1145: warning: implicit declaration of function ‘vlc_memalign’ ../../../../modules/codec/vdpau/video.c:1145: warning: assignment makes pointer from integer without a cast ../../../../modules/codec/vdpau/video.c:1153: warning: passing argument 3 of ‘p_sys->pf_vdp_video_surface_get_bits_y_cb_cr’ from incompatible pointer type ../../../../modules/codec/vdpau/video.c:1155: warning: passing argument 1 of ‘error_vdp_status’ discards qualifiers from pointer target type ../../../../modules/codec/vdpau/video.c:1155: warning: passing argument 2 of ‘error_vdp_status’ discards qualifiers from pointer target type ../../../../modules/codec/vdpau/video.c: In function ‘ffmpeg_ReGetFrameBuf’: ../../../../modules/codec/vdpau/video.c:1276: warning: comparison between signed and unsigned ../../../../modules/codec/vdpau/video.c: In function ‘vdpau_GetFreeSurface’: ../../../../modules/codec/vdpau/video.c:1436: warning: passing argument 1 of ‘error_vdp_status’ discards qualifiers from pointer target type ../../../../modules/codec/vdpau/video.c:1436: warning: passing argument 2 of ‘error_vdp_status’ discards qualifiers from pointer target type make[6]: *** [libvdpau_plugin_la-video.lo] Error 1 make[6]: Leaving directory `/home/nas/Desktop/vlc/build/modules/codec/vdpau' make[5]: *** [all] Error 2 make[5]: Leaving directory `/home/nas/Desktop/vlc/build/modules/codec/vdpau' make[4]: *** [all-recursive] Error 1 make[4]: Leaving directory `/home/nas/Desktop/vlc/build/modules/codec' make[3]: *** [all] Error 2 make[3]: Leaving directory `/home/nas/Desktop/vlc/build/modules/codec' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/home/nas/Desktop/vlc/build/modules' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/nas/Desktop/vlc/build' make: *** [all] Error 2

TimeWaster
New Cone
New Cone
Posts: 5
Joined: 27 Aug 2009 15:41

Re: vdpau & vlc

Postby TimeWaster » 14 Sep 2009 21:27

well, since noone here seems to know how to help me, i give up here and live a few month with this shitty mplayer.

i hope the vdpau support will be added to vlc soon.


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

Who is online

Users browsing this forum: No registered users and 23 guests