当前位置:网站首页>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 ==
边栏推荐
- Hardware 3 -- function of voltage follower
- How to select conductive slip ring
- Can't find real-time chat software? Recommend to you what e-commerce enterprises are using!
- 导电滑环磨损快的原因
- Scm-05 basis of independent keyboard
- ·Practical website·
- Some tips for using source insight (solve the problem of selecting all)
- STM32 learning method
- Some errors in configuring the environment
- solver. Learning notes of prototxt file parameters
猜你喜欢
Shape template matching based on Halcon learning [v] find_ cocoa_ packages_ max_ deformation. Hdev routine
Cadence simulation encountered "input.scs": can not open input file change path problem
Measurement fitting based on Halcon learning [i] fuse Hdev routine
Development tools -- gcc compiler usage
MySQL blind note common functions
A simple method to prove 1/t Fourier transform
Makefile application
Volatile of C language
Summary -st2.0 Hall angle estimation
Altium designer 19.1.18 - hide the fly line of a network
随机推荐
UEFI development learning 3 - create UEFI program
Matlab2018b problem solving when installing embedded coder support package for stmicroelectronic
After installing the new version of keil5 or upgrading the JLINK firmware, you will always be prompted about the firmware update
Communication standard -- communication protocol
C#,数值计算(Numerical Recipes in C#),线性代数方程的求解,LU分解(LU Decomposition)源程序
C, Numerical Recipes in C, solution of linear algebraic equations, LU decomposition source program
Altium Designer 19.1.18 - 导入板框
LED display equipment records of the opening ceremony of the Beijing Winter Olympics
Development tools -- gcc compiler usage
软件设计师:03-数据库系统
Shape template matching based on Halcon learning [v] find_ cocoa_ packages_ max_ deformation. Hdev routine
How to realize audit trail in particle counter software
Gradle复合构建
How to migrate the device data accessed by the RTSP of the easycvr platform to easynvr?
How to select conductive slip ring
The firmware of the connected j-link does not support the following memory access
Programming knowledge -- assembly knowledge
C WinForm [get file path -- traverse folder pictures] - practical exercise 6
1089 insert or merge, including test point 5
Global and Chinese market of resistivity meter 2022-2028: Research Report on technology, participants, trends, market size and share