Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lavf/rkrga: add force_{yuv,chroma} options for vpp filter #15

Closed
wants to merge 1 commit into from

Conversation

nyanmisaka
Copy link
Owner

  • lavf/rkrga: add force_{yuv,chroma} options for vpp filter

They are used to set the output to an uncompact and linear format while maintaining the same chroma sub-sampling with the input. The user does not have to know the input format in advance.

A more user-friendly version of #13. It is impossible for FFmpeg noobs to know nv15 and nv20.
Also since the only use case is for EGL based video players, there is no point to add additional RGB formats.

-vf "scale_rkrga=force_yuv=8bit" // auto cast nv15->nv12, or nv20->nv16
-vf "scale_rkrga=force_yuv=10bit" // auto cast nv15->p010, or nv20->p210
-vf "scale_rkrga=force_yuv=8bit:force_chroma=422sp" // enforce 8bit 422sp format

They are used to set the output to an uncompact and linear format while
maintaining the same chroma sub-sampling with the input. The user does
not have to know the input format in advance.

Signed-off-by: nyanmisaka <nst799610810@gmail.com>
@hbiyik
Copy link

hbiyik commented Jan 23, 2024

Tested and works fine

@nyanmisaka
Copy link
Owner Author

Merged in 4c1997e

@nyanmisaka nyanmisaka closed this Jan 24, 2024
@nyanmisaka nyanmisaka deleted the force-yuv-opts branch January 24, 2024 12:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants