Skip to content

The --target-web is not working really well with video filters. #9

@gphg

Description

@gphg

Even though it explicitly set -pix_fmt yuv420p, FFmpeg is ignoring it.

Here is why: The -vf (video filter) graph resets the pixel format to match the source right before it hits the encoder. Because scale and fps process the native sRGB colorspace, these pass that sRGB data straight to libvpx-vp9, completely bypassing the -pix_fmt yuv420p flag.

To fix this, it need to force the color conversion inside the video filter chain itself using format=yuv420p as the very last step of -vf argument.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions