Jetson Orin Nano Encoding

Hello, When I watching a video through V4L2, Opencv, or GSTreamer, I wonder if the video is output after passing through the H.264 codec.

Hi,
We don’t have hardware encoder in Orin Nano. If you would like to do encoding, please use software encoder such as x264enc in gstreamer, or use ffmpeg.

Thank you,

So If I use software encoder x264enc in gstreamer, or use ffmpeg the video is output after passing through the H.264 codec or ffmpeg?

Hi,
If you mean you are playing a video file(such as mp4 or mkv), it is hardware decoding in gstreamer. We support hardware decoding in gsteamer and jetson_multimedia_api.

I will watch the video through the camera with Opencv or V4L2 or gstreamer

Hi,
Do you mean camera preview? Camera preview does not pass through H264 codec.

I mean everything from displaying camera previews to capturing and recording.

HI,
If you don’t do recording in the application, it does not pass through H264 codec.

If I use Opencv or V4L2 or GStreamer for capturing, recording and displaying camera previews, does the encoding process not occur?

Hi,
Please share the gstreamer command you are running for reference. If encoder such as x264enc is not linked, it does not pass through H264 codec.

sorry.
I haven’t set up my NVIDIA environment yet.
I am currently contemplating purchasing the Developer Kit, and looking at the spec, Jetson Orin Nano does not include an encoder, so I wanted to check whether encoding is possible when displaying a video preview, capturing, or recording.

Hi,
It should be good for Orin Nano to run single camera preview + recording in 1080p30. For higher resolution or framerate, we would suggest use Orin NX.

In summary,
inJetson Orin Nano Dev.Kit, if I use software encoder such as x264enc in gstreamer, or use ffmpeg go through encode and output camera preview.
Is that right?

Hi,
We would suggest use gstreamer or jetson_multiemdia_api. Please check the documents for more information:
Jetson Linux API Reference: Sample Applications | NVIDIA Docs
Accelerated GStreamer — Jetson Linux Developer Guide documentation

thank you,

Lastly, I want to make sure my understanding is correct.
if I use software encoder such as x264enc in gstreamer, or use ffmpeg it go through encode when I display video preview is that right?

Hi,
It depends on resolution and frame rate. If the resolution is 1080p30, it should be good. If it is 1080p60 or 4K, it shall not achieve the target performance.

thank you,

Looking at what was mentioned above

You said that the camera preview does not pass through H264 codec. Does it not pass even if I use Gstreamer’s x264enc or ffmpeg?

Hi,
Preview + encode is similar to the server command in
Gstreamer TCPserversink 2-3 seconds latency - #5 by DaneLLL

The frames are sent to nveglglessink for camera preview. In this path it does not pass through H264 codec.
In the path the frames are sent to nvv4l2h264enc(need to be replaced with x264enc when using Orin Nano), it passes through H264 codec.

Thank you,
So how about using ffmpeg?
Does the H.264 codec pass through when using ffmpeg?

Hi,
I am not sure how to show camera preview through ffmpeg stack. This would need other users to advise.