I would like to record with gstreamer rtsp from IP camera and Audio from USB Alsa .
I’m able to record both but audio is not syncornized with video.
This is the command for record only video:
gst-launch-1.0 -e rtspsrc location=rtsp://admin:firstname.lastname@example.org/MediaInput/h264 ! queue ! rtpjitterbuffer latency=100 ! rtph264depay ! h264parse ! splitmuxsink muxer=mp4mux location=file%02d.mp4 max-size-time=6000000000
this is for record audio :
gst-launch-1.0 alsasrc device=hw:1,0 ! audio/x-raw,channels=1 ! volume volume=5 ! opusenc audio-type=voice ! .audio_%u splitmuxsink location=qqqqaaa%03d.ogg max-size-time=6000000000 muxer=oggmux
Is there anyone expert that can help me to record both and also syncronized?