VLC freezes

Hi,

I have set up and downloaded the packman codecs. I’ve also run the zypper dup command. The videos are playing fine in Dragon Player, but when I try in VLC, the player freezes after a couple of clips. I have started VLC from command line, and I get this output.

dagr@opensuse:~> vlc                                                                                                                                         
VLC media player 2.2.6 Umbrella (revision 2.2.6-0-g1aae78981c)                                                                                               
[000055e41b8fe0c8] core libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.                                             
[00007efd90c50428] avcodec decoder: Using G3DVL VDPAU Driver Shared Library version 1.0 for hardware decoding.                                               
[00007efd90c50428] avcodec decoder: Using G3DVL VDPAU Driver Shared Library version 1.0 for hardware decoding.                                               
[00007efd90c50428] avcodec decoder: Using G3DVL VDPAU Driver Shared Library version 1.0 for hardware decoding.                                               

How can I search for the problem. Things worked nice before I reinstalled the OS.

Dag R

One wild guess:
Try to uninstall libvdpau_va_gl1.

If that doesn’t help, please tell what graphics card you are using.

Although, you could also try to set other video output modules in VLC’s settings.

libvdpau_va_gl1 wasn’t installed, so i didn’t do anything with it. One other thing. I have to start vlc from the command line. It seems to be something very wrong with the setup of the program. Now I got this error messages:

VLC media player 2.2.6 Umbrella (revision 2.2.6-0-g1aae78981c)
[000055b0d6ce80c8] core libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
[00007f8ea007a3d8] vdpau_avcodec generic error: decoder profile above limits: level 42 1920x1080
[00007f8eb8136958] vdpau_avcodec generic error: decoder profile above limits: level 42 1920x1080
[00007f8ea00922d8] vdpau_avcodec generic error: decoder profile above limits: level 42 1920x1080
[00007f8e9006b2e8] vdpau_avcodec generic error: decoder profile above limits: level 42 1920x1080
[00007f8eb8118048] vdpau_avcodec generic error: decoder profile above limits: level 42 1920x1080
[00007f8eb4c83218] avcodec decoder: Using G3DVL VDPAU Driver Shared Library version 1.0 for hardware decoding.


The graphics card is a Radeon 6870.

Dag R

Radeon shouldn’t use vdpau afaik only nvidia hardware has vdpau support
I’d say check and see if you have the Radeon driver installed
https://en.opensuse.org/SDB:Radeon
I think radeon has va-api support but am not sure

VDPAU is a software interface (originally developed by NVidia), unrelated to the hardware.

And yes, radeon does support VDPAU (or rather, libvdpau does support radeon chips).

$ zypper info libvdpau_r600 
Loading repository data...
Reading installed packages...


Information for package libvdpau_r600:
--------------------------------------
Repository     : Hauptaktualisierungs-Repository
Name           : libvdpau_r600                  
Version        : 17.0.5-176.1                   
Arch           : x86_64                         
Vendor         : openSUSE                       
Installed Size : 4.6 MiB                        
Installed      : Yes                            
Status         : up-to-date                     
Source package : Mesa-17.0.5-176.1.src          
Summary        : XVMC state tracker for R600    
Description    :                                
    This package contains the VDPAU state tracker for R600.

VLC does use VDPAU by default and the posted error messages are about VDPAU, so I’d suggest switching to something else in VLC’s video output settings.
(or uninstall libvdpau_r600, that should disable VDPAU on your system)

In the output modules (settings) there are dummy, framebuffer, open GL, SDL, x Window, XVideo, YUV output, which should I alter or choose?

Dag R

Well, try all and see which work.

dummy is rather useless though, as it provides no output at all…
I would try OpenGL, SDL, or XVideo first.

I removed libvdpau_r600, and VLC seems to run nice now, but it still comes some error messages:

