Sound in VLC keeps cutting out

Hi,

Recently started using openSUSE and everything’s going swimmingly apart from this. Whenever I try to play a movie or piece of music in VLC the sound only plays for around a second every four seconds or so.

Is it possibly a driver issue, or a problem with dependencies?

Thanks guys.

Did you follow this: Multi-media and Restricted Format Installation Guide - openSUSE Forums

Follow it carefully.

Personally I prefer smplayer over vlc.

I’d just finished following that guide before I posted. Didn’t seem to make any difference.

SMplayer does work quite nicely but it would be nice to get VLC working.

Thanks for the quick reply!

Please post the result of this from a terminal

zypper lr -d

In addition to providing the output of the command that caf4926 gave you, please also provide the output of:

rpm --query --all 'libav*' 'libpostproc*' 'libswscale*' '*xine*' '*gst*' '*layer*' '*vlc*' | grep -v avahi | sort

… also, do you have beagle enabled? It can really “suck” your CPU while it categorizes your hard drive. I recommend you remove beagle.

… also, if this is more choppy than cutting out, you could apply a pulse audio fix in case it is a pulse audio problem. Note the approach here in step-7:
SDB:AudioTroubleshooting - openSUSE - step-7

for zypper lr -d:

| Alias | Name | Enabled | Refresh | Priority | Type | URI | Service

–±----------------±----------------------±--------±--------±---------±-------±----------------------------------------------------------------±-------
1 | Packman | Packman | Yes | Yes | 99 | rpm-md | Index of /packman/suse/11.1 |
2 | Videolan_VLC | Videolan VLC | Yes | Yes | 99 | rpm-md | Index of /pub/vlc/SuSE/11.1/ |
3 | openSUSE 11.1-0 | openSUSE 11.1-0 | Yes | No | 99 | yast2 | cd:///?devices=/dev/sr0 |
4 | repo-debug | openSUSE-11.1-Debug | No | Yes | 100 | NONE | Index of /debug/distribution/11.1/repo/oss |
5 | repo-non-oss | openSUSE-11.1-Non-Oss | Yes | Yes | 100 | yast2 | Index of /distribution/11.1/repo/non-oss |
6 | repo-oss | openSUSE-11.1-Oss | Yes | Yes | 100 | yast2 | Index of /distribution/11.1/repo/oss |
7 | repo-source | openSUSE-11.1-Source | No | Yes | 100 | NONE | Index of /source/distribution/11.1/repo/oss |
8 | repo-update | openSUSE-11.1-Update | Yes | Yes | 20 | rpm-md | Index of /update/11.1

for rpm --query --all ‘libav*’ ‘libpostproc*’ ‘libswscale*’ ‘xine’ ‘gst’ ‘layer’ ‘vlc’ | grep -v avahi | sort:

banshee-1-backend-engine-gstreamer-1.4.3-1.2.1
flash-player-10.0.32.18-0.1.1
gstreamer-0_10-0.10.24-999.pm.1000.3
gstreamer-0_10-ffmpeg-0.10.8-999.pm.1001.3
gstreamer-0_10-fluendo-mp3-0.10.10-42.pm.1
gstreamer-0_10-fluendo-mpegdemux-0.10.23-42.pm.1
gstreamer-0_10-fluendo-mpegmux-0.10.4-42.pm.1
gstreamer-0_10-lang-0.10.24-999.pm.1000.3
gstreamer-0_10-plugins-bad-0.10.8-6.6.1
gstreamer-0_10-plugins-bad-lang-0.10.8-6.6.1
gstreamer-0_10-plugins-base-0.10.24-999.pm.1000.2
gstreamer-0_10-plugins-base-lang-0.10.24-999.pm.1000.2
gstreamer-0_10-plugins-good-0.10.10-3.22.1
gstreamer-0_10-plugins-good-extra-0.10.10-3.22.1
gstreamer-0_10-plugins-ugly-0.10.12-999.pm.1000.7
gstreamer-0_10-plugins-ugly-lang-0.10.12-999.pm.1000.7
gstreamer-0_10-schroedinger-1.0.5-42.pm.48.2
gstreamer-0_10-utils-0.10.24-999.pm.1000.3
gstreamer-utils-0.10.24-999.pm.1000.3
libavc1394-0-0.5.3-129.3
libavcodec52-0.5.0.20191-1.1
libavformat52-0.5.0.20191-1.1
libavutil50-0.5.0.20191-1.1
libgstinterfaces-0_10-0-0.10.24-999.pm.1000.2
libgstreamer-0_10-0-0.10.24-999.pm.1000.3
libpostproc51-0.5.0.20191-1.1
libswscale0-0.5.0.20191-1.1
libvlc2-1.0.2-2.3
libvlccore2-1.0.2-2.3
libxine1-1.1.16.3-2.pm.6.7
libxine1-codecs-1.1.16.3-2.pm.6.7
libxine1-gnome-vfs-1.1.16.3-2.pm.6.7
libxine1-pulse-1.1.16.3-2.pm.6.7
MPlayer-1.0rc2_r29116-2.pm.29.8
pullin-flash-player-11.1-1.1
smplayer-0.6.8-0.pm.2.2
vlc-1.0.2-2.3
vlc-noX-1.0.2-2.3
vlc-qt-1.0.2-2.3
xinetd-2.3.14-129.28

Thanks guys!

caf4926 asked this:

To which you replied this:

Last I read that guide, it stated you MUST disable videolan (or do I have my guides mixes up). But when I look at this:

clearly videlan is enabled which means the advice in the link referenced in caf4926’s post was ignored.

There is a possibility that might be your problem. It will not be until I get home later and am able to check the rpm versions that I will be able to acertain that is the case, but it looks so to me. Clearly your vlc version is NOT a packman version, and you have mixed up packman and videolan versions likely causing all sorts of problems.

After following the guide, VLC did not appear to be installed, I added it from the VLC repository without any dependency warnings.

The guide warns to use videolan for only libdvdcss.

There are no dependency warnings. This is a community hiccup with different packagers deciding NOT to work to have compatibility with each other’s packages, and it is not within the “power” of this forum to do anything about but provide advice to warn users. If users ignore the warning then they will likely experience the consequences.

The videolan packaged vlc is not compatible with packman packaged codecs nor other packman packaged apps.

IMHO you should replace ALL videolan packaged applications with Packman packaged applications.

… also, do not forget to check into this:

Correct me if I’m wrong, but I asked about getting VLC to work. That was the pretense which led me to find that guide in the first place.

If you can’t help me get VLC working that’s fine, but I’d rather you say so instead of fixing problems that I don’t have.

I’m trying to help you with VLC. If you have a mix of Packman and Videolan codecs, then VLC will work inappropriately. I can NOT predict the symptoms of the inappropriate behaviour.

Please also note there could be other contribution causes, such as beagle sucking up input/output to your hard drive (which I KNOW can cause videos to play back poorly in multimedia applications) and a pulse audio configuration file problem (which I KNOW can cause videos to play back poorly in multimedia applications).

But if you think I am giving advice to fix problems that you don’t have (which is not my intent) then please ignore every post of mine above. Apologies for wasting your time and mine. I’ll leave this thread, as I see no point in my continuing.

Let’s establish if you have libdvdcss isnstalled. Do this in a terminal:
rpm -q libdvdcss

If it appears like this: libdvdcss-1.2.10-6.1

Next do this:

1 | Packman | Packman | Yes | Yes | 90 | rpm-md | Index of /packman/suse/11.1 |
2 | Videolan_VLC | Videolan VLC | No | No | 99 | rpm-md | Index of /pub/vlc/SuSE/11.1/ |
3 | openSUSE 11.1-0 | openSUSE 11.1-0 | Yes | No | 99 | yast2 | cd:///?devices=/dev/sr0 |
4 | repo-debug | openSUSE-11.1-Debug | No | Yes | 100 | NONE | Index of /debug/distribution/11.1/repo/oss |
5 | repo-non-oss | openSUSE-11.1-Non-Oss | Yes | Yes | 100 | yast2 | Index of /distribution/11.1/repo/non-oss |
6 | repo-oss | openSUSE-11.1-Oss | Yes | Yes | 100 | yast2 | Index of /distribution/11.1/repo/oss |
7 | repo-source | openSUSE-11.1-Source | No | Yes | 100 | NONE | Index of /source/distribution/11.1/repo/oss |
8 | repo-update | openSUSE-11.1-Update | Yes | Yes | 99 | rpm-md | Index of /update/11.1

Change your repos to as shown in bold.

Then do this in a su terminal

zypper ref

then

zypper up

I’m following the guide. First I set up the respositories and set the priorities. I think that’s all correct. Now I’m using the zypper option to install packages. I started with just libdvdcss:

~> sudo zypper in libdvdcss
root's password:                                   
Retrieving repository 'Updates for openSUSE 11.2-0' metadata [done]
Building repository 'Updates for openSUSE 11.2-0' cache [done]     
Loading repository data...                                         
Reading installed packages...                                      
Resolving package dependencies...                                  

