How to add audio to stream using .m3u h264/aac rtspsrc #971
-
Hi, I have used the following command for streaming.. gst-launch-1.0 -v rtspsrc location="rtsp://192.168.68.114:5554/playlist.m3u" short-header=TRUE ! rtph264depay ! h264parse ! kvssink access-key= secret-key= stream-name="ExampleStream" storage-size=512 And my streaming is successfully displayed on the AWS kinesis-video-streams but i want to listen my audio too. but noting work for me, For audio purpose i have used this command gst-launch-1.0 -v rtspsrc location="rtsp://192.168.68.114:5554/playlist.m3u" short-header=TRUE ! rtph264depay ! h264parse ! kvssink access-key= secret-key= stream-name="ExampleStream" storage-size=512 alsasrc device=hw:1,0 ! audioconvert ! avenc_aac ! queue ! sink. can enyone help so i can stream my audio and video. |
Beta Was this translation helpful? Give feedback.
Replies: 7 comments 5 replies
-
If you're receiving audio and video from RTSP you will need to split the pipeline and have depayer for h264 as well as for the audio (for example: https://gstreamer.freedesktop.org/documentation/rtp/rtpac3depay.html?gi-language=c), then you need to mux these together to a single stream and then send to kvssink. Here's and example from someone else who tried to do this, if you follow this it should work for you! If it does not please re-open: #687 (comment) |
Beta Was this translation helpful? Give feedback.
-
Hi, i have check all the solution but nothing worked for me, Live RTSP link: rtsp://192.168.68.114:5554/playlist.m3u Working without audiogst-launch-1.0 -v rtspsrc location="rtsp://192.168.68.114:5554/playlist.m3u" short-header=TRUE ! rtph264depay ! h264parse ! kvssink access-key="access-key" secret-key="secret-key" stream-name="ExampleStream" storage-size=512 ----- For audio purose used commands: First command for audio # not workinggst-launch-1.0 rtspsrc name=src location="rtsp://192.168.68.114:5554/playlist.m3u" short-header=true ! rtph264depay ! h264parse ! kvssink name=sink access-key="access-key" secret-key="secret-key" stream-name="ExampleStream" storage-size=1024 aws-region="us-east-2" frame-timecodes=false src. ! rtppcmadepay ! alawdec ! audioresample ! audioconvert ! voaacenc ! aacparse ! queue ! sink. Second command for audio # not workinggst-launch-1.0 rtspsrc name=src location="rtsp://192.168.68.114:5554/playlist.m3u" short-header=true ! rtph264depay ! h264parse ! kvssink name=sink access-key="access-key" secret-key="secret-key" stream-name="ExampleStream" storage-size=1024 aws-region="us-east-2" frame-timecodes=false src. ! rtpmpadepay ! mpg123audiodec ! audioresample ! audioconvert ! voaacenc ! aacparse ! queue ! sink. third command for audio # not workinggst-launch-1.0 rtspsrc name=src location="rtsp://192.168.68.114:5554/playlist.m3u" short-header=true ! rtph264depay ! h264parse ! kvssink name=sink access-key="access-key" secret-key="secret-key" stream-name="ExampleStream" storage-size=1024 aws-region="us-east-2" frame-timecodes=false src. ! rtpaacdepay ! queue ! sink. Can you please re-open this issue! Thanks |
Beta Was this translation helpful? Give feedback.
-
Hi, Video: Audio: I have using these configuration for my rtsp but my audio is not coming on aws kinesis-video-stream. I don't know much about gst-launch-1.0 library, can you please share with me complete command. Thanks |
Beta Was this translation helpful? Give feedback.
-
Having the same issue here. Did anyone solve it? |
Beta Was this translation helpful? Give feedback.
-
Hello, this is a pure gstreamer issue unrelated to the internals of kvssink. Your pads aren't connecting between your rtspsrc and rtpPCMAdepay elements. Please add a
Something like that should work. |
Beta Was this translation helpful? Give feedback.
-
OR your audio codec isn't compatible with rtppcmadepay and you need to select a different depayer. |
Beta Was this translation helpful? Give feedback.
-
If you're using
|
Beta Was this translation helpful? Give feedback.
Hello, this is a pure gstreamer issue unrelated to the internals of kvssink. Your pads aren't connecting between your rtspsrc and rtpPCMAdepay elements.
Please add a
queue
element between your src and rtpXXXXdepay(s) when doing a tee like this.gst-launch-1.0 rtspsrc name=src location="rtsp://192.168.68.114:5554/playlist.m3u" short-header=true ! queue ! rtph264depay ! h264parse ! kvssink name=sink access-key="access-key" secret-key="secret-key" stream-name="ExampleStream" storage-size=1024 aws-region="us-east-2" frame-timecodes=false src. ! queue ! rtppcmadepay ! alawdec ! audioresample ! audioconvert ! voaacenc ! aacparse ! queue ! sink.
Something like that should work.
Very similar to t…