How to hard decode a video stream in mpeg4 format using ffmpeg?

I use jetpack5.1.1 and use opencv to decode the USB camera. It takes 9MS to decode a frame of 1280*720 resolution image, which takes too long. I want to use ffmpeg for hardware accelerated decoding, but after installing ffmpeg, I cannot decode using h264_nvmpi. The image format output by the USB camera is ‘MJPG’ (Motion-JPEG, compressed). How does this require hardware accelerated decoding?

The format is motion JPEG. Please refer to the string and give it a try:
Set camera decoder in OpenCV on Jetson Nano - #8 by DaneLLL

Thank you, this can be used

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.