No audio info stored in file from live RSTP stream

dust pmdoshi at yahoo.com
Fri Apr 30 20:47:35 UTC 2021


Hello 
I am trying to store incoming live RTSP stream that contains audio & video
on to split mp4 files to disk. 

The following pipeline works but unfortunately loses the audio part of the
stream:

gst-launch-1.0 rtspsrc location=rtsp://a.b.c.d:pp/videoMain user-id=xxx
user-pw=yyy ! queue ! rtph264depay ! h264parse ! splitmuxsink
location=/tmp/segment/segment%05d.mp4 max-size-time=100000000000
muxer=mp4mux name=mux

Tried several other pipelines but none with success. Here is an pipeline I
used:

gst-launch-1.0 rtspsrc location=rtsp://a.b.c.d:pp/videoMain user-id=xxx
user-pw=yyy name=src src. ! application/x-rtp,payload=96 ! queue !
rtph264depay ! h264parse src. ! application/x-rtp,payload=0 ! queue !
rtpmp4adepay ! aacparse ! splitmuxsink location=/tmp/segment/segment%05d.mp4
max-size-time=100000000000 muxer=mp4mux name=mux
WARNING: erroneous pipeline: could not link aacparse0 to mux

Used several different audio parsers but none of them work with error
between "rtpmp4adepay" and any other audio parser or between the audio
parser and "splitsinkmux". 

Obviously, I am missing something. Please provide suggestions.

Thank you!






--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/


More information about the gstreamer-devel mailing list