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

Can't pass hwaccel flag, cuda overlay filter broken #48

Open
jpietek opened this issue Aug 7, 2020 · 0 comments
Open

Can't pass hwaccel flag, cuda overlay filter broken #48

jpietek opened this issue Aug 7, 2020 · 0 comments

Comments

@jpietek
Copy link

jpietek commented Aug 7, 2020

Hi,

I'm experimenting with beamcoder and cuda. Previously got gpu scaling and nvenc up and running (#43), but no luck so far with overlay_cuda filter. The working ffmpeg overlay cmd (as described in this ffmpeg patch)

ffmpeg -y -hwaccel cuvid -c:v h264_cuvid -i v.ts -i o.png -filter_complex "[1:v]format=yuva420p,hwupload_cuda[overlay],[0:v]scale_npp=format=yuv420p[video],[video][overlay]overlay_cuda" -an -c:v h264_nvenc /data/out.mp4

I haven't found a way to pass the -hwaccel cuvid option to beamcoder, but assumed that hwuploading the nv-decoded frames would work:

[1:v]format=yuva420p,hwupload_cuda[overlay],[0:v]hwupload_cuda,scale_npp=format=yuv420p[video]

Unfortunately this breaks the alpha blending of the overlay, which is perfectly fine with the global hwaccel flag. No luck with format=yuv420p,hwupload_cuda too. I would be super grateful for any hints on how to get it done with beamcoder.

thanks in advance,
Janek

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

No branches or pull requests

1 participant