Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 627394 - media-video/ffmpeg-3.3.3 breaks video playback in firefox
Summary: media-video/ffmpeg-3.3.3 breaks video playback in firefox
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Mozilla Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-08-09 12:10 UTC by Lukas Hrazky
Modified: 2017-08-09 22:31 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Lukas Hrazky 2017-08-09 12:10:07 UTC
After upgrading media-video/ffmpeg-3.3.2 to version 3.3.3 video playback (youtube) in firefox (version 54 and later after upgrade version 55 too) broke. The audio keeps playing smoothly but the video track stalls often, sometimes showing the loading circle, then playing at increased speed to 'catch up', then stalling again etc. All the while out of sync with the audio.

After downgrading to media-video/ffmpeg-3.2.7 the issue disappeared immediately. Version 3.3.2 is unfortunately gone from portage. It would be nice to have it back until the issue is fixed in the latest version.

I've looked for upstream bug but haven't found any. Haven't created one yet.

emerge --info:
Portage 2.3.6 (python 3.4.6-final-0, default/linux/amd64/13.0, gcc-5.4.0, glibc-2.24-r3, 4.9.10-gentoo x86_64)
=================================================================
System uname: Linux-4.9.10-gentoo-x86_64-Intel-R-_Core-TM-_i5-5300U_CPU_@_2.30GHz-with-gentoo-2.4.1
KiB Mem:     8066768 total,   1347468 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Tue, 08 Aug 2017 09:31:50 +0000
sh bash 4.4_p12
ld GNU ld (Gentoo 2.27 p1.0) 2.27
app-shells/bash:          4.4_p12::gentoo
dev-lang/perl:            5.24.2::gentoo
dev-lang/python:          2.7.13::gentoo, 3.4.6::gentoo
dev-util/cmake:           3.9.0::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.4.1::gentoo
sys-apps/openrc:          0.28::gentoo
sys-apps/sandbox:         2.10-r4::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.11.6-r2::gentoo, 1.13.4-r1::gentoo, 1.15.1::gentoo
sys-devel/binutils:       2.27::gentoo, 2.28-r2::gentoo, 2.28.1::gentoo
sys-devel/gcc:            5.4.0-r3::gentoo, 6.3.0::gentoo, 6.4.0::gentoo
sys-devel/gcc-config:     1.8-r1::gentoo
sys-devel/libtool:        2.4.6-r4::gentoo
sys-devel/make:           4.2.1-r1::gentoo
sys-kernel/linux-headers: 4.10::gentoo (virtual/os-headers)
sys-libs/glibc:           2.24-r3::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/gentoo
    priority: -1000

lu
    location: /usr/local/ebuilds
    sync-type: git
    sync-uri: /home/lu/dev/ebuilds
    masters: gentoo

palemoon
    location: /var/lib/layman/palemoon
    sync-type: laymansync
    sync-uri: https://github.com/deuiore/palemoon-overlay.git
    masters: gentoo
    priority: 50

rust
    location: /var/lib/layman/rust
    sync-type: laymansync
    sync-uri: git@github.com:gentoo/gentoo-rust.git
    masters: gentoo
    priority: 50

science
    location: /var/lib/layman/science
    sync-type: laymansync
    sync-uri: git://anongit.gentoo.org/proj/sci.git
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--quiet-build=y"
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"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j5 -l4"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="X aac acl aes alsa amd64 avx avx2 berkdb bluetooth bzip2 cli cracklib crypt cups cxx dbus dri ffmpeg flac fma3 fortran gdbm gnome-keyring gtk gtkstyle iconv icu id3tag ipv6 jpeg jpeg2k libkms lzma lzo mmx mmxext modules mp3 multilib ncurses networkmanager nls nptl ogg opengl openmp opus pam pcre png policykit popcnt pulseaudio python qt5 readline sdl seccomp session sse sse2 sse3 sse4_1 sse4_2 ssl ssse3 svg systemd tcpd truetype udisks unicode v4l vaapi vorbis webp x264 x265 xattr xcb xvid zlib" ABI_X86="64" 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" 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" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 fma3 mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput evdev synaptics" KERNEL="linux" L10N="en" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6" POSTGRES_TARGETS="postgres9_5" PYTHON_SINGLE_TARGET="python3_4" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby23 ruby24" USERLAND="GNU" VIDEO_CARDS="intel i965" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON


