News for hackers. Stuff that matters.
Re:How to stream media using WebRTC and FFmpeg, and why it's... by j1elo on Saturday January 30, 2021 @09:33PM (#25975203)
Note that this post doesn't really cover how to stream media using WebRTC. First and foremost, because WebRTC mandates the use of DTLS to encrypt the RTP flow, thus a plain RTP stream won't work. A more apt title would be "How to use FFmpeg to generate an encoded stream that happens to match the requirements for WebRTC".

Still, thanks for the article; it is always interesting to see specific applications of the FFmpeg command line, because in my opinion after having read them top to bottom, FFmpeg docs are very lacking in the department of explaining the whys.

Random example: You read the docs of genpts and it is something on the line of "Enables generation of PTS timestamps". Well, thank you (/s) But really, when should I use it? What does it actually change between using it or not? What scenarios would benefit from using it? Etc. Etc.

Re:How to stream media using WebRTC and FFmpeg, and why it's... by Orphis on Sunday January 31, 2021 @12:10AM (#25976189)
Technically, it's SRTP with keys derived from the handshake of a DTLS connection though. That DTLS connection can be used for SCTP, the underlying protocol for WebRTC data channels.

So yeah, that won't work to stream to a WebRTC endpoint as you said!

Re:How to stream media using WebRTC and FFmpeg, and why it's... by at_a_remove on Saturday January 30, 2021 @10:55PM (#25975740)
This is one of my pet peeves with documentation. "When to" and "when not to" are essentially the wisdom to match the intelligence of a how-to.
Re:How to stream media using WebRTC and FFmpeg, and why it's... by mpfundstein on Sunday January 31, 2021 @08:06AM (#25978517)
a lot of open source media docs are like this. one of the worst offenders is gstreamer. geez is that stuff uninformative.

but at least its awesome software for free so who am I to complain?