Live555server environment construction

Detailed explanation of live555 environment construction (ubuntu18.04)

1. Environmental dependence

openssl optional insecurity

Install (choose a good version)

sudo apt-get update
sudo apt-get install openssl
sudo apt-get install libssl-dev

Remember to link when compiling and testing using header files (the order cannot be reversed)

gcc -o my_program my_code.c -lssl -lcrypto

anxiety

COMPILE_OPTS =		$(INCLUDES) -I/usr/local/include -I. -O2 -DSOCKLEN_T=socklen_t -DNO_SSTREAM=1 -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64 
此处加入
    -DNO_OPENSSL=1

live555 (2023.07.24.) source code compilation and installation


./genMakefiles linux
 
 make

./genMakefiles linux A compilation error may be reported here

Here modify /live/BasicUsageEnvironment/BasicTaskScheduler.cpp (around line 190) in this file after decompressing it.

if (fTriggersAwaitingHandling[i].test()) {
    
    
//将上面这行改为
     if (fTriggersAwaitingHandling[i].test_and_set()) {
    
    

This will allow you to continue compiling

image-20230821172308362

use

image-20230821172917234

There are some test programs under these two folders. Enter one of them and download a test format video online in advance. It is easy to find. There are also test cases on the official website ( Index of /liveMedia/public (live555.com) )

[External link image transfer failed. The source site may have an anti-leeching mechanism. It is recommended to save the image and upload it directly (img-cwW47QNa-1692611444296) (C:\Users\Feng Youkai\AppData\Roaming\Typora\typora-user-images\ image-20230821173406620.png)]

start up

image-20230821173651391

Use FFmpeg to receive the rtsp video stream of the live555 server and play it (VLC can also receive it, just turn off the firewall, enter the link directly, and you can receive this rtsp stream on the same network segment and Wifi)

ffmpeg -i rtsp://198.19.6.106:8554/test.265  -an -f sdl "RTSP Stream"
//FFmpeg详细使用请看文末链接或 https://blog.csdn.net/qq_45865950/article/details/132412261?spm=1001.2014.3001.5501

image-20230821174132354

VLC reception (https://www.videolan.org/vlc/official website download)

image-20230907114907792

image-20230907115105190

image-20230907115031298

For the installation and use of FFmpeg, please see my other blog: FFmpeg installation_longfyk's blog-CSDN blog

Supongo que te gusta

Origin blog.csdn.net/qq_45865950/article/details/132413716
Recomendado
Clasificación