Extending our WebRTC streaming POC with MPEG-TS support

MPEG-TS to WHIP

./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

RTSP to WHIP

ffmpeg -i rtsp://<username>:<password>@<ip>/stream1 \
-vcodec copy \
-acodec aac \
-f mpegts \
udp://127.0.0.1:9998?pkt_size=1316

SRT to WHIP

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

Open Source

--

--

--

We are consultants sharing the passion for the technology for a media consumer of the future.

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Alternative Method to pass-thru a USB flash drive to a Hyper-V virtual machine (again, no…

Export data using pandas

Acceptance Test-Driven Development vs Classic TDD

Why Some Senior Developers Ain’t Ready to Lead

Person pulling another along on a beach

The Evolution of pprs system

Chapter 7 Attorney

chapter 7 attorney

DEMONSTRATION ON ANSIBLE INDUSTRIES USE-CASES

Data partitioning: Consistent-Hashing

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
Eyevinn Technology

Eyevinn Technology

We are consultants sharing the passion for the technology for a media consumer of the future.

More from Medium

How we prevented missing SQL indexes

ML System Design — Language Translation

Gossip Protocol in distributed systems

OpenTelemetry