Reading an RTSP stream and remuxing to FLV with FFmpeg in C++
The program below opens an RTSP source, probes its streams, and remuxes packets direct to an FLV file without decoding. Timestamps are rescaled to the destination time base and packets are interleaved before writing. Initialize FFmpeg networking and open the input with RTSP options (e.g., TCP transp...