Hello,
Thank you for the awesome mediasoup library. I have been playing around with it the last couple of weeks and really appreciate the amount of documentation and examples.
I was wondering if anyone has created an RTP transport using the mediasoup library and forwarded that stream to a 3rd party service such as AWS Elemental Media live for one-to-many streaming.
Found this example: https://d1.awsstatic.com/awselemental/workflowexamples/Workflow3_Example_FFMPEG_RTP_to_MediaLive_and_MediaPackage.pdf and wanted to see if this were possible using mediasoup.
AWS Elemental MediaLive supports RTP (MPEG TS) ingest with H.264 and AAC codecs and that example shows this code for how to use FFMPEG to transcode a video/audio file for publishing in AWS Elemental Media Live:
ffmpeg -re -i <source_file> -c copy -map 0 -f rtp_mpegts -fec prompeg=l=5:d=20
rtp://<IP>:5000
Would it be possible to forward mediasoupās RTP transport to this service and transcode via FFMPEG on the fly?
I tried using the H.264 video codec and transcoding to AAC (because mediasoupās audio codec is OPUS), and the RTP stream I created had choppy video.
These were my FFMPEG args:
const commandArgs = [
"-protocol_whitelist",
"pipe,udp,rtp",
"-fflags",
"+genpts",
"-f",
"sdp",
"-re",
"-i",
"pipe:0",
"-vcodec",
"copy",
"acodec",
"aac",
"-f",
"rtp_mpegts",
"-fec",
"prompeg=l=5:d=20",
"rtp://127.0.0.1:5000"
];
I realize my post is not tied to support for the mediasoup library, my apologies if it does not belong here, but I wasnāt sure where else to post it and was curious if anyone else has tried this workflow. Thanks.