Skip to content

[Feature Request] Enable VideoToolbox + AVFoundation for min / min_gpl variants on iOS #148

@heyuforia

Description

@heyuforia

Hi @sk3llo, thanks for the v3.0.0 VideoToolbox support added via #65 — that fixed the full / full-gpl variants.

The same fix wasn't extended to min and min_gpl. As of ffmpeg_kit_flutter_new_min 3.1.0 the iOS binary is still compiled with --disable-videotoolbox --disable-avfoundation, so h264_videotoolbox and hevc_videotoolbox aren't available at runtime on iPhone. Confirmed by strings over the published libavcodec binaries across all 8 variants — only full / full-gpl ship VideoToolbox symbols.

Use case: apps that want hardware-accelerated H.264/HEVC encoding on iOS (battery + speed) but need the patent-clean codec surface (min excludes kvazaar, libx264, libx265, libxvidcore). Right now there's no published variant covering that combination — pick patent surface or lose iOS HW encoding.

Suggested fix: same approach as the full v3.0.0 patch — pass --enable-ios-videotoolbox --enable-ios-avfoundation when building the min and min_gpl iOS frameworks. Library tokens are defined in arthenica's scripts/function.sh.

We've already verified this works on a min build at heyuforia/ffmpeg-kit@uforia-min-vt — clean Xcode 26 build, both *_videotoolbox symbols present at runtime, no patent-encumbered codecs added. Happy to PR or test a build if helpful.

Thanks for maintaining the package!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions