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

Compile ffmpeg with hardware acceleration #107

Open
ntegan1 opened this issue Jan 23, 2023 · 0 comments
Open

Compile ffmpeg with hardware acceleration #107

ntegan1 opened this issue Jan 23, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@ntegan1
Copy link

ntegan1 commented Jan 23, 2023

These are the three methods I think have potential to work after some research.

Would allow for on device video manipulation for e.g. ssh in over 64 kilobyte/s prime blue and scale+compress a clip of one of the e or dcams. Helpful for semi-power users who may not know how to write code with v4l2 or libavutil stuff.

Tried using a static ffmpeg build and although it has more configuration/acceleration enabled than the agnos provided build, doesn't seem to help on c3.

v4l2m2m

I've tried using -c:v hevc_v4l2m2m but couldn't get it to work and not quite sure it's meant for general purpose transcoding. I also didn't see any of this qcom-venus driver stuff as in http://ffmpeg.org/pipermail/ffmpeg-user/2020-June/049130.html

Qualcomm ffmpeg libqhevc.c

qualcomm has guides on compiling their hardware hevc support into ffmpeg but the referenced source file is missing. Maybe comma has it behind NDA.
The pdf guides in the link also mention pre-compiled binaries for transcoding that could be used instead of ffmpeg

https://developer.qualcomm.com/forum/qdn-forums/software/hexagon-dsp-sdk/toolsinstallation/68613

vaapi driver?

libva seems to be installed and there seems to be a /dev/dri/renderD128
but doesn't work

OMX?

Can you use omx on tici or was that just for c2?
OMX libraries are included in agnos, but not the headers (libOMXCore.hish) required to compile ffmpeg with omx support on device.

Update with more links?

https://discuss.96boards.org/t/is-it-possible-to-use-the-h264-encoder-without-the-gstreamer-libraries/3587/9
https://patchwork.ffmpeg.org/project/ffmpeg/patch/[email protected]/
https://blog.csdn.net/Ciellee/article/details/92765938
https://blog.csdn.net/cheriyou_/article/details/102395951
https://lwn.net/Articles/697956/
https://gerrithub.io/plugins/gitiles/BlakKatRom/platform_hardware_qcom_media-caf-new/

maybe just replay frames into encoderd

@andiradulescu andiradulescu added the enhancement New feature or request label Sep 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants