abhiTronix / deffcode

A cross-platform High-performance FFmpeg based Real-time Video Frames Decoder in Pure Python 🎞️⚡
https://abhitronix.github.io/deffcode
Apache License 2.0
178 stars 3 forks source link

How to use hw accelerator from embedded systems? #45

Closed johnnynunez closed 4 months ago

johnnynunez commented 4 months ago

Issue guidelines

Issue Checklist

Describe your Question

I'm moving to use this library. Jetson AGX Orin, to use this hardware is with: https://docs.nvidia.com/jetson/archives/r36.2/DeveloperGuide/SD/Multimedia/AcceleratedDecodeWithFfmpg.html or https://docs.nvidia.com/jetson/archives/r36.2/DeveloperGuide/SD/Multimedia/AcceleratedGstreamer.html or https://docs.nvidia.com/jetson/archives/r36.2/DeveloperGuide/SD/HardwareAccelerationInTheWebrtcFramework.html

V..... h264_nvmpi h264 (nvmpi) (codec h264) V..... h264_nvv4l2dec h264 (nvv4l2dec) (codec h264) V..... hevc_nvmpi hevc (nvmpi) (codec hevc) V..... hevc_nvv4l2dec hevc (nvv4l2dec) (codec hevc) V..... mpeg2_nvmpi mpeg2 (nvmpi) (codec mpeg2video) V..... mpeg2_nvv4l2dec mpeg2 (nvv4l2dec) (codec mpeg2video) V..... mpeg4_nvmpi mpeg4 (nvmpi) (codec mpeg4) V..... mpeg4_nvv4l2dec mpeg4 (nvv4l2dec) (codec mpeg4) V..... vp8_nvmpi vp8 (nvmpi) (codec vp8) V..... vp8_nvv4l2dec vp8 (nvv4l2dec) (codec vp8) V..... vp9_nvmpi vp9 (nvmpi) (codec vp9) V..... vp9_nvv4l2dec vp9 (nvv4l2dec) (codec vp9)

V..... h264_nvmpi nvmpi H.264 encoder wrapper (codec h264) V..... hevc_nvmpi nvmpi HEVC encoder wrapper (codec hevc)

Terminal log output(Optional)

No response

Python Code(Optional)

No response

DeFFcode Version

0.2.5

Python version

3.11

Operating System version

Ubuntu 22.04

Any other Relevant Information?

Open issue: https://forums.developer.nvidia.com/t/is-there-any-example-how-to-use-nvenc-nvdec-in-python/291182

johnnynunez commented 4 months ago

finally I've compiled the ffmpeg with jetson decoders and it is working