Cannot record SVO in Nvidia AGX, Jetson 4.6

I tried the recording example but it fails.
I saw this github that it will support 4.6 soon, is there ant update? Thx

/media/nvidia/SSD_HD/ZED/svo_recording/recording/python$ python3 svo_recording.py test.svo
Failed to query video capabilities: Inappropriate ioctl for device
libv4l2: error getting capabilities: Inappropriate ioctl for device
Error in VIDIOC_REQBUFS at output planeError in VIDIOC_REQBUFS at output plane[ZED][Encoding] Critical Error : No Video Enc
Segmentation fault (core dumped)

Or is there any other example for recording?
I also tried this code from SDK but it fails too. Thx

import pyzed.sl as sl
import sys
# Create a ZED camera object
zed = sl.Camera()

# Enable recording with the filename specified in argument
output_path = sys.argv[1]
print("output_path = ",output_path)
err = zed.enable_recording(output_path, sl.SVO_COMPRESSION_MODE.H264)

while not exit_app:
    # Each new frame is added to the SVO file
    zed.grab()

# Disable recording
zed.disable_recording()

python3 record_test.py test.svo
output_path =  test.svo
Traceback (most recent call last):
  File "record_test.py", line 10, in <module>
    err = zed.enable_recording(sl.SVO_COMPRESSION_MODE.H264)
TypeError: Argument 'record' has incorrect type (expected pyzed.sl.RecordingParameters, got SVO_COMPRESSION_MODE)

Here is my Jetson jetson
sudo apt-cache show nvidia-jetpack
Package: nvidia-jetpack
Version: 4.6-b199

Hello and thank you for reaching out to us,

The last error is pretty self explaining :

TypeError: Argument 'record' has incorrect type (expected pyzed.sl.RecordingParameters, got SVO_COMPRESSION_MODE)

You probably have an error in your code.
That may be becuase you use an old version of the SDK. Make sure you use 3.8.2.

We do support Jetpack 4.6, and also 4.6.1 (l4t32.7) and 5.0.2.

Regards,
Antoine

Hi,

yes, after reintall the SDK, it works. Thx
But in the playback, the display has lots of grain. (bad quality)
I am still looking at the python code…
Thx

Hi,

ok now, I have changed these two lines and the video quality is the same as live view.
Thx

    init.camera_resolution = sl.RESOLUTION.HD1080
...
    recording_param = sl.RecordingParameters(path_output, sl.SVO_COMPRESSION_MODE.LOSSLESS)