I want my video streaming application to utilize hardware acceleration in android. I'm limited to udp video broadcasting so I can't use Android media player, so I plan to use ffmpeg. Is there a way to make ffmpeg utilize hardware acceleration on android ?
FFmpeg uses Video Codec SDKHardware-accelerated encoding of H. 264 and HEVC* Hardware-accelerated decoding of H. 264, HEVC, VP9, VP8, MPEG2, MPEG4*, and AV1.
Hardware acceleration is enabled by default if your Target API level is >=14, but can also be explicitly enabled. If your application uses only standard views and Drawable s, turning it on globally should not cause any adverse drawing effects.
Go back to Settings, scroll down and you should be able to see a new option called Developer options. Tap on it. Scroll down to the Hardware accelerated rendering and enable the toggle next to Force GPU rendering.
Seems ffmpeg since 0.9 supports it http://freecode.com/projects/ffmpeg/releases/339441
How exactly to use/enable it, I have no idea.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With