Precise 1-Second AAC File Splitting on NVIDIA Jetson AGX Orin

• Hardware Platform (Jetson / GPU) : NVIDIA Jetson AGX Orin
• DeepStream Version : 7.1
• JetPack Version (valid for Jetson only) : 6.1
• TensorRT Version : 8.6.2.3
• Issue Type( questions, new requirements, bugs) : question

Hello,

I am trying to create an audio pipeline that precisely splits audio into raw aac 1-second files. Here is my current GStreamer pipeline which I would like to rewrite later to Python DeepStream app:

gst-launch-1.0 -e audiotestsrc wave=4 is-live=true ! queue ! audio/x-raw, format=S16LE, layout=interleaved, rate=44100, channels=2 ! voaacenc ! aacparse ! audio/mpeg, mpegversion=4, stream-format=adts ! multifilesink location=a_temp%06d.aac next-file="max-duration" max-file-duration=1000000000

After examining the generated files, I noticed that they are not exactly 1 second long. Running ffprobe on one of the files shows that the duration is approximately 1.02 seconds instead of precisely 1 second.

ffprobe a_temp000002.aac

ls -al --time-style=full-iso

Issue

Despite setting max-file-duration=1000000000 (1 second), the files exceed this duration.

Question

How can I modify my pipeline to ensure each file is exactly 1.00 seconds long?
Any insights or suggestions would be greatly appreciated!

Since there are no DeepStream-related plugins, we recommend that you go directly to the Gstreamer forum to discuss this issue.

1 Like

Thanks, I have already written the same topic on GStreamer forum. Here is the link for anyone interested: GStreamer forum

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