<div dir="ltr">Hello,<div><br></div><div>i'm trying to record a RTSP stream to MP4 with the following pipeline :</div><div><br></div><div><div>gst-launch-1.0 -e \</div><div>rtspsrc location="rtsp://..." name=src1 protocols=GST_RTSP_LOWER_TRANS_TCP \</div><div>src1. ! 'application/x-rtp,media=video' ! decodebin ! videoconvert ! \</div><div>x264enc threads=0 bitrate=2000 key-int-max=60 speed-preset=veryfast ! mux.video_0 \</div><div>src1. ! 'application/x-rtp,media=audio' ! decodebin ! audioconvert ! voaacenc ! mux.audio_0 \</div><div>mp4mux name=mux ! filesink location="test.mp4"</div></div><div><br clear="all"><div>But audio and video are not synchronized in the recorded MP4 (audio is about 100ms after video)</div><div><br></div><div>I tried the different parameters "ntp-sync", "ntp-time-source", "rfc7273-sync", but that does not seem to change anything.</div><div><br></div><div>The RTSP stream is sync when reading with VLC.</div><div><br></div><div>Do you have any advice ?</div><div><br>Thank you,</div><div><br></div><div>Benjamin</div>
</div></div>