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

hardware filter #114

Closed
wants to merge 14 commits into from
Closed

hardware filter #114

wants to merge 14 commits into from

Conversation

oldma3095
Copy link
Contributor

BuffersrcFilterContext
BuffersrcFilterContext.SetBuffersrcParameters(*parameters)

BuffersrcParameters
AllocBuffersrcParameters()
BuffersrcParameters.HardwareFrameContext()
BuffersrcParameters.SetHardwareFrameContext(*hardwareFrameContext)

@oldma3095
Copy link
Contributor Author

Just test hardware filter with cuda.
Tip: You must decode a frame , than you can get a non-nil hw_frame_ctx from decodeCtx

@oldma3095
Copy link
Contributor Author

20e936ac759bffdb608d882169f56400

@asticode
Copy link
Owner

asticode commented Dec 3, 2024

Thanks a lot for the PR!

Unfortunately, following this comment, I was already working on adding the proper methods to allow using hardware filtering with go-astiav 😱

Could you check out the hardware-filtering branch and let me know whether the new hardware_decoding_filtering works properly? And if new methods work properly with your workflow?

@oldma3095
Copy link
Contributor Author

oldma3095 commented Dec 4, 2024

it can work by hardware-filtering branch.
cuda -> decode h264_cuvid -> encode h264_nvenc
vaapi -> decode h264 -> encode h264_vaapi
i will close this PR.

@oldma3095 oldma3095 closed this Dec 4, 2024
@asticode
Copy link
Owner

asticode commented Dec 4, 2024

Did you also have time to test the hardware_decoding_filtering example?

FYI I've merged the hardware-filtering branch in master 👍

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