The following NEW package is going to be installed:
  libdvdcss                                        

1 new package to install.
Overall download size: 19.0 KiB. After the operation, additional 35.0 KiB will 
be used.                                                                       
Continue? [y/n/?] (y): y                                                       
Retrieving package libdvdcss-1.2.10-6.17.x86_64 (1/1), 19.0 KiB (35.0 KiB unpacked)                                                                             
Retrieving: libdvdcss-1.2.10-6.17.x86_64.rpm [done]                             
Installing: libdvdcss-1.2.10-6.17 [done]      

Then I removed the VLC repository.
Next, I used this zypper command from the guide:

~> sudo zypper in libavcodec52 libdvdnav4 libdvdread4 libffmpeg0 libquicktime0 libxine1 libxine1-codecs libxvidcore4 smplayer vlc w32codec-all xine-ui xvidcore gnome-mplayer gecko-mediaplayer
Loading repository data...
Reading installed packages...
'libdvdread4' is already installed.
'libxine1' is already installed.
'smplayer' not found.
'gnome-mplayer' not found.
'gecko-mediaplayer' not found.
Resolving package dependencies...

The following NEW packages are going to be installed:
  fribidi imlib2 iso-codes lash-libs liba52-0 libass4 libavc1394-0 libavcodec52
  libavdevice52 libavformat52 libavutil50 libcaca0 libcddb2 libdc1394-22
  libdc1394_control12 libdca0 libdirac_encoder0 libdvbpsi5 libdvdnav4 libebml
  libenca0 libfaac0 libfaad2 libffmpeg0 libfluidsynth1 libggi2 libgii1 libgsm1
  libid3tag libiso9660-7 libjack0 libkate1 libmad0 libmatroska libmodplug0
  libmp3lame0 libmpeg2-0 libnotify libnotify1 liboil-0_3-0 libopencore-amrnb0
  libopencore-amrwb0 libpostproc51 libquicktime0 libschroedinger-1_0-0
  libSDL_image-1_2-0 libsexy libshout3 libstdc++33-32bit libswscale0
  libtwolame0 libvlc2 libvlccore2 libwnck-1-22 libx264-78 libxine1-codecs
  libxvidcore4 notification-daemon portaudio slang vcdimager vlc vlc-noX vlc-qt
  w32codec-all xine-ui xosd xvidcore

The following package is going to be REMOVED:
  libquicktime

The following packages are going to be upgraded:
  libxine1 libxine1-gnome-vfs libxine1-pulse

The following packages are going to change vendor:
  libxine1            openSUSE -> http://packman.links2linux.de
  libxine1-gnome-vfs  openSUSE -> http://packman.links2linux.de
  libxine1-pulse      openSUSE -> http://packman.links2linux.de


3 packages to upgrade, 68 new, 1 to remove, 3  to change vendor.
Overall download size: 33.0 MiB. After the operation, additional 96.0 MiB will
be used.
Continue? [y/n/p/?] (y): n

As you can see, I aborted. I did this because I don’t think I want to remove quicktime. How can I avoid removing quicktime? Thanks.

Here’s what I ended up doing. I haven’t tested it yet…


~> sudo zypper in libavcodec52 libdvdnav4 libdvdread4 libffmpeg0 libxine1 libxine1-codecs libxvidcore4 smplayer vlc w32codec-all xine-ui xvidcore gnome-mplayer
Loading repository data...
Reading installed packages...
'libdvdread4' is already installed.
'libxine1' is already installed.
'smplayer' not found.
'gnome-mplayer' not found.
Resolving package dependencies...

The following NEW packages are going to be installed:
  fribidi imlib2 iso-codes lash-libs liba52-0 libass4 libavc1394-0 libavcodec52
  libavdevice52 libavformat52 libavutil50 libcaca0 libcddb2 libdc1394-22
  libdc1394_control12 libdca0 libdirac_encoder0 libdvbpsi5 libdvdnav4 libebml
  libenca0 libfaac0 libfaad2 libffmpeg0 libfluidsynth1 libggi2 libgii1 libgsm1
  libid3tag libiso9660-7 libjack0 libkate1 libmad0 libmatroska libmodplug0
  libmp3lame0 libmpeg2-0 libnotify libnotify1 liboil-0_3-0 libopencore-amrnb0
  libopencore-amrwb0 libpostproc51 libschroedinger-1_0-0 libSDL_image-1_2-0
  libsexy libshout3 libstdc++33-32bit libswscale0 libtwolame0 libvlc2
  libvlccore2 libwnck-1-22 libx264-78 libxine1-codecs libxvidcore4
  notification-daemon portaudio slang vcdimager vlc vlc-noX vlc-qt w32codec-all
  xine-ui xosd xvidcore

