Skip to content

libhb: move filters out of decavcodec.c#7658

Draft
galad87 wants to merge 1 commit into
HandBrake:masterfrom
galad87:filters
Draft

libhb: move filters out of decavcodec.c#7658
galad87 wants to merge 1 commit into
HandBrake:masterfrom
galad87:filters

Conversation

@galad87

@galad87 galad87 commented Feb 19, 2026

Copy link
Copy Markdown
Contributor

Moves the filters used to handle the video changing format/size/rotation/range mid stream outside of decavcodec.c, to a filter chain inside the main filter chain.

It's cleaner, we won't have to maintain two different sets of filters, and it will make it possible in the future to avoid running the same filter twice when the source is not interlaced, and to run hardware filters in additional places.

@antonkesy could you check why VPP is failing with an "Error running VPP: undefined behavior (-16) when I run:

./HandBrakeCLI.exe -I size-changes.mp4 --preset "Hardware/H.265 QSV 1080p" --enable-hw-decoding qsv -o output.mp4

with this cursed file https://www.swisstransfer.com/d/02460563-65a5-4667-9599-9c28249ac580

VPP has been flaky even before this PR, so it would be nice if you could take a look.

Tested on:

  • Windows 10+ (via MinGW)
  • macOS 10.13+
  • Ubuntu Linux

@galad87 galad87 added this to the 1.12.0 milestone Feb 19, 2026
@antonkesy

Copy link
Copy Markdown
Contributor

@galad87 I'm sorry to inform you, that I parted ways with Intel and don't have the resources currently to contribute :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

3 participants