Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 698970 - media-video/handbrake-1.2.2 with >=media-video/ffmpeg-4.2 - no audio is being transcoded
Summary: media-video/handbrake-1.2.2 with >=media-video/ffmpeg-4.2 - no audio is being...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Ian Whyman (thev00d00) (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-10-30 23:01 UTC by Tsukasa
Modified: 2019-11-15 20:50 UTC (History)
1 user (show)

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 Tsukasa 2019-10-30 23:01:33 UTC
Using the same 1.2.2 ebuild of handbrake since last march, it ends up getting rebuilt when depencies are upgraded, for awhile all transcodes have had no audio and I get error's in the logs indicating 0 input bitrates and libhb error's.
Downgrading ffmpeg to 4.1.x has fixed the issue for me, so I would like the ebuild adjusted for others to not run into the same problem.

Reproducible: Always

Steps to Reproduce:
1.emerge handbrake and >=ffmpeg-4.2.0
2.pick to transcode media to another format (x264 x265 etc)
3.open the activity window
Actual Results:  
No sound in output file

Expected Results:  
Non-breaking changes :)

Stopped transcoding immediately instead of silently finishing all queued jobs and reporting success.
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2019-10-31 08:06:53 UTC
Please post your `emerge --info media-video/handbrake` output in a comment.


