Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

Analysis of FFmpeg rtsp interaction Code

Shulou Source: shulou.com Published: 2022-06-03 04:42:56 10月02日 Update

Ffplayd.exeroomsdpspeak parsegrain line (AVFormatContext * s, SDPParseState * S1, int letter, const char * buf) line 576 C

Line 721 C of AVFormatContext * s, const char * parse

AVFormatContext * s, RTSPMessageHeader * reply) line 622 C

Ffplayd.exeroomffroomrtspaceconnect (AVFormatContext * s) line 1897 C

> ffplayd.exeroomrtspp read read header (AVFormatContext * s) line 726 C

Line 631C (AVFormatContext * * ps, const char * filename, AVInputFormat * fmt, AVDictionary * * input)

Line 2780 C of ffplayd.exeroomreadreadread thread (void * arg)

Ffplayd.exethanks SDLING RunThread (void * data) line 283 C

Ffplayd.exeroomRunThread (void * data) line 91 C

Ffplayd.exekeeper RunThreadViaBeginThreadEx (void * data) line 106 C

[external code]

Ff_rtsp_setup_input_streams creates a rtsp interactive connection

Ff_rtsp_send_cmd gives priority to sending DESCRIBE instructions. The difference between Haikang and Dahua rtsp instructions is that Dahua will request authentication information RTSP/1.0 401 Unauthorized during the OPTIONS phase.

Int ff_sdp_parse (AVFormatContext * s, const char * content) parses the contents of the SDK. In fact, the data format of the code stream and all the stream information are fully known here, and there is no need to detect the stream format at all.

The sdp_parse_rtpmap function analyzes the format of the h364 bitstream and saves it in the stream stream in AVFormatContext.

Tags: Format information instruction Dahua code content function actual actually data fundamental stage Haikang detection authentication analysis Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno macOS Shulou Technology OPPO Reno MySQL Xiaomi