Reproducible: Always
Comment 1 Jory A. Pratt gentoo-dev 2017-08-09 12:34:06 UTC
I am unable to duplicate the problem, do you have hwaccel enabled by chance on firefox?
Comment 2 Lukas Hrazky 2017-08-09 12:42:52 UTC
(In reply to Jory A. Pratt from comment #1)
> I am unable to duplicate the problem, do you have hwaccel enabled by chance
> on firefox?

I don't, these are the use flags I have for firefox (l10n flags excluded for brevity):

# equery u firefox
 * Found these USE flags for www-client/firefox-55.0:
 U I
 - - bindist              : Disable official Firefox branding (icons, name) which are not binary-redistributable according to upstream.
 - - custom-cflags        : Build with user-specified CFLAGS (unsupported)
 - - custom-optimization  : Build with user-specified compiler optimizations (-Os, -O0, -O1, -O2, -O3) from CFLAGS (unsupported)
 + + dbus                 : Enable dbus support for anything that needs it (gpsd, gnomemeeting, etc)
 - - debug                : Enable extra debug codepaths, like asserts and extra output. If you want to get meaningful backtraces see https://wiki.gentoo.org/wiki/Project:Quality_Assurance/Backtraces
 + + gmp-autoupdate       : Allow Gecko Media Plugins (binary blobs) to be automatically downloaded and kept up-to-date in user profiles
 - - hardened             : Activate default security enhancements for toolchain (gcc, glibc, binutils)
 - - hwaccel              : Force-enable hardware-accelerated rendering (Mozilla bug 594876)
 - - jack                 : Add support for the JACK Audio Connection Kit
 - - nsplugin             : Enable support for NPAPI plugins other than flash
 - - pgo                  : Add support for profile-guided optimization using gcc-4.5, for faster binaries. This option will double the compile time.
 + + pulseaudio           : Add support for PulseAudio sound server
 - - startup-notification : Enable application startup event feedback mechanism
 - - system-harfbuzz      : Use the system-wide media-libs/harfbuzz and media-gfx/graphite2 instead of bundled.
 - - system-icu           : Use the system-wide dev-libs/icu instead of bundled.
 - - system-jpeg          : Use the system-wide media-libs/libjpeg-turbo instead of bundled.
 - - system-libevent      : Use the system-wide dev-libs/libevent instead of bundled.
 - - system-libvpx        : Use the system-wide media-libs/libvpx instead of bundled.
 - - system-sqlite        : Use the system-wide dev-db/sqlite installation with secure-delete enabled
 - - test                 : Workaround to pull in packages needed to run with FEATURES=test. Portage-2.1.2 handles this internally, so don't set it in make.conf/package.use anymore
 - - wifi                 : Enable wireless network functions
Comment 3 Lukas Hrazky 2017-08-09 21:35:12 UTC
Ok, the problem is probably caused by something else, I just got the video stalls again even with ffmpeg-3.2.7. I currently have no clue.
Comment 4 Lukas Hrazky 2017-08-09 22:31:23 UTC
Ok, found it. I've actually just started streaming sound to a sound server through pulseaudio and it was working for a while but started breaking now. Coincidentally it appeared to be affected by the ffmpeg upgrade and downgrade.

It seems instead something about systemd-timesyncd broke time synchronization that caused this issue and apparently pulseaudio network streaming isn't anything to write home about either. Go figure...

Sorry about the noise, closing the issue.