当前位置:网站首页>Record the installation and configuration of gestermer on TX2, and then use GST RTSP server
Record the installation and configuration of gestermer on TX2, and then use GST RTSP server
2022-04-23 06:30:00 【ZhangLH66】
notes : First of all, the construction process uses a piece made by the teacher himself tx2, The kernel has also been compiled , So I'm not sure if it can be applied to other places , In addition, because the kernel of this board has been compiled , Many unknown errors occurred during installation and use , It is possible that the recorded installation and configuration process will be omitted , If an error is reported somewhere at this time , Suggest Baidu check whether it can solve ;
First, enter... In the development board
gst-launch-1.0 --version
You can view the built-in of the current development board gst-launch and GStreamer Version of , Generally, the versions of various accessories installed should be less than or equal to the current version
Notice if it is 0.1 Version and 1.0 There are differences in the use of commands , Therefore, it is recommended to upgrade to 1.0 Version of
After checking the current version , I first installed the dependency libraries that I normally need , enter ( Here, because I referred to many posts in the early stage , I can't find the specific , Casually copied and pasted a copy , If there is any mistake or omission, please modify it in the line )
sudo apt-get install build-essential dpkg-dev flex bison autotools-dev automake liborc-dev autopoint libtool gtk-doc-tools
sudo apt-get install libxv-dev libasound2-dev libtheora-dev libogg-dev libvorbis-dev
sudo apt-get install libbz2-dev libv4l-dev libvpx-dev libjack-jackd2-dev libsoup2.4-dev libpulse-dev
sudo apt-get install faad libfaad-dev libfaac-dev
sudo apt-get install libx264-dev libmad0-dev
sudo apt-get install yasm
sudo apt-get install libssl-dev
Then on this website https://gstreamer.freedesktop.org/src/ Download the supporting accessories in , My version is
gst-launch-1.0 version 1.8.1
GStreamer 1.8.3
So I downloaded , You can refer to
gst-libav-1.80
gst-plugins-0.8.12
gst-plugins-bad-1.8.3
gst-plugins-good-1.8.3
gst-plugins-base-1.8.3
gst-plugins-ugly-1.8.3
orc-0.4.23
gst-rtsp-server-1.8.1
Then unzip each attachment , Use
sudo ./configure
sudo ./autogen.sh
sudo make
suao make install
Statement to install , The installation sequence is generally from base–good–bad—ugly —lbav
If something goes wrong , There must be dependent accessories that are not installed
such as
sudo apt-get install gtk-doc-tools
If installing gst-rtsp-server-1.8.1 when , Special attention , In the use of
sudo ./configure
sudo ./autogen.sh
Observe whether there are statements like this output
configure: No package ‘gstreamer-plugins-base-1.0’ found configure:
error: no gstreamer-plugins-base-1.0 >= 1.8.0 (GStreamer Base Plugins)
found configure failed
You can try using the following statement to solve
sudo apt-get install libgstreamer-plugins-base1.0-dev libgstreamer-plugins-good1.0-dev libgstreamer-plugins-bad1.0-dev
Then reinstall good-bad Installation , On the way to gst-rtsp-server Run in the file
sudo ./configure
sudo ./autogen.sh
If you have the above tips , You can try
sudo apt-get install gstreamer-plugins-base-1.0
sudo apt-get install gstreamer-plugins-bad-1.0
sudo apt-get install gstreamer-plugins-good-1.0
sudo apt-get install gstreamer-plugins-ugly-1.0
Wait and see if it works
If all the above are installed , No problem
test udp Transmit to local for receiving display input
The sender
gst-launch-1.0 videotestsrc ! video/x-raw,format=I420 ! omxh264enc ! video/x-h264,stream-format=byte-stream ! rtph264pay mtu=1400 ! udpsink host=127.0.0.1 port=5000
The receiver
gst-launch-1.0 udpsrc port=5000 ! 'application/x-rtp,encoding-name=(string)H264' ! rtph264depay ! h264parse ! omxh264dec ! nvoverlaysink sync=false async=false
test rtsp Transmit to local for receiving display input
The sender
./test-launch "(videotestsrc ! video/x-raw,format=I420,framerate= 25/1 ! x264enc ! video/x-h264,stream-format=byte-stream ! rtph264pay name=pay0 pt=96)"
The receiver
gst-launch-1.0 rtspsrc location=rtsp://127.0.01:8554/test ! rtph264depay ! h264parse ! omxh264dec ! nvoverlaysink sync=false async=false
When inputting the codes of the transmitter and receiver , Or find a teacher to help solve , Because there is no number for the process of board encoding and decoding , Checking other people's codec process can't help you receive correctly
Enter... In the development board
gst-inspect-1.0 rtph264
You can view some help documents
In addition, in the whole implementation process , If you can't write a program , You can also use wireshark The network debugging assistant monitors whether there is data transmission .
It can also be used. vlc Check whether the correct encoded image is transmitted , Baa, when there is correct transmission , stay vlc Of codec It will appear strange mp3 Format
版权声明
本文为[ZhangLH66]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204210614498103.html
边栏推荐
- Protected (members modified by protected are visible to this package and its subclasses)
- [leetcode 383] ransom letter
- [untitled] database - limit the number of returned rows
- 自動控制(韓敏版)
- 基于pygame库编写的五子棋游戏
- Failure to deliver XID in Seata distributed transaction project
- Best practices for MySQL storage time
- Pytorch notes - complete code for linear regression & manual or automatic calculation of gradient code comparison
- Custom exception class
- Detection technology and principle
猜你喜欢
SQL -- data filtering and grouping
Generation of verification code
How to use comparative learning to do unsupervised - [cvpr22] training & [eccv20] image translation
几行代码教你爬取LOL皮肤图片
Linear algebra Chapter 1 - determinant
C language file operation
JDBC connection database
Addition, deletion, modification and query of MySQL table
Framework analysis 1 Introduction to system architecture
RPC must know and know
随机推荐
Fact final variable and final variable
Rainbow (DP)
线程和进程的关系和区别是什么
Explanation of login page
Algèbre linéaire chapitre 1 - déterminants
Chapter 4 of line generation - linear correlation of vector systems
[leetcode 150] evaluation of inverse Polish expression
Techniques et principes de détection
9.Life, the Universe, and Everything
POI and easyexcel exercises
卡尔曼滤波与惯性组合导航
Export of data
Addition, deletion, query and modification of data
Plane semi intersecting plate
Protected (members modified by protected are visible to this package and its subclasses)
Paper on Image Restoration - [red net, nips16] image restoration using very deep revolutionary encoder decoder networks wi
In depth understanding of the relationship between dncblevel and noise denoising in the paper
[leetcode 6] zigzag transformation
How to grow at work
Practical operation - Nacos installation and configuration