Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
No mp4 H.264 suport in firefox [Solved - don't use libav ;)]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
sebekk23
n00b
n00b


Joined: 29 Mar 2015
Posts: 34

PostPosted: Tue Feb 12, 2019 6:04 pm    Post subject: No mp4 H.264 suport in firefox [Solved - don't use libav ;)] Reply with quote

Hi
I have no support for H.264(mp4?) in Firefox 65.0 and because of that a half of videos in internet don;t work form me :).

I don't know is it important but I'm using libav because i have intel GPU(https://wiki.gentoo.org/wiki/VAAPI) - no ffmpeg. And i have masked >=media-libs/libvpx-1.8.0 (i'm using now media-libs/libvpx-1.7.0 because of compilation error in qtwebengine)


Does anyone had similar problem?

h3x0r@hp ~ $ equery u firefox
Code:

[ Legend : U - final flag setting for installation]
[        : I - package is installed with flag     ]
[ Colors : set, unset                             ]
 * Found these USE flags for www-client/firefox-65.0:
 U I
 - - bindist              : Disable official Firefox branding (icons, name) which are not binary-redistributable according to upstream.
 - - clang                : Use Clang compiler instead of GCC
 - - 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
 - - eme-free             : Disable EME (DRM plugin) cabability at build time
 - - geckodriver          : Enable WebDriver support
 + + 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
 - - l10n_ach             : Acoli
 - - l10n_af              : Afrikaans
 - - l10n_an              : Aragonese
 - - l10n_ar              : Arabic
 - - l10n_as              : Assamese
 - - l10n_ast             : Asturian
 - - l10n_az              : Azerbaijani
 - - l10n_bg              : Bulgarian
 - - l10n_bn-BD           : Bengali (Bangladesh)
 - - l10n_bn-IN           : Bengali (India)
 - - l10n_br              : Breton
 - - l10n_bs              : Bosnian
 - - l10n_ca              : Catalan
 - - l10n_cak             : Kaqchikel
 - - l10n_cs              : Czech
 - - l10n_cy              : Welsh
 - - l10n_da              : Danish
 - - l10n_de              : German
 - - l10n_dsb             : Lower Sorbian
 - - l10n_el              : Modern Greek
 - - l10n_en-GB           : English (United Kingdom)
 - - l10n_en-ZA           : English (South Africa)
 - - l10n_eo              : Esperanto
 - - l10n_es-AR           : Spanish (Argentina)
 - - l10n_es-CL           : Spanish (Chile)
 - - l10n_es-ES           : Spanish (Spain)
 - - l10n_es-MX           : Spanish (Mexico)
 - - l10n_et              : Estonian
 - - l10n_eu              : Basque
 - - l10n_fa              : Persian
 - - l10n_ff              : Fulah
 - - l10n_fi              : Finnish
 - - l10n_fr              : French
 - - l10n_fy              : Western Frisian
 - - l10n_ga              : Irish
 - - l10n_gd              : Scottish Gaelic
 - - l10n_gl              : Galician
 - - l10n_gn              : Guarani
 - - l10n_gu              : Gujarati
 - - l10n_he              : Hebrew
 - - l10n_hi              : Hindi
 - - l10n_hr              : Croatian
 - - l10n_hsb             : Upper Sorbian
 - - l10n_hu              : Hungarian
 - - l10n_hy              : Armenian
 - - l10n_id              : Indonesian
 - - l10n_is              : Icelandic
 - - l10n_it              : Italian
 - - l10n_ja              : Japanese
 - - l10n_ka              : Georgian
 - - l10n_kab             : Kabyle
 - - l10n_kk              : Kazakh
 - - l10n_km              : Central Khmer
 - - l10n_kn              : Kannada
 - - l10n_ko              : Korean
 - - l10n_lij             : Ligurian
 - - l10n_lt              : Lithuanian
 - - l10n_lv              : Latvian
 - - l10n_mai             : Maithili
 - - l10n_mk              : Macedonian
 - - l10n_ml              : Malayalam
 - - l10n_mr              : Marathi
 - - l10n_ms              : Malay (macrolanguage)
 - - l10n_nb              : Norwegian Bokmål
 - - l10n_nl              : Dutch
 - - l10n_nn              : Norwegian Nynorsk
 - - l10n_or              : Oriya (macrolanguage)
 - - l10n_pa              : Punjabi
 + + l10n_pl              : Polish
 - - l10n_pt-BR           : Portuguese (Brazil)
 - - l10n_pt-PT           : Portuguese (Portugal)
 - - l10n_rm              : Romansh
 - - l10n_ro              : Romanian
 - - l10n_ru              : Russian
 - - l10n_si              : Sinhala
 - - l10n_sk              : Slovak
 - - l10n_sl              : Slovenian
 - - l10n_son             : Songhai languages
 - - l10n_sq              : Albanian
 - - l10n_sr              : Serbian
 - - l10n_sv              : Swedish
 - - l10n_ta              : Tamil
 - - l10n_te              : Telugu
 - - l10n_th              : Thai
 - - l10n_tr              : Turkish
 - - l10n_uk              : Ukrainian
 - - l10n_uz              : Uzbek
 - - l10n_vi              : Vietnamese
 - - l10n_xh              : Xhosa
 - - l10n_zh-CN           : Chinese (China)
 - - l10n_zh-TW           : Chinese (Taiwan)
 - - lto                  : Enable Link Time Optimization (LTO). Requires Gold linker when using GCC or LDD linker when using Clang
 - - 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
 + + screenshot           : Allow to disable screenshot extension in global profile
 + + 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
 + + system-webp          : Use the system-wide media-libs/libwebp instead of bundled.
 - - test                 : Enable dependencies and/or preparations necessary to run tests (usually controlled by FEATURES=test but can be toggled independently)
 - - wayland              : Enable dev-libs/wayland backend
 + + wifi                 : Enable wireless network functions


h3x0r@hp ~ $ emerge --info
Code:

Portage 2.3.59 (python 3.6.6-final-0, default/linux/amd64/17.0/desktop/plasma, gcc-8.2.0, glibc-2.28-r5, 4.20.7-gentoo x86_64)
=================================================================
System uname: Linux-4.20.7-gentoo-x86_64-Intel-R-_Core-TM-_i7-6600U_CPU_@_2.60GHz-with-gentoo-2.6
KiB Mem:     8099884 total,   5114720 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Sun, 10 Feb 2019 18:00:01 +0000
Head commit of repository gentoo: 2c1ca5778d3dd8db70ee12949d6b7d76ec7ced33
sh bash 5.0_p2
ld GNU ld (Gentoo 2.31.1 p5) 2.31.1
app-shells/bash:          5.0_p2::gentoo
dev-lang/perl:            5.28.0::gentoo
dev-lang/python:          2.7.15::gentoo, 3.6.6::gentoo
dev-util/cmake:           3.13.4::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.6-r1::gentoo
sys-apps/openrc:          0.40.3::gentoo
sys-apps/sandbox:         2.15::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.16.1-r1::gentoo
sys-devel/binutils:       2.31.1-r3::gentoo
sys-devel/gcc:            8.2.0-r6::gentoo
sys-devel/gcc-config:     2.0::gentoo
sys-devel/libtool:        2.4.6-r5::gentoo
sys-devel/make:           4.2.1-r4::gentoo
sys-kernel/linux-headers: 4.20::gentoo (virtual/os-headers)
sys-libs/glibc:           2.28-r5::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-extra-opts:
    sync-rsync-verify-metamanifest: yes
    sync-rsync-verify-jobs: 1
    sync-rsync-verify-max-age: 24

ACCEPT_KEYWORDS="amd64 ~amd64 ~x86"
ACCEPT_LICENSE="* -@EULA @BINARY-REDISTRIBUTABLE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O3 -pipe -march=corei7 -mtune=corei7"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /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="-O3 -pipe -march=corei7 -mtune=corei7"
DISTDIR="/usr/portage/distfiles"
ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="ftp://ftp.vectranet.pl/gentoo/ rsync://ftp.vectranet.pl/gentoo/ http://ftp.vectranet.pl/gentoo/"
LANG="pl_PL.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en pl"
MAKEOPTS="-j5"
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_TMDIR="/var/tmp"
USE="X a52 aac acpi activities alsa amd64 bash-completion berkdb bluetooth branding bzip2 cairo cdda cdr cli consolekit crypt css cups curl cxx dbus declarative djvu dri dts dvd dvdr emboss encode exif fam flac fortran gdbm gif git glamor glut gpm gstreamer gtk gtk3 hddtemp iconv icu ipv6 jit jpeg kde kipi kwallet lame lcms ldap libav libnotify libtirpc lm_sensors mad matroska mng mp3 mp4 mpeg mtp multilib ncurses networkmanager nls nptl offensive ogg openal opengl openmp orc pam pango pch pcre pdf phonon plasma png policykit posix ppds qml qt5 rdesktop readline sdl seccomp semantic-desktop smartcard smp sound spell ssl startup-notification svg tcpd theora tiff truetype udev udisks unicode upower usb v4l vaapi vim-syntax vnc vorbis widgets wifi wxwidgets x264 xattr xcb xcomposite xml xv xvid zlib" ABI_X86="64" ALSA_CARDS="hda-intel usb-audio" 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="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul 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 keyboard mouse synaptics" KERNEL="linux" L10N="en en-US pl" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" NETBEANS_MODULES="apisupport cnd groovy gsf harness ide identity j2ee java mobility nb php profiler soa visualweb webcommon websvccommon xml" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6 php7-1" POSTGRES_TARGETS="postgres9_5 postgres10" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python2_7 python3_6" QEMU_SOFTMMU_TARGETS="arm x86_64 i386" QEMU_USER_TARGETS="x86_64" RUBY_TARGETS="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, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS



h3x0r@hp ~ $ gst-inspect-1.0 | grep -i -E '(mp4|h264)'
Code:

vaapi:  vaapih264dec: VA-API H264 decoder
vaapi:  vaapih264enc: VA-API H264 encoder
vaapi:  vaapih264feienc: VA-API H264 FEI Advanced encoder (Experimental)
videoparsersbad:  h264parse: H.264 parser
isomp4:  qtdemux: QuickTime demuxer
isomp4:  rtpxqtdepay: RTP packet depayloader
isomp4:  qtmux: QuickTime Muxer
isomp4:  mp4mux: MP4 Muxer
isomp4:  ismlmux: ISML Muxer
isomp4:  3gppmux: 3GPP Muxer
isomp4:  mj2mux: MJ2 Muxer
isomp4:  qtmoovrecover: QT Moov Recover
rtp:  rtph264depay: RTP H264 depayloader
rtp:  rtph264pay: RTP H264 payloader
rtp:  rtpmp4vpay: RTP MPEG4 Video payloader
rtp:  rtpmp4vdepay: RTP MPEG4 video depayloader
rtp:  rtpmp4apay: RTP MPEG4 audio payloader
rtp:  rtpmp4adepay: RTP MPEG4 audio depayloader
rtp:  rtpmp4gdepay: RTP MPEG4 ES depayloader
rtp:  rtpmp4gpay: RTP MPEG4 ES payloader
typefindfunctions: video/x-h264: h264, x264, 264
typefindfunctions: video/quicktime: mov, mp4


h3x0r@hp ~ $ vainfo
Code:

libva info: VA-API version 1.3.0
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/lib64/va/drivers/i965_drv_video.so
libva info: Found init function __vaDriverInit_1_3
libva info: va_openDriver() returns 0
vainfo: VA-API version: 1.3 (libva 2.3.0)
vainfo: Driver version: Intel i965 driver for Intel(R) Skylake - 2.2.0
vainfo: Supported profile and entrypoints
      VAProfileMPEG2Simple            : VAEntrypointVLD
      VAProfileMPEG2Simple            : VAEntrypointEncSlice
      VAProfileMPEG2Main              : VAEntrypointVLD
      VAProfileMPEG2Main              : VAEntrypointEncSlice
      VAProfileH264ConstrainedBaseline: VAEntrypointVLD
      VAProfileH264ConstrainedBaseline: VAEntrypointEncSlice
      VAProfileH264ConstrainedBaseline: VAEntrypointEncSliceLP
      VAProfileH264ConstrainedBaseline: VAEntrypointFEI
      VAProfileH264ConstrainedBaseline: VAEntrypointStats
      VAProfileH264Main               : VAEntrypointVLD
      VAProfileH264Main               : VAEntrypointEncSlice
      VAProfileH264Main               : VAEntrypointEncSliceLP
      VAProfileH264Main               : VAEntrypointFEI
      VAProfileH264Main               : VAEntrypointStats
      VAProfileH264High               : VAEntrypointVLD
      VAProfileH264High               : VAEntrypointEncSlice
      VAProfileH264High               : VAEntrypointEncSliceLP
      VAProfileH264High               : VAEntrypointFEI
      VAProfileH264High               : VAEntrypointStats
      VAProfileH264MultiviewHigh      : VAEnth3x0r@hp ~ $ gst-inspect-1.0 | grep -i -E '(mp4|h264)'rypointVLD
      VAProfileH264MultiviewHigh      : VAEntrypointEncSlice
      VAProfileH264StereoHigh         : VAEntrypointVLD
      VAProfileH264StereoHigh         : VAEntrypointEncSlice
      VAProfileVC1Simple              : VAEntrypointVLD
      VAProfileVC1Main                : VAEntrypointVLD
      VAProfileVC1Advanced            : VAEntrypointVLD
      VAProfileNone                   : VAEntrypointVideoProc
      VAProfileJPEGBaseline           : VAEntrypointVLD
      VAProfileJPEGBaseline           : VAEntrypointEncPicture
      VAProfileVP8Version0_3          : VAEntrypointVLD
      VAProfileVP8Version0_3          : VAEntrypointEncSlice
      VAProfileHEVCMain               : VAEntrypointVLD
      VAProfileHEVCMain               : VAEntrypointEncSlice


Last edited by sebekk23 on Wed Feb 13, 2019 12:34 pm; edited 1 time in total
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 7035
Location: Saint Amant, Acadiana

PostPosted: Tue Feb 12, 2019 6:06 pm    Post subject: Reply with quote

Quote:
I don't know is it important but I'm using libav because i have intel GPU


You are confusing libva with libav. When using libav you need to make sure it is built with support for mp4 container and H.264.
_________________
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
sebekk23
n00b
n00b


Joined: 29 Mar 2015
Posts: 34

PostPosted: Tue Feb 12, 2019 7:46 pm    Post subject: Reply with quote

You are right i have confused libva with libav(which i don't have).

So i have to install media-video/libav(with x264 support) to make Firefox[/gwn] works with mp4?
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 7035
Location: Saint Amant, Acadiana

PostPosted: Tue Feb 12, 2019 8:26 pm    Post subject: Reply with quote

Not sure, never used libav, ffmpeg can decode common formats without extra flags set, the flags are for encoding. I think it is the same with libav.
_________________
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
sebekk23
n00b
n00b


Joined: 29 Mar 2015
Posts: 34

PostPosted: Wed Feb 13, 2019 7:44 am    Post subject: Reply with quote

After installing issue still remains - i will look forward for solution.

Btw. I have Falkon browser which uses qtwebengine and video in mp4 format works there
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 7035
Location: Saint Amant, Acadiana

PostPosted: Wed Feb 13, 2019 12:25 pm    Post subject: Reply with quote

Error messages from Firefox?
_________________
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
sebekk23
n00b
n00b


Joined: 29 Mar 2015
Posts: 34

PostPosted: Wed Feb 13, 2019 12:34 pm    Post subject: Reply with quote

ok - i got it, now mp4 is working perfectly :)

i had this crappy libav after disabling this use flag and enabling ffmpeg everything works.

Thx.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum