Generating splited video files not working with nvv4l2av1enc

Hi, i’m working on a video pipeline on jetson orin AGX and the video files generated are not all playable.
I need to generate an AV1 stream and split it to multiple video files.

Here is a sample pipeline for my usecase:

gst-launch-1.0 videotestsrc ! ‘video/x-raw, width=(int)1920, height=(int)1080, format=(string)NV12, framerate=(fraction)10/1’ ! nvvidconv ! nvv4l2av1enc bitrate=20000 ! splitmuxsink muxer=webmmux location=test%d.webm max-size-time=10000000000 -e

This pipeline produces the same results if i generate mkv instead of webm

Here are the video files generated:


Do you have any hints on how to split av1 streams onto multiple files?

Hi,
Please enable the properties to nvv4l2av1enc for a try:

  1. Enable sequence header:
  insert-seq-hdr      : Insert sequence header at every IDR frame
                        flags: readable, writable, changeable only in NULL or READY state
                        Boolean. Default: false
  1. Set IDR interval to small value(30 or 60):
  idrinterval         : Encoding IDR Frame occurance frequency
                        flags: readable, writable, changeable only in NULL or READY state
                        Unsigned Integer. Range: 0 - 4294967295 Default: 256

I have the same problem using splitmuxsink and nvv4l2av1enc.

Following your advise, I don’t see the insert-seq-hdr property when inspecting nvv4l2av1enc and using it fails the pipeline, instead there is an enable-headers property.

When setting enable-headers=true the pipeline seems to work but it’s not outputting any files.

Not enabling it creates files but only the first one is playable because the headers are missing in subsequently recorded files.

Hi,
Please upgrade to Jetpack 6.1 and check if insert-seq-hdr is present.

Hi, all splitted videos are playabe now, Thank you.
I needed to update from Jetpack 6.0 to Jetpack 6.1 to have the insert-seq-hdr option available on nvv4l2av1enc !

Regards,

Jonathan

1 Like

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