Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 530094 - media-video/vlc-2.1.x - video stutters with ALSA output
Summary: media-video/vlc-2.1.x - video stutters with ALSA output
Status: RESOLVED DUPLICATE of bug 523366
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Paweł Stankowski
URL: https://trac.videolan.org/vlc/ticket/...
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2014-11-22 03:48 UTC by Anton Bolshakov
Modified: 2015-02-21 01:07 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
vlc-2.1.0-alsa-stuttering.patch (vlc-2.1.0-alsa-stuttering.patch,2.00 KB, patch)
2014-11-22 03:48 UTC, Anton Bolshakov
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Anton Bolshakov 2014-11-22 03:48:37 UTC
Created attachment 390036 [details, diff]
vlc-2.1.0-alsa-stuttering.patch

All versions about 2.0.x are unable to play certain TS format. I tried all currently available versions (2.1.2-2.1.5) in the tree with no success.

I found that this is an upstream bug, the details are logged here:
https://trac.videolan.org/vlc/ticket/10422

I've reverted the patch and adjusted it for 2.1.5 (see attachment). Please keep in mind that might will break systems with pulseaudio but there is no better solution yet.

I'm just attaching patch for these who really need to play their video now and they could apply it locally.

emerge --info
Portage 2.2.10 (hardened/linux/amd64, gcc-4.8.3, glibc-2.19-r1, 3.15.5-pentoo x86_64)
=================================================================
System uname: Linux-3.15.5-pentoo-x86_64-Intel-R-_Core-TM-_i5-3320M_CPU_@_2.60GHz-with-gentoo-2.2
KiB Mem:     7983344 total,   4753056 free
KiB Swap:    4194300 total,   4125984 free
Timestamp of tree: Thu, 20 Nov 2014 04:45:01 +0000
ld GNU ld (Gentoo 2.24 p1.4) 2.24
app-shells/bash:          4.2_p53
dev-java/java-config:     2.2.0
dev-lang/perl:            5.18.2-r2
dev-lang/python:          2.7.7, 3.3.5-r1, 3.4.1
dev-util/cmake:           2.8.12.2-r1
dev-util/pkgconfig:       0.28-r1
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.12.4::pentoo
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.69
sys-devel/automake:       1.13.4
sys-devel/binutils:       2.24-r3
sys-devel/gcc:            4.8.3
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.2-r1
sys-devel/make:           4.0-r1
sys-kernel/linux-headers: 3.16 (virtual/os-headers)
sys-libs/glibc:           2.19-r1
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.jp.gentoo.org/gentoo-portage/
    priority: -1000

pentoo
    location: /var/lib/layman/pentoo
    masters: gentoo
    priority: 0

steam-overlay
    location: /var/lib/layman/steam
    masters: gentoo
    priority: 1

local-overlay
    location: /usr/local/portage
    masters: gentoo
    priority: 2

