Hi,
I am trying to encode a 1080p usb stream with audio and save a rtsp stream encoded in h264 at 1080p while previewing both. I tried the below command with jetson_clocks on but i get the below warning continuously and the encoded stream is heavily distorted.
WARNING: from element /GstPipeline:pipeline0/GstPulseSrc:pulsesrc0: Can’t record audio fast enough
Additional debug info:
gstaudiobasesrc.c(849): gst_audio_base_src_create (): /GstPipeline:pipeline0/GstPulseSrc:pulsesrc0:
Dropped 40572 samples. This is most likely because downstream can’t keep up and is consuming samples too slowly.
Below is the gstreamer command used
'gst-launch-1.0 -e v4l2src device=/dev/video1 ! tee name=t1 t1. ! queue ! video/x-raw, width=1920, height=1080, framerate=30/1 ! nvvidconv ! queue ! nvv4l2h264enc maxperf-enable=1 bitrate=4000000 profile=4 ! queue ! h264parse ! queue ! mux. pulsesrc device=“alsa_input.usb-VXIS_Inc_ezcap_U3_capture-02.analog-stereo” ! queue ! audio/x-raw,width=16,depth=16,rate=44100,channel=1 ! audioconvert ! voaacenc ! aacparse ! mp4mux name=mux ! filesink location=feed1rtsp1080.mp4 t1. ! queue ! video/x-raw, width=1920, height=1080, framerate=30/1 ! nvvidconv ! queue ! “video/x-raw(memory:NVMM),width=503,height=250,framerate=30/1,format=NV12” ! queue ! nvoverlaysink overlay-x=0 overlay-y=50 overlay-w=503 overlay-h=250 overlay=1 rtspsrc location=rtsp://172.16.20.232:554/stream/main ! tee name=t2 t2. ! queue ! rtph264depay ! queue ! h264parse ! mp4mux ! filesink location=feed2rtsp1080.mp4 t2. ! queue ! rtph264depay ! queue ! h264parse ! queue ! nvv4l2decoder ! nvvidconv ! “video/x-raw(memory:NVMM),format=NV12” ! queue ! nvoverlaysink overlay-x=504 overlay-y=50 overlay-w=504 overlay-h=250 overlay=2`
I also tried the below command it works fine without preview of the rtsp stream
gst-launch-1.0 -e v4l2src device=/dev/video1 ! tee name=t1 t1. ! queue ! video/x-raw, width=1920, height=1080, framerate=30/1 ! nvvidconv ! queue ! nvv4l2h264enc maxperf-enable=1 bitrate=4000000 profile=4 ! queue ! h264parse ! queue ! mux. pulsesrc device=“alsa_input.usb-VXIS_Inc_ezcap_U3_capture-02.analog-stereo” ! queue ! audio/x-raw,width=16,depth=16,rate=44100,channel=1 ! audioconvert ! voaacenc ! aacparse ! mp4mux name=mux ! filesink location=/mnt/00708148708144FE/jetson/feed1rtsp1080.mp4 t1. ! queue ! video/x-raw, width=1920, height=1080, framerate=30/1 ! nvvidconv ! queue ! “video/x-raw(memory:NVMM),width=503,height=250,framerate=30/1,format=NV12” ! queue ! nvoverlaysink overlay-x=0 overlay-y=50 overlay-w=503 overlay-h=250 overlay=1 rtspsrc location=rtsp://172.16.20.232:554/stream/main ! tee name=t2 t2. ! queue ! rtph264depay ! queue ! h264parse ! mp4mux ! filesink location=/mnt/00708148708144FE/jetson/feed2rtsp1080.mp4
I need to encode and save the 1080p usb stream with audio and save the rtspstream at 1080p while previewing both
Thank You