Nvmedia image_encoder step by step guide

Please provide the following info (tick the boxes after creating this topic):
Software Version
DRIVE OS 6.0.8.1
DRIVE OS 6.0.6
DRIVE OS 6.0.5
DRIVE OS 6.0.4 (rev. 1)
DRIVE OS 6.0.4 SDK
other

Target Operating System
Linux
QNX
other

Hardware Platform
DRIVE AGX Orin Developer Kit (940-63710-0010-300)
DRIVE AGX Orin Developer Kit (940-63710-0010-200)
DRIVE AGX Orin Developer Kit (940-63710-0010-100)
DRIVE AGX Orin Developer Kit (940-63710-0010-D00)
DRIVE AGX Orin Developer Kit (940-63710-0010-C00)
DRIVE AGX Orin Developer Kit (not sure its number)
other

SDK Manager Version
1.9.3.10904
other

Host Machine Version
native Ubuntu Linux 20.04 Host installed with SDK Manager
native Ubuntu Linux 20.04 Host installed with DRIVE OS Docker Containers
native Ubuntu Linux 18.04 Host installed with DRIVE OS Docker Containers
other

We are moving our discrete GPU Video encoding implementation to embedded one with nvmedia API on Drive Orin AGX. The sample implementation under “nvmedia_6x/iep/image_encoder.c” combines all possible options in one piece of code but the mental load to decrypt this 3k lines is a bit too much. Is there a very minimalist example where we can create a video encoder and feed raw images from the memory and get the compressed output?
Alternatively, a step by step guide that explains the functions and their usage purpose in the existing sample application would be really helpful.

Thanks for your support!

Unfortunately, we don’t have minimal sample

Thank you for your feedback. We will work on improving the sample documentation in SDK.

The encoder APIs are at https://developer.nvidia.com/docs/drive/drive-os/6.0.10/public/drive-os-linux-sdk/api_reference/group__x__image__encode__api.html. you can check the API usage as a reference in the sample and feed the API params for your case directly with out additional checks for simplicity.
Let us know if you need any understanding of the API or issues with your application.

@SivaRamaKrishnaNV Thanks a lot for your response! If we create a minimal sample in this thread, could we work on it together?

Dear @bcizmeci1,
Yes. Please check creating a sample for your case using the APIs and let us know if you have any issues.