ABI="amd64"
ABI_X86="64"
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA PUEL AdobeFlash-11.x Google-TOS dlj-1.1 google-chrome Oracle-BCLA-JavaSE Intel-SDP skype-4.0.0.7-copyright"
ACCEPT_PROPERTIES="*"
ACCEPT_RESTRICT="*"
ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci"
ANDROID_HOME="/opt/android-sdk-update-manager"
ANDROID_SWT="/usr/share/swt-3.7/lib"
ANT_HOME="/usr/share/ant"
APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias"
ARCH="amd64"
AUTOCLEAN="yes"
BOOTSTRAP_USE="cxx unicode internal-glib python_targets_python3_3 python_targets_python2_7 multilib hardened pax_kernel pic xtpax -jit -orc"
CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author"
CAMERAS="ptp2"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CFLAGS_amd64="-m64"
CFLAGS_x32="-mx32"
CFLAGS_x86="-m32"
CHOST="x86_64-pc-linux-gnu"
CHOST_amd64="x86_64-pc-linux-gnu"
CHOST_x32="x86_64-pc-linux-gnux32"
CHOST_x86="i686-pc-linux-gnu"
CLEAN_DELAY="5"
COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog"
COLLISION_IGNORE="/lib/modules/* *.py[co] *$py.class */dropin.cache"
COLORFGBG="15;0"
CONFIG_PROTECT="/etc /opt/sonar/conf /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=native -O2 -pipe"
DBUS_SESSION_BUS_ADDRESS="unix:abstract=/tmp/dbus-CLXVoN2hC3,guid=a05260075ebd037545c6f7145469b720"
DEFAULT_ABI="amd64"
DESKTOP_SESSION="default"
DISPLAY=":0"
DISTDIR="/usr/portage/distfiles"
DM_CONTROL="/var/run/xdmctl"
EDITOR="/usr/bin/mcedit"
ELIBC="glibc"
EMERGE_DEFAULT_OPTS=" --ask-enter-invalid --keep-going=y --binpkg-respect-use=y --tree --verbose --with-bdeps=y --buildpkg-exclude "sys-kernel/compat-drivers sys-kernel/ax88179_178a x11-drivers/ati-drivers x11-drivers/nvidia-drivers sys-fs/zfs-kmod sys-kernel/spl sys-power/bbswitch                    app-emulation/virtualbox-modules app-emulation/vmware-modules app-emulation/open-vm-tools-kmod" --usepkg-exclude "sys-kernel/compat-drivers sys-kernel/ax88179_178a x11-drivers/ati-drivers x11-drivers/nvidia-drivers sys-fs/zfs-kmod sys-kernel/spl sys-power/bbswitch                      app-emulation/virtualbox-modules app-emulation/vmware-modules app-emulation/open-vm-tools-kmod""
EMERGE_WARNING_DELAY="10"
EPREFIX=""
EROOT="/"
ES_BASHCOMP_DIRS="/usr/share/bash-completion/completions"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
Comment 1 Paweł Stankowski 2014-11-23 23:54:56 UTC
Hmm.. not sure about consequences of such change. Upstream developers said that this is not an option, so I am a little worried, that this patch may have impact on something more than pulseaudio.

Could you paste your vlc USE flags?
Comment 2 Anton Bolshakov 2014-11-24 00:01:22 UTC
as a potential option we can add enable the patch with the "alsa" flag only.

My currently enabled flags are below:
X a52 alsa avcodec avformat cdda dbus dts dvbpsi encode ffmpeg flac fontconfig gcrypt httpd kde libnotify live lua matroska mmx mp3 mpeg ncurses ogg opengl png postproc qt4 rtsp run-as-root samba sdl sse svg swscale theora truetype udev vaapi vorbis x264 xcb xml xv
Comment 3 BT 2015-01-27 07:23:37 UTC
Since this patch may impact other components, would it be possible to add eptach_user support to the ebuild? It's a pain maintaining a modified ebuild just to apply this patch.
Comment 4 Anton Bolshakov 2015-02-05 08:35:27 UTC
+1 for eptach_user.
ping?
Comment 5 Paweł Stankowski 2015-02-05 16:29:40 UTC
Good point. I will add it.
Comment 6 Paweł Stankowski 2015-02-15 11:47:56 UTC
Ebuilds with epatch_user should be available soon.

As a workaround, you could also try solution from upstream bug's comment:
"I've found out that changing the value in Preferences>Input/codecs>Advanced>File caching helps. I set it to 1000, but I assume it just needs to be set to something greater than what the ES_OUT_SET_(GROUP_)PCR error reports."
Comment 7 BT 2015-02-19 01:25:13 UTC
> As a workaround, you could also try solution from upstream bug's comment:
> "I've found out that changing the value in
> Preferences>Input/codecs>Advanced>File caching helps. I set it to 1000, but
> I assume it just needs to be set to something greater than what the
> ES_OUT_SET_(GROUP_)PCR error reports."

Setting file caching to 1000 helps initially but the ES_OUT_SET_(GROUP_)PCR error value keeps increasing as playback progresses, making it ineffective.
Comment 8 Paweł Stankowski 2015-02-21 01:07:50 UTC
epatch_user is there for some time.

I just realized that this is duplicate of other bug.

*** This bug has been marked as a duplicate of bug 523366 ***