vdpau & vlc

*nix specific usage questions
artbio
Blank Cone
Blank Cone
Posts: 24
Joined: 02 Jan 2013 02:01
VLC version: 2.1.0
Operating System: Windows / Linux
Location: Portugal

Re: vdpau & vlc

Postby artbio » 09 Jul 2013 17:32

Thanks for you reply.

I found the code that is causing the failure in the debian rules. If I comment it, in theory it should work, even with the debian method. It is compiling as I write this post. Question now is. Is it OK for vlc-nox to depend on libX11?

Thanks.

Rémi Denis-Courmont
Developer
Developer
Posts: 15267
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: vdpau & vlc

Postby Rémi Denis-Courmont » 09 Jul 2013 17:38

The "nox" part in vlc-nox means "no X11"...
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

calanor
Blank Cone
Blank Cone
Posts: 50
Joined: 08 May 2010 19:36

Re: vdpau & vlc

Postby calanor » 01 Aug 2013 12:01

With latest vlc / ffmpeg from git vdpau seems to work properly,
[0x7f146c001248] vdpau_display vout display debug: using back-end NVIDIA VDPAU Driver Shared Library 310.44 Wed Mar 27 15:13:26 PDT 2013
...but I've seen vdpau is enabled by default without adding any option in commandline.
Is there any commandline option to disable vdpau for performance comparison?

Rémi Denis-Courmont
Developer
Developer
Posts: 15267
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: vdpau & vlc

Postby Rémi Denis-Courmont » 01 Aug 2013 13:26

'--avcodec-hw none' will disable VDPAU decoding, while '-Vxv' will restore the XVideo output.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

calanor
Blank Cone
Blank Cone
Posts: 50
Joined: 08 May 2010 19:36

Re: vdpau & vlc

Postby calanor » 01 Aug 2013 14:24

Thanks for you fast reply.
I tried several files and some of them work well without hardware acceleration but generate a segment-fault with vdpau enabled.
0x7f88e0c0b118] avcodec decoder debug: available hardware decoder output format 53 (vaapi_vld)
[0x7f88e0c0b118] avcodec decoder debug: available hardware decoder output format 109 (vdpau)
[0x7f88e0c0b118] avcodec decoder debug: available software decoder output format 0 (yuv420p)
[0x7f88d40681f8] main generic debug: looking for hw decoder module matching "any": 3 candidates
[0x7f88ec0009b8] main input debug: Buffering 0%
[0x7f88ec0009b8] main input debug: Stream buffering done (300 ms in 60 ms)
[0x977bb8] pulse audio output debug: digital pass-through not available
[0x977bb8] pulse audio output debug: changed buffer metrics: maxlength=4194312, tlength=138240, prebuf=0, minreq=46080
[0x977bb8] pulse audio output debug: connected to sink alsa_output.pci-0000_00_1b.0.analog-stereo
[0x977bb8] main audio output debug: output 'f32l' 44100 Hz 3F2R/LFE frame=1 samples/24 bytes
[0x7f88f0001ce8] main volume debug: looking for audio volume module matching "any": 2 candidates
[0x977bb8] pulse audio output debug: base volume: 65536
[0x977bb8] pulse audio output debug: changing sink 0: alsa_output.pci-0000_00_1b.0.analog-stereo (Audio intern Estèreo analògic)
[0x7f88f0001ce8] main volume debug: using audio volume module "float_mixer"
[0x977bb8] main audio output debug: input 'dts ' 48000 Hz 3F2R/LFE frame=512 samples/2048 bytes
[0x7f88f0d96848] main audio filter debug: looking for audio filter module matching "scaletempo": 14 candidates
[0x7f88f0d96848] scaletempo audio filter debug: format: 48000 rate, 6 nch, 4 bps, fl32
[0x7f88f0d96848] scaletempo audio filter debug: params: 30 stride, 0.200 overlap, 14 search
[0x7f88f0d96848] scaletempo audio filter debug: 1.000 scale, 1440.000 stride_in, 1440 stride_out, 1152 standing, 288 overlap, 672 search, 2400 queue, fl32 mode
[0x7f88f0d96848] main audio filter debug: using audio filter module "scaletempo"
[0x977bb8] main audio output debug: conversion: 'dts '->'f32l' 48000 Hz->48000 Hz 3F2R/LFE->3F2R/LFE
[0x7f88f00026f8] main audio converter debug: looking for audio converter module matching "any": 12 candidates
[0x7f88f00026f8] main audio converter debug: no audio converter modules matched
[0x7f88f00026f8] main audio converter debug: looking for audio converter module matching "any": 12 candidates
[0x7f88f00026f8] main audio converter debug: using audio converter module "dtstofloat32"
[0x977bb8] main audio output debug: conversion pipeline complete
[0x977bb8] main audio output debug: conversion: 'f32l'->'f32l' 48000 Hz->48000 Hz 3F2R/LFE->3F2R/LFE
[0x977bb8] main audio output debug: conversion pipeline complete
[0x7f88f0c34db8] main audio resampler debug: looking for audio resampler module matching "any": 3 candidates
[0x7f88f0c34db8] main audio resampler debug: using audio resampler module "samplerate"
[0x7f88e0d42a78] main decoder debug: End of audio preroll
[0x7f88d40681f8] vdpau_avcodec generic debug: video surface limits: 4096x4096
[0x7f88d40681f8] vdpau_avcodec generic debug: decoder profile limits: level 41 mb 8192 2048x2048
[0x7f88d40681f8] main generic debug: using hw decoder module "vdpau_avcodec"
[0x7f88e0c0b118] avcodec decoder: Using NVIDIA VDPAU Driver Shared Library 310.44 Wed Mar 27 15:13:26 PDT 2013 for hardware decoding.
Segment fault

Rémi Denis-Courmont
Developer
Developer
Posts: 15267
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: vdpau & vlc

Postby Rémi Denis-Courmont » 05 Aug 2013 17:51

You'll need to be more specific.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

calanor
Blank Cone
Blank Cone
Posts: 50
Joined: 08 May 2010 19:36

Re: vdpau & vlc

Postby calanor » 05 Aug 2013 20:42

That some videos work correctly with and without hardware acceleration and others only work without acceleration ('- avcodec-hw none'), with hw accel crashes with a "semgment fault".

For example, the file
http://torrents.thepiratebay.sx/4675809 ... PB.torrent
crash with
vlc -vvv Legends-Eric.Clapton_Marcus.Miller_all-Montreux.1997-Snakes.mkv
and d'ont crash with
vlc -vvv --avcodec-hw none Legends-Eric.Clapton_Marcus.Miller_all-Montreux.1997-Snakes.mkv

With the files that work fine with vdpau, the difference of CPU usage is bery large. For example one video that using 70% of CPU, with vdpau use only a 25%.
Good job.


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

Who is online

Users browsing this forum: No registered users and 21 guests