当前位置:网站首页>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 ==
边栏推荐
- Measurement fitting based on Halcon learning [II] meaure_ pin. Hdev routine
- High end electronic chips help upgrade traditional oil particle monitoring
- C language # and #
- Cadence simulation encountered "input.scs": can not open input file change path problem
- Scm-05 basis of independent keyboard
- Global and Chinese markets of large aperture scintillators 2022-2028: Research Report on technology, participants, trends, market size and share
- Define in and define out
- Altium Designer 19.1.18 - 隐藏某一个网络的飞线
- Drive LED -- GPIO control
- C WinForm [realize the previous and next selection pictures] - practice 7
猜你喜欢
软件设计师:03-数据库系统
The firmware of the connected j-link does not support the following memory access
Screen record of the opening ceremony of the Beijing winter olympics 2
研究發現,跨境電商客服系統都有這五點功能!
Realization of binary relation of discrete mathematics with C language and its properties
Makefile application
Carrier period, electrical speed, carrier period variation
Factors affecting the quality of slip rings in production
Use of orbbec Astra depth camera of OBI Zhongguang in ROS melody
Halcon's practice based on shape template matching [1]
随机推荐
Global and Chinese markets of nano biosensors 2022-2028: Research Report on technology, participants, trends, market size and share
[professional literacy] specific direction of analog integrated circuits
Record the torch encountered by win10 cuda. is_ False problem in available()
Shape template matching based on Halcon learning [viii] PM_ multiple_ models. Hdev routine
Extern keyword function
TCP and UDP
How to migrate the device data accessed by the RTSP of the easycvr platform to easynvr?
[untitled] record the visual shock of the Winter Olympics and the introduction of the display screen
The browser cannot access Baidu
Network communication model -- Network OSI tcp/ip layering
Realization of binary relation of discrete mathematics with C language and its properties
C WinForm [view status bar -- statusstrip] - Practice 2
Makefile application
The global and Chinese market of lithographic labels 2022-2028: Research Report on technology, participants, trends, market size and share
Significance and requirements of semiconductor particle control
Shell script basic syntax
Global and Chinese market of rammers 2022-2028: Research Report on technology, participants, trends, market size and share
Some tips for using source insight (solve the problem of selecting all)
Global and Chinese market of core pallets 2022-2028: Research Report on technology, participants, trends, market size and share
Communication standard -- communication protocol