I am trying to perform RTSP to HLS conversion using GStreamer for that purposes I created a pipeline that works fine with the video channel, but the audio seems to be lost. Is there a way to include the audio channel to the HLS playlist?
gst-launch-1.0 rtspsrc location=rtsp://192.168.112.86:8554/test ! rtph264depay ! h264parse ! mpegtsmux ! hlssink max-files=5 playlist-location=/hlssink/playlist.m3u8 location=/hlssink/segment%05d.ts target-duration=10
You have to make another connection between your rtsp source and the muxer. For AAC audio for example:
gst-launch-1.0 rtspsrc name=myrtsp location=rtsp://192.168.112.86:8554/test ! queue ! rtph264depay ! h264parse ! mpegtsmux name=mymux ! hlssink max-files=5 playlist-location=/hlssink/playlist.m3u8 location=/hlssink/segment%05d.ts target-duration=10 myrtsp. ! queue ! rtpmp4adepay ! aacparse ! mymux.