Extending our WebRTC streaming POC with MPEG-TS support

./mpeg-ts-client -a 127.0.0.1 -p 9998 -u https://whip.dev.eyevinn.technology/api/v1/whip/broadcaster
docker run --rm -v $PWD:/mnt eyevinntechnology/toolbox-loopts \
--withtc \
--withaudio \
VINN.mp4 \
udp://host.docker.internal:9998?pkt_size=1316
[2022-04-27 21:06:06.335] Creating pipeline mpegTsAddress 127.0.0.1, mpegTsPort 9998, mpegTsBufferSize 1000000000 ns
[2022-04-27 21:06:06.612] New pipeline clock
[2022-04-27 21:06:07.613] Dynamic pad created, type video/x-h264
[2022-04-27 21:06:07.616] Dynamic pad created, type audio/mpeg
[2022-04-27 21:06:07.722] onNegotiationNeeded
[2022-04-27 21:06:08.020] onOfferCreated
[2022-04-27 21:06:10.448] Server responded with resource https://whip.dev.eyevinn.technology:443/api/v1/whip/broadcaster/9368aeb1-1ba8-42b2-b322-f5dcf02b6e5e
[2022-04-27 21:06:10.448] Setting local SDP
[2022-04-27 21:06:10.448] Setting remote SDP
ffmpeg -i rtsp://<username>:<password>@<ip>/stream1 \
-vcodec copy \
-acodec aac \
-f mpegts \
udp://127.0.0.1:9998?pkt_size=1316
ffmpeg -i srt://127.0.0.1:1234?mode=listener \
-vcodec copy \
-acodec copy \
-f mpegts \
udp://127.0.0.1:9998?pkt_size=1316

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store