(In reply to Tsukasa from comment #0)
> I get error's in the logs indicating 0 input bitrates and
> libhb error's.

It would help if you showed those errors, in full.
Comment 2 Tsukasa 2019-10-31 20:04:55 UTC
Portage 2.3.78 (python 3.6.9-final-0, default/linux/amd64/17.1/desktop, gcc-9.2.0, glibc-2.29-r6, 5.3.4-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-5.3.4-gentoo-x86_64-AMD_FX-tm-8350_Eight-Core_Processor-with-gentoo-2.6
KiB Mem:     8117860 total,   5148132 free
KiB Swap:    2097148 total,   2097148 free
Timestamp of repository gentoo: Wed, 30 Oct 2019 22:10:37 +0000
Head commit of repository gentoo: 2267ff7fc81818f54c413aa98e0642110edcea5b

Timestamp of repository eclipse: Wed, 30 Oct 2019 21:36:04 +0000
Head commit of repository eclipse: 5fe865eec412d89c39cf0153b2a17024661c6a29

Head commit of repository steam-overlay: 5b099b835b5b8dc7f37390e37e44cebba7cc315d

Head commit of repository x11: afbaafaa912dc09a19fee7ee28ef94c44a134a06

sh bash 5.0_p11
ld GNU ld (Gentoo 2.32 p2) 2.32.0
app-shells/bash:          5.0_p11::gentoo
dev-java/java-config:     2.2.0-r4::gentoo
dev-lang/perl:            5.30.0::gentoo
dev-lang/python:          2.7.16::gentoo, 3.6.9::gentoo
dev-util/cmake:           3.15.4::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.6-r1::gentoo
sys-apps/openrc:          0.42.1::gentoo
sys-apps/sandbox:         2.18::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.11.6-r3::gentoo, 1.16.1-r1::gentoo
sys-devel/binutils:       2.32-r1::gentoo
sys-devel/gcc:            9.2.0-r1::gentoo
sys-devel/gcc-config:     2.1::gentoo
sys-devel/libtool:        2.4.6-r5::gentoo
sys-devel/make:           4.2.1-r4::gentoo
sys-kernel/linux-headers: 5.3::gentoo (virtual/os-headers)
sys-libs/glibc:           2.29-r6::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: git
    sync-uri: https://anongit.gentoo.org/git/repo/gentoo.git
    priority: -1000

eclipse
    location: /var/db/repos/eclipse
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/eclipse.git
    masters: gentoo

localrepo
    location: /usr/local/portage
    masters: gentoo

steam-overlay
    location: /usr/local/steam-overlay
    sync-type: git
    sync-uri: https://github.com/anyc/steam-overlay/
    masters: gentoo

x11
    location: /usr/local/x11-overlay
    sync-type: git
    sync-uri: https://anongit.gentoo.org/git/proj/x11.git
    masters: gentoo

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=native -mtune=native"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /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="-O2 -march=native -mtune=native"
DISTDIR="/usr/portagedistfiles"
EMERGE_DEFAULT_OPTS="--jobs 2 --load-average 4 --nospinner --fail-clean --with-bdeps=y --autounmask-keep-masks"
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 fail-clean 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"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.utf8"
LDFLAGS="-O2 -march=native -mtune=native"
MAKEOPTS="-j8 -l8"
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 a52 aac acl acpi amd64 berkdb bluetooth branding bzip2 cairo cdda cdr cli consolekit crypt cups cxx dbus dri dts dvd dvdr emboss encode exif fam flac fortran gdbm gif glamor gpm gtk iconv icu introspection jpeg lcms ldap libnotify libtirpc lm_sensors mad mng mp3 mp4 mpeg multilib ncurses nls nptl ogg opengl openmp pam pango pcre pdf png policykit ppds pulseaudio qt5 readline sdl seccomp spell split-usr ssl startup-notification svg tcpd threads tiff truetype udev udisks unicode upower usb vaapi vdpau vorbis wxwidgets x264 xattr xcb xml xv xvid zlib" ABI_X86="64" ADA_TARGET="gnat_2018" 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="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx f16c fma3 fma4 mmx mmxext pclmul popcnt sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 xop" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="evdev" KERNEL="linux" 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="php7-2" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python2_7 python3_6" RUBY_TARGETS="ruby24 ruby25" SANE_BACKENDS="pixma" USERLAND="GNU" VIDEO_CARDS="amdgpu radeonsi" 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, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

=================================================================
                        Package Settings
=================================================================

media-video/handbrake-1.2.2-r2::gentoo was built with the following:
USE="fdk gstreamer gtk x265 -libav -libav-aac -nvenc" ABI_X86="(64)"
Comment 3 Tsukasa 2019-11-01 00:10:55 UTC
further information, found this page, looks like someone at the bottom made a custom handbrake-9999 ebuild and fixed it, so it looks like the next release of handbrake (whenever that happens) should work with ffmpeg >= 4.2

https://github.com/HandBrake/HandBrake/issues/2124

maybe require ffmpeg <4.2 on current ebuild?
Comment 4 Tsukasa 2019-11-04 21:18:14 UTC
haven't seen any action on this, so I upgraded to latest ffmpeg-4.2.1

SWR @ 0x7fd7a800c300] Requested input sample rate 0 is invalid
[16:14:55] decavcodec: hb_audio_resample_update() failed
[SWR @ 0x7fd7a800c260] Requested input sample rate 0 is invalid
[16:14:55] decavcodec: hb_audio_resample_update() failed
[SWR @ 0x7fd7a800c240] Requested input sample rate 0 is invalid
[16:14:55] decavcodec: hb_audio_resample_update() failed
[SWR @ 0x7fd7a800c300] Requested input sample rate 0 is invalid
[16:14:55] decavcodec: hb_audio_resample_update() failed
[SWR @ 0x7fd7a800c260] Requested input sample rate 0 is invalid
[16:14:55] decavcodec: hb_audio_resample_update() failed
[SWR @ 0x7fd7a800c300] Requested input sample rate 0 is invalid
[16:14:55] decavcodec: hb_audio_resample_update() failed
[SWR @ 0x7fd7a800c260] Requested input sample rate 0 is invalid

can anyone else confirm this?
Comment 5 Chris Smith 2019-11-04 21:24:16 UTC
(In reply to Tsukasa from comment #4)
> haven't seen any action on this, so I upgraded to latest ffmpeg-4.2.1
> 
> SWR @ 0x7fd7a800c300] Requested input sample rate 0 is invalid
> [16:14:55] decavcodec: hb_audio_resample_update() failed
> [SWR @ 0x7fd7a800c260] Requested input sample rate 0 is invalid
> [16:14:55] decavcodec: hb_audio_resample_update() failed
> [SWR @ 0x7fd7a800c240] Requested input sample rate 0 is invalid
> [16:14:55] decavcodec: hb_audio_resample_update() failed
> [SWR @ 0x7fd7a800c300] Requested input sample rate 0 is invalid
> [16:14:55] decavcodec: hb_audio_resample_update() failed
> [SWR @ 0x7fd7a800c260] Requested input sample rate 0 is invalid
> [16:14:55] decavcodec: hb_audio_resample_update() failed
> [SWR @ 0x7fd7a800c300] Requested input sample rate 0 is invalid
> [16:14:55] decavcodec: hb_audio_resample_update() failed
> [SWR @ 0x7fd7a800c260] Requested input sample rate 0 is invalid
> 
> can anyone else confirm this?

Indeed. Looks like a newer version of Handbrake is necessary. See the link comment #3 - the update ebuild and patches for Handbrake-9999 work just great. I couldn't get the Gentoo version of Handbrake-9999 to compile at all.
Comment 6 Larry the Git Cow gentoo-dev 2019-11-08 21:58:31 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a8cd5bdcf4af8346c1af8c6e85d19b3959f6b7e9

commit a8cd5bdcf4af8346c1af8c6e85d19b3959f6b7e9
Author:     Ian Whyman <thev00d00@gentoo.org>
AuthorDate: 2019-11-08 21:57:55 +0000
Commit:     Ian Whyman <thev00d00@gentoo.org>
CommitDate: 2019-11-08 21:58:14 +0000

    media-video/handbrake: Tidy old, fix git ebuild
    
    Bug: https://bugs.gentoo.org/698970
    Closes: https://bugs.gentoo.org/625866
    Closes: https://bugs.gentoo.org/698214
    Package-Manager: Portage-2.3.78, Repoman-2.3.17
    Signed-off-by: Ian Whyman <thev00d00@gentoo.org>

 media-video/handbrake/Manifest                     |   3 -
 .../handbrake/files/handbrake-1.1.0-nolibav.patch  | 235 ---------------------
 .../files/handbrake-9999-libdl-link.patch          |  13 ++
 media-video/handbrake/handbrake-1.1.0-r1.ebuild    | 158 --------------
 media-video/handbrake/handbrake-1.1.1.ebuild       | 158 --------------
 media-video/handbrake/handbrake-1.1.2.ebuild       | 158 --------------
 media-video/handbrake/handbrake-9999.ebuild        |  45 ++--
 7 files changed, 41 insertions(+), 729 deletions(-)
Comment 7 Ian Whyman (thev00d00) (RETIRED) gentoo-dev 2019-11-08 22:02:39 UTC
Ive fixed up the git ebuild, so feel free to try it.

It looks like upstream are preparing a 1.3 release, with ffmpeg 4.2.1
Comment 8 Tsukasa 2019-11-08 22:39:40 UTC
just sync'd from git and emerged handbrake-1.2.2-r2.  Still have the error's with ffmpeg-4.2.1 and emerge didn't show it as a blocker or suggest downgrading to 4.1.x

did you want me to test the 9999 version?
Comment 9 Tsukasa 2019-11-13 21:45:06 UTC
>media-video/handbrake/Manifest                     |   3 -
> .../handbrake/files/handbrake-1.1.0-nolibav.patch  | 235 ---------------------
> .../files/handbrake-9999-libdl-link.patch          |  13 ++
> media-video/handbrake/handbrake-1.1.0-r1.ebuild    | 158 --------------
> media-video/handbrake/handbrake-1.1.1.ebuild       | 158 --------------
> media-video/handbrake/handbrake-1.1.2.ebuild       | 158 --------------
> media-video/handbrake/handbrake-9999.ebuild        |  45 ++--
> 7 files changed, 41 insertions(+), 729 deletions(-)

I only see handbrake-1.2.2-r2.ebuild and handbrake-9999.ebuild in the git tree, verified using https://gitweb.gentoo.org/repo/gentoo.git/tree/media-video/handbrake

handbrake 1.3 has been released now, so when the new ebuild hits I will gladly test it out :)
Comment 10 Larry the Git Cow gentoo-dev 2019-11-15 20:50:32 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a9402dcb1e2bbc0f90b3f996780a205820cca7f3

commit a9402dcb1e2bbc0f90b3f996780a205820cca7f3
Author:     Ian Whyman <thev00d00@gentoo.org>
AuthorDate: 2019-11-15 20:50:01 +0000
Commit:     Ian Whyman <thev00d00@gentoo.org>
CommitDate: 2019-11-15 20:50:22 +0000

    media-video/handbrake: 1.3.0 Bump
    
    Closes: https://bugs.gentoo.org/698970
    Closes: https://bugs.gentoo.org/700098
    Package-Manager: Portage-2.3.79, Repoman-2.3.18
    Signed-off-by: Ian Whyman <thev00d00@gentoo.org>

 media-video/handbrake/Manifest               |   1 +
 media-video/handbrake/handbrake-1.3.0.ebuild | 171 +++++++++++++++++++++++++++
 media-video/handbrake/handbrake-9999.ebuild  |   2 +
 3 files changed, 174 insertions(+)