当前位置:网站首页>Live555 push RTSP audio and video stream summary (I) cross compilation
Live555 push RTSP audio and video stream summary (I) cross compilation
2022-07-05 08:00:00 【Drink more hot water-】
**
One 、 brief introduction
**
Live555 It's a cross platform solution for streaming media C++ Open source project , It implements standard streaming protocols such as RTP/RTCP、RTSP、SIP And so on .Live555 Realize the streaming of audio and video data of various audio and video coding formats 、 Receiving and processing support , Include MPEG、H.263+、DV、JPEG Video and a variety of audio coding . And because of good design ,Live555 It's very easy to extend support for other formats . at present ,Live555 It has been used in the realization of streaming media playing function of many players , Such as VLC(VideoLan)、MPlayer.
Two 、 History version download
http://download.videolan.org/pub/contrib/live555/
I use it live.2018.07.01.tar.gz edition
**
3、 ... and 、 Cross compilation
**
be based on mips platform
1.copy A platform config file
cp config.armlinux config.mips-linux-uclibc-gnu
2. Modify the configuration file
CROSS_COMPILE?= mips-linux-uclibc-gnu-
COMPILE_OPTS = $(INCLUDES) -I. -O2 -fPIC -DSOCKLEN_T=socklen_t -DNO_SSTREAM=1 -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64 -DLOCALE_NOT_USED
C = c
C_COMPILER = $(CROSS_COMPILE)gcc
C_FLAGS = $(COMPILE_OPTS)
CPP = cpp
CPLUSPLUS_COMPILER = $(CROSS_COMPILE)g++
CPLUSPLUS_FLAGS = $(COMPILE_OPTS) -Wall -DBSD=1
OBJ = o
LINK = $(CROSS_COMPILE)g++ -o
LINK_OPTS =
CONSOLE_LINK_OPTS = $(LINK_OPTS)
LIBRARY_LINK = $(CROSS_COMPILE)ar cr
LIBRARY_LINK_OPTS = $(LINK_OPTS)
LIB_SUFFIX = a
LIBS_FOR_CONSOLE_APPLICATION =
LIBS_FOR_GUI_APPLICATION =
EXE =
3. Generate makefile compile
./genMakefiles mips-linux-uclibc-gnu
make
4. Common mistakes
I always meet OpenSSL The error of So helpless I still don't know how to solve it But I had to change the version ==
Then compile over 了
5. Get the static library out
liveMedia The source code of the project includes four basic libraries , Various test codes and IVE555 Media Server.
The four basic libraries are UsageEnvironment&TaskScheduler,groupsock,liveMedia,BasicUsageEnvironment.
Direct execution of scripts
#!/bin/sh
rm -rf live555/
mkdir live555
INSTALL_DIR_LIVE=/home/ky
#create file
cd live555
mkdir lib
mkdir include
cd -
cd live555/include
mkdir liveMedia
mkdir BasicUsageEnvironment
mkdir UsageEnvironment
mkdir groupsock
cd -
#copy include
cp -rf liveMedia/include/*.*h ${INSTALL_DIR_LIVE}/live555/include/liveMedia
cp -rf BasicUsageEnvironment/include/*.*h ${INSTALL_DIR_LIVE}/live555/include/BasicUsageEnvironment
cp -rf UsageEnvironment/include/*.*h ${INSTALL_DIR_LIVE}/live555/include/UsageEnvironment
cp -rf groupsock/include/*.*h ${INSTALL_DIR_LIVE}/live555/include/groupsock
#copy lib
cp -rf liveMedia/libliveMedia.a ${INSTALL_DIR_LIVE}/live555/lib
cp -rf BasicUsageEnvironment/libBasicUsageEnvironment.a ${INSTALL_DIR_LIVE}/live555/lib
cp -rf UsageEnvironment/libUsageEnvironment.a ${INSTALL_DIR_LIVE}/live555/lib
cp -rf groupsock/libgroupsock.a ${INSTALL_DIR_LIVE}/live555/lib
echo "-------------- install library done ------------------"
Finished Next, you can write applications to do whatever you want
before this Read Thor's article ==
边栏推荐
- C WinForm [help interface - send email] - practice five
- C # joint configuration with Halcon
- A simple method to prove 1/t Fourier transform
- UEFI development learning 5 - simple use of protocol
- 软件设计师:03-数据库系统
- C, Numerical Recipes in C, solution of linear algebraic equations, LU decomposition source program
- STM32 learning method
- Fundamentals of C language
- C WinForm [change the position of the form after running] - Practical Exercise 4
- Programming knowledge -- assembly knowledge
猜你喜欢
The firmware of the connected j-link does not support the following memory access
Halcon's practice based on shape template matching [2]
Factors affecting the quality of slip rings in production
Drive LED -- GPIO control
Class of color image processing based on Halcon learning_ ndim_ norm. hdev
Scm-05 basis of independent keyboard
Shape template matching based on Halcon learning [v] find_ cocoa_ packages_ max_ deformation. Hdev routine
Shape template matching based on Halcon learning [viii] PM_ multiple_ models. Hdev routine
Software designer: 03 database system
Measurement fitting based on Halcon learning [III] PM_ measure_ board. Hdev routine
随机推荐
如何将EasyCVR平台RTSP接入的设备数据迁移到EasyNVR中?
C, Numerical Recipes in C, solution of linear algebraic equations, LU decomposition source program
VESC Benjamin test motor parameters
Ads learning record (lna_atf54143)
Shape template matching based on Halcon learning [VII] reuse_ model. Hdev routine
通过sql语句统计特定字段出现次数并排序
The printer encountered an abnormal configuration problem 0x8007007e (win10)
Acwing - the collection of pet elves - (multidimensional 01 Backpack + positive and reverse order + two forms of DP for the answer)
Global and Chinese market for blood typing 2022-2028: Research Report on technology, participants, trends, market size and share
Shape template matching based on Halcon learning [viii] PM_ multiple_ models. Hdev routine
Global and Chinese markets for waste treatment air switches 2022-2028: Research Report on technology, participants, trends, market size and share
Detailed explanation of pragma usage
Hardware 1 -- relationship between gain and magnification
mysql 盲注常见函数
The browser cannot access Baidu
Correlation based template matching based on Halcon learning [II] find_ ncc_ model_ defocused_ precision. hdev
Relationship between line voltage and phase voltage, line current and phase current
Factors affecting the quality of slip rings in production
Reasons for rapid wear of conductive slip rings
Halcon's practice based on shape template matching [2]