Audio stops playback to HDMI after few minutes with nvoverlaysink

Hi,

I am using the below pipeline and is working properly

gst-launch-1.0 -e v4l2src device=/dev/video2 ! queue ! tee name=t1 ! video/x-raw, width=1920, height=1080, framerate=30/1 ! videorate ! video/x-raw, width=1920, height=1080, framerate=30/1 ! nvvidconv ! queue ! nvv4l2h264enc maxperf-enable=1 bitrate=4000000 profile=4 ! queue ! h264parse ! queue ! mux.video_0 audiomixer name=mix1 ! queue ! audioconvert ! voaacenc ! mux.audio_0 alsasrc device=“hw:4,0” ! queue ! audio/x-raw ! queue ! audioresample ! “audio/x-raw,rate=48000” ! tee name=a1 ! queue ! mix1.sink_0 alsasrc device=“hw:4,1” ! queue ! audio/x-raw ! queue ! audioresample ! “audio/x-raw,rate=48000” ! tee name=a2 ! queue ! mix1.sink_1 mp4mux name=mux ! filesink location=feed1mix.mp4 v4l2src device=/dev/video1 io-mode=2 ! tee name=t2 ! queue ! image/jpeg,width=1920,height=1080,framerate=30/1 ! videorate ! image/jpeg,width=1920,height=1080,framerate=30/1 ! nvv4l2decoder mjpeg=1 ! nvvidconv ! queue ! “video/x-raw(memory:NVMM),width=1920,height=1080,format=NV12” ! nvv4l2h264enc maxperf-enable=1 bitrate=4000000 profile=4 ! queue ! h264parse ! queue ! mux2. alsasrc device=“hw:3,0” ! queue ! audio/x-raw ! queue ! audioresample ! “audio/x-raw,rate=48000” ! tee name=a3 ! queue ! voaacenc ! queue ! mp4mux name=mux2 ! filesink location=feed2mix.mp4 videotestsrc pattern=black ! video/x-raw,width=320,height=240 ! nvvidconv ! queue ! comp.sink_0 t1. ! video/x-raw, width=1920, height=1080, framerate=30/1 ! videorate ! video/x-raw, width=1920, height=1080, framerate=30/1 ! queue ! nvvidconv ! queue ! “video/x-raw(memory:NVMM),width=960,height=540,format=NV12” ! queue ! comp.sink_1 t2. ! queue ! image/jpeg,width=1920,height=1080,framerate=30/1 ! videorate ! image/jpeg,width=1920,height=1080,framerate=30/1 ! nvv4l2decoder mjpeg=1 ! nvvidconv ! queue ! “video/x-raw(memory:NVMM),width=960,height=540,format=NV12” ! queue ! comp.sink_2 nvcompositor name=comp sink_0::width=1920 sink_0::height=1080 sink_1::xpos=0 sink_1::ypos=270 sink_1::width=960 sink_1::height=540 sink_2::xpos=960 sink_2::ypos=270 sink_2::width=960 sink_2::height=540 ! tee name=t3 ! queue ! nvvidconv ! queue ! nvv4l2h264enc maxperf-enable=1 bitrate=4000000 profile=4 ! queue ! h264parse ! queue ! mux3. audiomixer name=mixer ! voaacenc ! queue ! mux3. a1. ! queue ! mixer.sink_0 a2. ! queue ! mixer.sink_1 a3. ! queue ! mixer.sink_2 flvmux name=mux3 ! rtmpsink location=“rtmp://localhost/live” t3. ! nvvidconv ! nvoverlaysink audiomixer name=mix ! queue ! audioconvert ! alsasink device=“hw:0,3” a1. ! queue ! mix.sink_0 a2. ! queue ! mix.sink_1 a3. ! queue ! mix.sink_2 t1. ! queue ! video/x-raw, width=1920, height=1080, framerate=30/1 ! videorate ! video/x-raw, width=1920, height=1080, framerate=1/2 ! jpegenc ! multifilesink location=p1.jpg t2. ! queue ! image/jpeg,width=1920,height=1080,framerate=30/1 ! videorate ! image/jpeg,width=1920,height=1080,framerate=1/2 ! multifilesink location=p2.jpg

But after few minutes the audio playeback from the HDMI will fade and disappear.
The audio in rtmp and the file has no issue.
How to solve this error?

Thanks in advanced

Hi,
For debugging, we suggest try the cases:

  1. Can try audio-only pipeline and check if the issue still exists
  2. There are three alsa sources. You can try one by one to check if specific source triggers the issue