The following packages are going to be upgraded:
  libxine1 libxine1-gnome-vfs libxine1-pulse

The following packages are going to change vendor:
  libxine1            openSUSE -> http://packman.links2linux.de
  libxine1-gnome-vfs  openSUSE -> http://packman.links2linux.de
  libxine1-pulse      openSUSE -> http://packman.links2linux.de


3 packages to upgrade, 67 new, 3  to change vendor.
Overall download size: 32.7 MiB. After the operation, additional 95.8 MiB will
be used.


In post #14, you should have just accepted.
The libquicktime didn’t matter as you were getting an alternative from Packman (libquicktime0).
You should make sure that is what you have.

What repo’s are you using? It’s odd that you don’t get smplayer, gnome-mplayer, gecko-mediaplayer

Repos are listed here:
No TV in Kaffeine - openSUSE Forums
where you replied to me also.

Thanks for clearing up about quicktime. Here’s what I did:

# zypper in libquicktime0
Loading repository data...                             
Reading installed packages...                          
Resolving package dependencies...                      

The following NEW package is going to be installed:
  libquicktime0                                    

The following package is going to be REMOVED:
  libquicktime                               

1 new package to install, 1 to remove.
Overall download size: 305.0 KiB. After the operation, additional 162.0 KiB 
will be used.                                                               
Continue? [y/n/p/?] (y):                                                    
Retrieving package libquicktime0-1.1.3-100.pm.103.1.x86_64 (1/1), 305.0 KiB (1.0 MiB unpacked)                                                                  
Retrieving: libquicktime0-1.1.3-100.pm.103.1.x86_64.rpm [done (116.8 KiB/s)]    
Installing: libquicktime0-1.1.3-100.pm.103.1 [done]                             
Additional rpm output:                                                          
warning: /var/cache/zypp/packages/Packman/x86_64/libquicktime0-1.1.3-100.pm.103.1.x86_64.rpm: Header V3 DSA signature: NOKEY, key ID 9a795806                   


There are some running programs that use files deleted by recent upgrade. You may wish to restart some of them. Run 'zypper ps' to list these programs.

A bunch of programs were listed (including kde4), so I guess I’ll reboot now.

I had seen the repo’s there, but I need zypper lr -d but from what I see you are probably OK, so don’t worry.

Here is that output, just so the info is complete:

# zypper lr -d
# | Alias                               | Name                        | Enabled | Refresh | Priority | Type   | URI                                                             | Service
--+-------------------------------------+-----------------------------+---------+---------+----------+--------+-----------------------------------------------------------------+--------
1 | Packman                             | Packman                     | Yes     | Yes     |   90     | rpm-md | http://packman.jacobs-university.de/suse/11.2/                  |
2 | Videolan_VLC                        | Videolan VLC                | No      | No      |   99     | rpm-md | http://download.videolan.org/pub/vlc/SuSE/11.2                  |
3 | http-download.opensuse.org-bd864a79 | Updates for openSUSE 11.2-0 | Yes     | Yes     |   99     | rpm-md | http://download.opensuse.org/update/11.2/                       |
4 | openSUSE 11.2-0                     | openSUSE 11.2-0             | Yes     | No      |   99     | yast2  | cd:///                                                          |
5 | repo-debug                          | openSUSE-11.2-Debug         | No      | Yes     |   99     | NONE   | http://download.opensuse.org/debug/distribution/11.2/repo/oss/  |
6 | repo-non-oss                        | openSUSE-11.2-Non-Oss       | Yes     | Yes     |  120     | yast2  | http://download.opensuse.org/distribution/11.2/repo/non-oss/    |
7 | repo-oss                            | openSUSE-11.2-Oss           | Yes     | Yes     |  120     | yast2  | http://download.opensuse.org/distribution/11.2/repo/oss/        |
8 | repo-source                         | openSUSE-11.2-Source        | No      | Yes     |   99     | NONE   | http://download.opensuse.org/source/distribution/11.2/repo/oss/ |

Splendid.
You deserve a gold star for being the most sensible person for a long time.

Only thing I would say is: A default RC install will normally make oss, non-oss and updates all 99 priority.
But it shouldn’t matter.