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

Add opencl for Hwaccel #291

Open
FalsePhilosopher opened this issue Aug 13, 2024 · 0 comments
Open

Add opencl for Hwaccel #291

FalsePhilosopher opened this issue Aug 13, 2024 · 0 comments

Comments

@FalsePhilosopher
Copy link

I hashed out the workings of getting HWaccel in ffmpeg working with yt-dlp, the args for a mobile device looks like --ppa "ModifyChapters+ffmpeg_i:-hwaccel opencl -hwaccel_output_format opencl" --ppa "ModifyChapters+ffmpeg_o:-c:v hevc_mediacodec"
Most phones since 2015 have TPU's(NPU's) in them that you can run opencl on and use the TPU/GPU in conjunction to speed up encoding when using the --sponsor-block arg. It dramatically cuts encode times off, I encoded a 30 min 720p video with the sponsor block arg in 3 or so minutes at 2% battery usage. So you will need to add the opencl libraries. Since I am requesting features can we use whatever code or clean room what newpipe is using to hit the youtube api for searching and displaying videos? Calling a youtube webapp shell in a window or something so we don't have to switch back and forth between a web browser to seal for getting download links?

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