当前位置:网站首页>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
边栏推荐
- [leetcode169] most elements
- 2. Average length of words
- [leetcode 350] intersection of two arrays II
- Consistent hash algorithm used for redis cache load balancing
- Illustrate the significance of hashcode
- A general U-shaped transformer for image restoration
- Substring Inversion (Easy Version)
- The bottom implementation principle of thread - static agent mode
- Advanced operation of idea debug
- Best practices for MySQL storage time
猜你喜欢
Pytorch notes - complete code for linear regression & manual or automatic calculation of gradient code comparison
Illustrate the significance of hashcode
[leetcode 401] binary Watch
Paper on LDCT image reconstruction: edge enhancement based transformer for medical image denoising
电机与拖动(戚金清版)学习整理
A sharp tool to improve work efficiency
A general U-shaped transformer for image restoration
JDBC connection database
[leetcode 67] sum of two binary numbers
Algèbre linéaire chapitre 2 - matrice et son fonctionnement
随机推荐
Storing inherited knowledge in cloud computing
Common sense of thread pool
POI and easyexcel exercises
RPC must know and know
Best practices for MySQL storage time
Preparedstatement prevents SQL injection
Generation of verification code
[leetcode 290] word rules
Unsupervised denoising - [tmi2022] ISCL: dependent self cooperative learning for unpaired image denoising
Protected (members modified by protected are visible to this package and its subclasses)
[leetcode 954] double pair array
LockSupport. Park and unpark, wait and notify
Paper on LDCT image reconstruction: edge enhancement based transformer for medical image denoising
St table template
[transfer] MySQL: how many rows of data can InnoDB store in a B + tree?
Algèbre linéaire chapitre 2 - matrice et son fonctionnement
Supply chain service terms
The bottom implementation principle of thread - static agent mode
ThreadLocal. Threadlocalmap analysis
Pytorch notes - complete code for linear regression & manual or automatic calculation of gradient code comparison