VLC crush after first second of playback

Hi to all.
Using last snapshot of tumbleweed I tried to install multimedia codes, but no meter what I did, it always gives the same error.
Error consist in that when I try to play video (.mkv) VLC opens file but after first second of playback video is crushing and audio continues.
If I try close VLC it hangs in tray and I need only to kill it through System Meager (End Task doesn’t help).

What I already did:

  1. Added
zypper ar -f -n packman http://ftp.gwdg.de/pub/linux/misc/packman/suse/openSUSE_Tumbleweed/ packman 
  1. Installed vlc and vlc-codecs
  2. Installed all this
zypper install k3b-codecs ffmpeg lame phonon-backend-vlc phonon4qt5-backend-vlc vlc-codecs flash-player libdvdcss2
  1. Made
zypper dup
  1. Reinstalled all this again…

But all the same.
Any help?

In your case you need to run


sudo zypper dup --from packman

Thanks for posting all output, it shows me that you use “packman” as the repo name AND alias, hence makes it easy to reply.

There could be something else going on though. What is the video card / GPU ? Does VLC try to use VDPAU or the like?

Thanks for reply.

I have a GPU NVIDIA GT640m and Bumblebee installed and fully functioning.
How I can verify if VLC is using VDPAU?

After running

sudo zypper dup --from packman

its only changed bumblebee vendor to packman and installed dksm.
I restarted machin, but problem is still here.

OBS: In other HDD I have 42.1 and VLC is functioning almost perfectly.

go to the VLC menu > tools > preferences > video (assuming you’re using the simplified preferences)

under display you’ll find the output indicates what you’re using, if you want VDPAU change to it there.

Made it, restarted VLC and tested.
Error is still there.

Some updates.
I tested other formats (avi, mp4, flv) and all they work perfectly.
Only .mkv is giving video video crush and VLC freeze

More updates.
After installing mplayer, smplayer its turn to be possible to use smplayer to open and play flawlessly same file what VLC cant.
So, I presume, problem is in VLC…

there has been a masive update in tw and with the move to gcc6 more will follow
in the mean time start vlc from a terminal window and see what error pops up when vlc crashes
if youre using plasma start konsole type vlc and do some vlc-ing
when vlc crashes see the terminal output, you can redirect the terminal output to a text file by using
#vlc > /home/<you>/vlc-log.txt
it’s also a good idea to post your repo list as there might be a package from a 3rd party repo so post

zypper lr -d

VLC has been quite troublesome in tumbleweed, though I always assumed it was because I was using a rather strange combination of bumblebee with opensource drivers, apparently not - at least in the last version it works most of the time. SMplayer and totem have worked as alternatives.

to run vlc (or any other software) you have to start it with

optirun vlc
..or...
primusrun vlc

It is not clear if you did start vlc this way.
Or try with VDPAU disabled.

I would say set vaapi out in vlc
I’m not sure about the bunblebee driver specifically but I’m pretty sure that there are no propitiatory binaries on OBS and nobody provides prebuild nvidia drivers for TW so did you install the propitiatory part from nvidia’s run file?
It’s most likely a noevau issue and noevoau does not handle vdpau acceleration well, intel’s driver with vaapi should work fine, still run it from a console to see the culprit.

Okay, problem solved.
I ran VLC in terminal and received this output:


VLC media player 2.2.4 Weatherwax (revision 2.2.4)
[00000000018f02c8] core libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
libva info: VA-API version 0.39.0
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/lib64/dri/i965_drv_video.so
libva info: Found init function __vaDriverInit_0_39
libva info: va_openDriver() returns 0
[00007f5450c3a388] avcodec decoder: Using OpenGL/VAAPI/libswscale backend for VDPAU for hardware decoding.
[VS] error (vdpDecoderRender_h264): no surfaces left in buffer
[VS] error (vdpDecoderRender_h264): no surfaces left in buffer
[VS] error (vdpDecoderRender_h264): no surfaces left in buffer
[VS] error (vdpDecoderRender_h264): no surfaces left in buffer
[VS] error (vdpDecoderRender_h264): no surfaces left in buffer
[VS] error (vdpDecoderRender_h264): no surfaces left in buffer
[VS] error (vdpDecoderRender_h264): no surfaces left in buffer
[VS] error (vdpDecoderRender_h264): no surfaces left in buffer
[VS] error (vdpDecoderRender_h264): no surfaces left in buffer
[VS] error (vdpDecoderRender_h264): no surfaces left in buffer
[00007f54540012d8] core access error: cannot resolve services.tvrage.com port 80 : Name or service not known
[00007f54540012d8] http access error: cannot connect to services.tvrage.com:80
[00007f5484c10838] core access error: cannot resolve services.tvrage.com port 80 : Name or service not known
[00007f5484c10838] http access error: cannot connect to services.tvrage.com:80
[00007f54540012d8] core access error: cannot resolve services.tvrage.com port 80 : Name or service not known
[00007f54540012d8] access_mms access error: cannot connect to services.tvrage.com:80
[00007f5454000958] core art finder error: no suitable access module for `http://services.tvrage.com/feeds/search.php?show=file %5B'
[00007f5484c10838] core access error: cannot resolve services.tvrage.com port 80 : Name or service not known
[00007f5484c10838] access_mms access error: cannot connect to services.tvrage.com:80
[00007f5484c0cbe8] core art finder error: no suitable access module for `http://services.tvrage.com/feeds/search.php?show=file %5B'
Killed

After fast google search with this error:


[VS] error (vdpDecoderRender_h264): no surfaces left in buffer

I found this page:
http://askubuntu.com/questions/714363/intel-vaapi-cant-play-mkv-with-vlc

And fallowed the tip to change codec to vaapi via x11 on codec tab and also change video output to “x11 video outpu (XBC)” on video tab and its worked flawlessly.

By the way, there no necessity to run VLC with optirun or primusrun, Intel card is completely capable to do it.
Thanks a lot for your help.

OBS.: Just a little observation, as a personal opinion, smplayer seems to be a lot more comfortable to use then VLC.

I used this step-by-step to instal bumblebee:
https://en.opensuse.org/SDB:NVIDIA_Bumblebee

I don’t know what graphic card you have, but unless it’s a higher end card the noveau driver should work just fine, the hassle of running the proprietary nvidia drivers aren’t worth it half the time. and yes, SMplayer does work very well (it just doesn’t have all the features VLC has)