WARNING: erroneous pipeline: no element "avenc_aac"

I try to run FILE_IN->FILE_OUT case (Refer DS_AVSync), it shows “WARNING: erroneous pipeline: no element “avenc_aac”” like the below Terminal and there is no result shown. What should I do to run the avsync app?

USE_NEW_NVSTREAMMUX=yes gst-launch-1.0 uridecodebin3 uri=$input1 name=demux1 ! queue ! nvvideoconvert ! "video/x-raw(memory:NVMM)" ! mux1.sink_0 nvstreammux batch-size=2  sync-inputs=1 name=mux1 ! queue ! nvmultistreamtiler width=480 height=360 ! nvvideoconvert ! "video/x-raw(memory:NVMM)" ! nvv4l2h264enc ! h264parse ! queue ! flvmux name=mux streamable=true ! filesink location=out.flv  async=0 qos=0 sync=1 uridecodebin3 uri=$input2 name=demux2 ! queue ! nvvideoconvert ! "video/x-raw(memory:NVMM)" ! mux1.sink_1 demux1. ! queue ! audioconvert ! mixer.sink_0 audiomixer name=mixer ! queue ! avenc_aac ! aacparse ! queue ! mux. demux2. ! queue ! audioconvert ! mixer. fakesrc num-buffers=0 is-live=1 ! mixer. -e

• Hardware Platform (Jetson / GPU) Jetson AGX Xavier
• DeepStream Version 6.3
• JetPack Version (valid for Jetson only) 5.1.2
• TensorRT Version 8.5
• Issue Type (questions, new requirements, bugs) bugs

This is a part of gstreamer-libav. Try installing the following command line

sudo apt-get update
sudo apt-get install -y gstreamer1.0-libav
sudo apt-get install --reinstall -y gstreamer1.0-plugins-good gstreamer1.0-plugins-bad gstreamer1.0-plugins-ugly libavresample-dev libavresample4 libavutil-dev libavutil56 libavcodec-dev libavcodec58 libavformat-dev libavformat58 libavfilter7 libde265-dev libde265-0 libx264-155 libx265-179 libvpx6 libmpeg2encpp-2.1-0 libmpeg2-4 libmpg123-0

Thank you,
I tried but the error still exists

If you run gst-inspect-1.0 -b, can you see avenc_aac in the blacklist?

Try the following command

rm -rf /home/*/.cache/gstreamer-1.0/
rm -rf /root/.cache/gstreamer-1.0/

I only see like the below, I dont see avenc_aac in the blacklist
image

libgstlibav.so t

avenc_aac is implemented in libgstlibav.so.

If you executed my above command correctly.

Then clean cache, it will be normal.

1 Like

I tried again, but I get “Failed to load plugin … cannot allocate memory in static TLS block” error like below, it is root cause. How to fix it?

hungdc@ubuntu:~$ USE_NEW_NVSTREAMMUX=yes gst-launch-1.0 uridecodebin3 uri=$input1 name=demux1 ! queue ! nvvideoconvert ! "video/x-raw(memory:NVMM)" ! mux1.sink_0 nvstreammux batch-size=2  sync-inputs=1 name=mux1 ! queue ! nvmultistreamtiler width=480 height=360 ! nvvideoconvert ! "video/x-raw(memory:NVMM)" ! nvv4l2h264enc ! h264parse ! queue ! flvmux name=mux streamable=true ! filesink location=out.flv  async=0 qos=0 sync=1 uridecodebin3 uri=$input2 name=demux2 ! queue ! nvvideoconvert ! "video/x-raw(memory:NVMM)" ! mux1.sink_1 demux1. ! queue ! audioconvert ! mixer.sink_0 audiomixer name=mixer ! queue ! avenc_aac ! aacparse ! queue ! mux. demux2. ! queue ! audioconvert ! mixer. fakesrc num-buffers=0 is-live=1 ! mixer. -e

(gst-plugin-scanner:7153): GStreamer-WARNING **: 09:12:19.997: Failed to load plugin '/usr/lib/aarch64-linux-gnu/gstreamer-1.0/libgstlibav.so': /lib/aarch64-linux-gnu/libgomp.so.1: cannot allocate memory in static TLS block

(gst-plugin-scanner:7153): GStreamer-WARNING **: 09:12:20.998: Failed to load plugin '/usr/lib/aarch64-linux-gnu/gstreamer-1.0/deepstream/libnvdsgst_nvmultiurisrcbin.so': libjsoncpp.so.1: cannot open shared object file: No such file or directory

(gst-plugin-scanner:7153): GStreamer-WARNING **: 09:12:21.294: Failed to load plugin '/usr/lib/aarch64-linux-gnu/gstreamer-1.0/deepstream/libnvdsgst_inferserver.so': libtritonserver.so: cannot open shared object file: No such file or directory

(gst-plugin-scanner:7153): GStreamer-WARNING **: 09:12:21.333: Failed to load plugin '/usr/lib/aarch64-linux-gnu/gstreamer-1.0/deepstream/libnvdsgst_udp.so': librivermax.so.0: cannot open shared object file: No such file or directory

(gst-plugin-scanner:7153): GStreamer-WARNING **: 09:12:21.687: Failed to load plugin '/usr/lib/aarch64-linux-gnu/gstreamer-1.0/libgstchromaprint.so': /lib/aarch64-linux-gnu/libgomp.so.1: cannot allocate memory in static TLS block
max_fps_dur 8.33333e+06 min_fps_dur 2e+08
WARNING: erroneous pipeline: no element "avenc_aac"

Could you try the the below command ?

export LD_PRELOAD=/usr/lib/aarch64-linux-gnu/libgomp.so.1

It works fine, the "no element “avenc_aac” error can be fixed.
Thank you for your support.

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