[FFmpeg-devel] How to implement pcap ffmpeg format?

Rémi Denis-Courmont remi at remlab.net
Wed Feb 22 14:53:55 EET 2023


I agree with Kieran that this doesn't look like it belongs in FFmpeg or in any media framework. In fact, Wireshark has some support for extracting media from RTP, and that seems like the right place for it.

With that said, you can't realistically pass RTP packets on the standard input. RTP is datagram-based. Packet boundaries are relevant; it can't go over a pipe. Unless you use a Unix datagram socket as standard input, but that would be very weird.

Besides, there may be multiple streams on different ports, with different payload maps, and the receiver needs to know which port which packet came on.

Note: Unfortunately, earlier attempts to standardise a container for RTP/RTCP packets have failed.

More information about the ffmpeg-devel mailing list