dagr@opensuse:~> vlc
VLC media player 2.2.6 Umbrella (revision 2.2.6-0-g1aae78981c)
[00005577c0cd90c8] core libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
[00007ffae0002ad8] idummy demux: command `nop'
Failed to open VDPAU backend libvdpau_r600.so: cannot open shared object file: Ingen slik fil eller filkatalog
Failed to open VDPAU backend libvdpau_r600.so: cannot open shared object file: Ingen slik fil eller filkatalog
Failed to open VDPAU backend libvdpau_r600.so: cannot open shared object file: Ingen slik fil eller filkatalog
Failed to open VDPAU backend libvdpau_r600.so: cannot open shared object file: Ingen slik fil eller filkatalog
Failed to open VDPAU backend libvdpau_r600.so: cannot open shared object file: Ingen slik fil eller filkatalog
Failed to open VDPAU backend libvdpau_r600.so: cannot open shared object file: Ingen slik fil eller filkatalog
Failed to open VDPAU backend libvdpau_r600.so: cannot open shared object file: Ingen slik fil eller filkatalog
Failed to open VDPAU backend libvdpau_r600.so: cannot open shared object file: Ingen slik fil eller filkatalog
[00007ffae4005d88] core input error: ES_OUT_RESET_PCR called
Failed to open VDPAU backend libvdpau_r600.so: cannot open shared object file: Ingen slik fil eller filkatalog
Failed to open VDPAU backend libvdpau_r600.so: cannot open shared object file: Ingen slik fil eller filkatalog
Failed to open VDPAU backend libvdpau_r600.so: cannot open shared object file: Ingen slik fil eller filkatalog
Failed to open VDPAU backend libvdpau_r600.so: cannot open shared object file: Ingen slik fil eller filkatalog
[00007ffae4005d88] core input error: ES_OUT_RESET_PCR called
Failed to open VDPAU backend libvdpau_r600.so: cannot open shared object file: Ingen slik fil eller filkatalog
Failed to open VDPAU backend libvdpau_r600.so: cannot open shared object file: Ingen slik fil eller filkatalog
Failed to open VDPAU backend libvdpau_r600.so: cannot open shared object file: Ingen slik fil eller filkatalog
[00007ffae4007678] core input error: ES_OUT_SET_(GROUP_)PCR  is called too late (pts_delay increased to 300 ms)
[00007ffae4007678] core input error: ES_OUT_RESET_PCR called
wmv3 @ 

Does this mean anything except the VDPAU is not anymore there? Does it mean anything for the system as a whole?

Dag R

Ok, that “proves” that your problem is indeed related to VDPAU.

Does this mean anything except the VDPAU is not anymore there?

Not really, as far as I can tell.

Does it mean anything for the system as a whole?

Yes, hardware video decoding won’t work, also for other applications.

As I wrote, you could change VLC’s settings (and reinstall libvdpau_r600) to restrict the impact to VLC.

Other than that, you may try to uninstall drm-kmp-default, maybe it’s a problem with the later graphics stack that’s been backported from kernel 4.9.
Or install it if it isn’t for some reason.
Although, I’m nor completely sure whether this could play a part here…

from those error messages vlc can’t find libvdpau which is to be expected if you removed it
it looks like you still have vdpau as the preferred decoder (afaik automatic defaults to vdpau)
https://i.imgur.com/GRv9syl.jpg
not my picture found it with google search
why not try one of the other methods like va-api afaik it’s supported with the open sourced radeon driver (do you have the driver installed?)

Yes.
But the error message comes from libvdpau (which is still installed, and you cannot remove it), because it doesn’t find the actual decoder library for the used hardware (libvdpau_r600).

it looks like you still have vdpau as the preferred decoder (afaik automatic defaults to vdpau)

That must be from an older or newer version.
I only see a checkbox to enable/disable hardware decoding here (with the standard VLC 2.2.6).
Deactivating that should help too I suppose…

this is what I get on vlc 2.2.6 from packman on LEAP 42.3
https://i.imgur.com/0pLSE4a.png
you can chose your preferred hardware decoder
I’d be interested to know what’s the output the OP gets when running

vdpauinfo

this is what I get

Decoder capabilities:

name                        level macbs width height
----------------------------------------------------
MPEG1                           0  8192  2048  2048
MPEG2_SIMPLE                    3  8192  2048  2048
MPEG2_MAIN                      3  8192  2048  2048
H264_BASELINE                  --- not supported ---
H264_MAIN                      41  8192  2048  2048
H264_HIGH                      41  8192  2048  2048
VC1_SIMPLE                      1  8190  2048  2048
VC1_MAIN                        2  8190  2048  2048
VC1_ADVANCED                    4  8190  2048  2048
MPEG4_PART2_SP                  3  8192  2048  2048
MPEG4_PART2_ASP                 5  8192  2048  2048
DIVX4_QMOBILE                   0  8192  2048  2048
DIVX4_MOBILE                    0  8192  2048  2048
DIVX4_HOME_THEATER              0  8192  2048  2048
DIVX4_HD_1080P                  0  8192  2048  2048
DIVX5_QMOBILE                   0  8192  2048  2048
DIVX5_MOBILE                    0  8192  2048  2048
DIVX5_HOME_THEATER              0  8192  2048  2048
DIVX5_HD_1080P                  0  8192  2048  2048
H264_CONSTRAINED_BASELINE      --- not supported ---
H264_EXTENDED                  --- not supported ---
H264_PROGRESSIVE_HIGH          --- not supported ---
H264_CONSTRAINED_HIGH          --- not supported ---
H264_HIGH_444_PREDICTIVE       --- not supported ---
HEVC_MAIN                      --- not supported ---
HEVC_MAIN_10                   --- not supported ---
HEVC_MAIN_STILL                --- not supported ---
HEVC_MAIN_12                   --- not supported ---
HEVC_MAIN_444                  --- not supported ---


as I had issues with dragonplayer and DVD’s
https://forums.opensuse.org/showthread.php/527510-Unable-to-play-DVDs?p=2844580#post2844580
I removed va-api from my system and can’t really comment if it works or not

I apparently do have libva1 installed but the utility vainfo only works with libva2 and that one is not available in the main LEAP repo’s I didn’t want to play with packages from the X11:XOrg repo so … maybe when LEAP 15 comes out

Ah, it’s on the “Input / Codecs” tab!
I only looked in “Video” for some reason… :wink:

Changing that instead of disabling hardware decoding completely (or uninstalling libvdpau_r600) would probably help as well then (unless VA-API doesn’t work either).

What version of vaapi-tools do you have installed (and from where)?
The one included in the standard repos should work fine with libva1, I’d think.

(Can’t test it here because my old R300 class card is not supported by libva1, i.e. there is no /usr/lib64/dri/r300_drv_video.so. VDPAU support is available via libvdpau_r300, but it doesn’t really work here either so I uninstalled it, my card doesn’t support hardware decoding anyway as it’s just too old)

I don’t understand the things you guys is talking about vaapi-tools, but I finally found the input/codecs setting and tried to change to VA-API. It does not work on my setup. The videos get scrambled. I then set the hardware decoding to “disable”, and it works, but in the output in the console vlc says it still searches for libvdpau. It works without hardware acceleration, and the videos I have on this machine are quite small files, so the HA does not make any difference.

I wondered what caused this problem. Is my graphics card to old, or what? It worked in Thumbleweed.

Dag R

we wore talking about hardware decoding ie when your graphic card does the video decoding not your cpu I really don’t have experience with amd cards but the simplest question would be is the radeon driver installed on your system

 lsmod | grep radeon


if it’s not you need to install it manually
https://en.opensuse.org/SDB:Radeon#Install_the_radeon_driver

I got mixed up I just installed vaapi-tools with zypper and this is what vainfo said about my system

vainfo
libva info: VA-API version 0.39.4
libva info: va_getDriverName() returns 0
libva info: User requested driver 'vdpau'
libva info: Trying to open /usr/lib64/dri/vdpau_drv_video.so
libva info: Found init function __vaDriverInit_0_39
libva info: va_openDriver() returns 0
vainfo: VA-API version: 0.39 (libva 1.7.3)
vainfo: Driver version: Splitted-Desktop Systems VDPAU backend for VA-API - 0.7.4
vainfo: Supported profile and entrypoints
      VAProfileMPEG2Simple            : VAEntrypointVLD
      VAProfileMPEG2Main              : VAEntrypointVLD
      VAProfileMPEG4Simple            : VAEntrypointVLD
      VAProfileMPEG4AdvancedSimple    : VAEntrypointVLD
      VAProfileH264Main               : VAEntrypointVLD
      VAProfileH264High               : VAEntrypointVLD
      VAProfileVC1Simple              : VAEntrypointVLD
      VAProfileVC1Main                : VAEntrypointVLD
      VAProfileVC1Advanced            : VAEntrypointVLD

for completeness sake this is the decoder part of vdpauinfo about my system ie what can be decoded in hardware

Decoder capabilities:

name                        level macbs width height
----------------------------------------------------
MPEG1                           0  8192  2048  2048
MPEG2_SIMPLE                    3  8192  2048  2048
MPEG2_MAIN                      3  8192  2048  2048
H264_BASELINE                  --- not supported ---
H264_MAIN                      41  8192  2048  2048
H264_HIGH                      41  8192  2048  2048
VC1_SIMPLE                      1  8190  2048  2048
VC1_MAIN                        2  8190  2048  2048
VC1_ADVANCED                    4  8190  2048  2048
MPEG4_PART2_SP                  3  8192  2048  2048
MPEG4_PART2_ASP                 5  8192  2048  2048
DIVX4_QMOBILE                   0  8192  2048  2048
DIVX4_MOBILE                    0  8192  2048  2048
DIVX4_HOME_THEATER              0  8192  2048  2048
DIVX4_HD_1080P                  0  8192  2048  2048
DIVX5_QMOBILE                   0  8192  2048  2048
DIVX5_MOBILE                    0  8192  2048  2048
DIVX5_HOME_THEATER              0  8192  2048  2048
DIVX5_HD_1080P                  0  8192  2048  2048
H264_CONSTRAINED_BASELINE      --- not supported ---
H264_EXTENDED                  --- not supported ---
H264_PROGRESSIVE_HIGH          --- not supported ---
H264_CONSTRAINED_HIGH          --- not supported ---
H264_HIGH_444_PREDICTIVE       --- not supported ---
HEVC_MAIN                      --- not supported ---
HEVC_MAIN_10                   --- not supported ---
HEVC_MAIN_STILL                --- not supported ---
HEVC_MAIN_12                   --- not supported ---
HEVC_MAIN_444                  --- not supported ---


I have an old nvidia 240
@OP what do vainfo or vdpauinfo say about your system can it handle hardware acceleration afaik your graphic card should support hardware decoding for a range of formats/codecs with the Radeon driver, if the driver is installed but isn’t working you should open a bug report
what’s the output of

vainfo
vdpauinfo
dagr@opensuse:~>  lsmod | grep radeon
radeon               1597440  22 
i2c_algo_bit           16384  1 radeon
drm_kms_helper        167936  1 radeon
ttm                   110592  1 radeon
drm                   397312  11 ttm,drm_kms_helper,radeon


It seems the radon driver is installed.

Dag R

Since i removed libvdpau_r600, i reinstalled it and ran the command you suggested:

Decoder capabilities:                                                                                                                                        
                                                                                                                                                             
name                        level macbs width height                                                                                                         
----------------------------------------------------                                                                                                         
MPEG1                          --- not supported ---                                                                                                         
MPEG2_SIMPLE                    3  9216  2048  1152
MPEG2_MAIN                      3  9216  2048  1152
H264_BASELINE                  41  9216  2048  1152
H264_MAIN                      41  9216  2048  1152
H264_HIGH                      41  9216  2048  1152
VC1_SIMPLE                      1  9216  2048  1152
VC1_MAIN                        2  9216  2048  1152
VC1_ADVANCED                    4  9216  2048  1152
MPEG4_PART2_SP                  3  9216  2048  1152
MPEG4_PART2_ASP                 5  9216  2048  1152
DIVX4_QMOBILE                  --- not supported ---
DIVX4_MOBILE                   --- not supported ---
DIVX4_HOME_THEATER             --- not supported ---
DIVX4_HD_1080P                 --- not supported ---
DIVX5_QMOBILE                  --- not supported ---
DIVX5_MOBILE                   --- not supported ---
DIVX5_HOME_THEATER             --- not supported ---
DIVX5_HD_1080P                 --- not supported ---
H264_CONSTRAINED_BASELINE      --- not supported ---
H264_EXTENDED                  --- not supported ---
H264_PROGRESSIVE_HIGH          --- not supported ---
H264_CONSTRAINED_HIGH          --- not supported ---
H264_HIGH_444_PREDICTIVE       --- not supported ---
HEVC_MAIN                      --- not supported ---
HEVC_MAIN_10                   --- not supported ---
HEVC_MAIN_STILL                --- not supported ---
HEVC_MAIN_12                   --- not supported ---
HEVC_MAIN_444                  --- not supported ---


I have turned off the hardware acceleration, so the player is running just nice, but what in this list indicate it can run wmv?

Dag R

There is not everything which is perfect. When I jump in the wmv-movies, it lags and the output is:

[000055d57ee100c8] core libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
[00007fe8b4041aa8] freetype spu text error: Breaking unbreakable line
[00007fe89010a8f8] freetype spu text error: Breaking unbreakable line
[00007fe8b4041aa8] freetype spu text error: Breaking unbreakable line
[00007fe8c400c5c8] core input error: ES_OUT_RESET_PCR called
[00007fe8c400c5c8] core input error: ES_OUT_RESET_PCR called
[00007fe8c400c5c8] core input error: ES_OUT_RESET_PCR called
[00007fe8c400c5c8] core input error: ES_OUT_RESET_PCR called
[00007fe8c400c5c8] core input error: ES_OUT_RESET_PCR called
[00007fe8c400c5c8] core input error: ES_OUT_RESET_PCR called
[00007fe89410bec8] freetype spu text error: Breaking unbreakable line
[00007fe8ac0075f8] freetype spu text error: Breaking unbreakable line
[00007fe8c4004758] core input error: ES_OUT_RESET_PCR called
[00007fe8c4004758] core input error: ES_OUT_RESET_PCR called




Any idea what this means?

Dag R