Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 940050 - media-video/handbrake should probably require ffmpeg[zimg]
Summary: media-video/handbrake should probably require ffmpeg[zimg]
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-09-22 16:43 UTC by William Pettersson
Modified: 2024-09-24 01:19 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 William Pettersson 2024-09-22 16:43:46 UTC
The media-video/handbrake ebuild requires media-libs/zimg, but if ffmpeg is not built with the zimg USE flag, the zscale filter is not able to be loaded (since ffmpeg won't know about zimg and hence the zscale filter). The relevant error appears in log files in ~/.config/ghb/EncodeLogs/, the error if ffmpeg is not built with the zimg is 

[AVFilterGraph @ 0x7f33d0056cc0] No such filter: 'zscale'
[AVFilterGraph @ 0x7f33d0056cc0] Error creating filters
[14:06:06] hb_avfilter_graph_init: avfilter_graph_parse2 failed (crop='x=0:y=74:w=720:h=428',zscale='width=720:height=428:filter=lanczos',format='pix_fmts=yuv420p')
[14:06:06] Failure to initialise filter 'AVFilter', disabling

Times and memory addresses may differ, but the result (in my case) is that the video isn't cropped, but is shifted (as if the cropping was done) which is how I noticed the issue initially. Simply recompiling ffmpeg with the zimg USE flag enabled is enough to fix this issue.