Home > OS >  FFmpeg can real-time receiving and forwarding the RTP media flow?
FFmpeg can real-time receiving and forwarding the RTP media flow?

Time:10-23

Recently doing a project about sound recording or video recording, build good server, need to be transferred to FFmpeg media stream to RTP protocol, push through FFmpeg to nginx server to achieve the purpose of the broadcast live, in many cases, Internet is need. SDP file, the file is sending RTP stream to be generated, so how FFmpeg forward real-time RTP stream?
FFmpeg is how to use it. SDP file can receive RTP stream?

CodePudding user response:

Trouble ask the bosses have to solve this problem

CodePudding user response:

SDP describes RTP package packet file, you need to manually add information such as timestamp, and fill out when packing RTP, code implementation is that you call ffmpeg library function interface, packaged SDP headers, and the video data package according to RTP, and then sent to the http://xxxxxx, forwarding is done nginx server,
  • Related