Hardware Encoding with Gstreamer and OS08A10

Which version of system do you use? Khadas official images, self built images, or others?

Ubuntu 22.04.3 LTS
Linux Khadas 5.4.180

Please describe your issue below:

How can I use Gstreamer to perform hardware encoding with the OS08A10 MIPI camera, taking into account that the video node that recognizes me is /dev/media0 and the vieo61,62,63,64,65,66,67 I am using the NewVIM4. I follow the steps in the khadas documentation, but I want to use hardware encoding with gstreamer and I haven’t found a solution, I try all the video and media nodes that it recognizes and it doesn’t work for me. It also tells me that the ‘video0’ does not recognize me

Post a console log of your issue below:



Screenshot from 2023-08-28 13-41-46
unnamed

@3l3k10 Have you enabled the camera node ?

https://docs.khadas.com/products/sbc/vim4/add-ons/new-vim4-mipi-camera

Yes, I have the camera enabled, in fact when I try to try the following command to see what was recorded, I get an error.

The error:

However, I am using the following command to get .mp4 output and it works: ffmpeg -f rawvideo -pixel_format nv21 -video_size 3840x2160 -i /tmp/dst_mif_0.yuv -c:v libx264 -preset ultrafast -qp 0 output.mp4 .

My question is if gstreamer can be used with the OS08A10 camera, since I need video captures for 5 minutes, stop and another 5 minutes, so on. But as I showed earlier the OS08a10 camera handles is node /dev/media0 and the VIM4 documentation for hardware encoding handles is /dev/video0

Please preview the image on your host PC.