当前位置:网站首页>Gnuradio transmits video and displays it in real time using VLC
Gnuradio transmits video and displays it in real time using VLC
2022-07-08 01:22:00 【You roll, I don't roll】
I need to participate in a competition recently , It's all about using FPGA Get the video and send it to USRP RX Send , Finally, real-time display is carried out at the receiving end . This time, I will record the method and test process of real-time video display at the receiving end . The main flow chart is as follows :
Achieve video pass USRP Send and display in real time at the receiving end , This process is summed up in two popular words —— live broadcast . Generally speaking , Due to the limitation of channel bandwidth , If the original video is decoded into one frame of images and then sent, and then displayed in the receiving segment, it requires a lot of transmission bandwidth , General wireless transmission is difficult to achieve such a large bandwidth , In especial Underwater acoustic communication . Therefore, the encoded video stream must be transmitted ( such as mp4 Video format ).
For people like me who have not studied video coding and decoding in detail , The simpler the way to realize real-time video display, the better , It's better not to write code ! Fortunately , This method really exists (^-^)! The real-time display of video at the receiving end can use VLC player . Let's look at some examples of transmission :
1、 Audio transmission
This experiment transmits a .wav Format audio data ,GNU Radio The settings in are as follows :
as for UDP Sink How to use the module is omitted here ( Let go link , If you need it, you can click in to learn ), Be careful IP Address Address Parameter settings , Can pass ifconfig -a Command to get . Then the port number Destination Port Parameter settings , Set why casually , Just follow VLC Just be consistent in .
Say below VLC Set up ,VLC The installation command of is sudo apt install vlc . open VLC , Choose... From the menu bar Media -> Open Network Stream, You will see the following interface :
We are URL Fill in the network address and port number , Note that the prefix is :udp/wav:// , hinder ip The address and port number should be the same as UDP Sink The settings in the module are consistent . And then click Play Button to wait for data reception .
Finally, plug in the headset and run GNU Radio Flow chart ,~~~ You listen to , What a wonderful sound ~~~
Be careful : Don't use it here Throttle modular , As for why , You can add it and try it .
2、 video transmission
At present, it only realizes the use GNURadio Transmit silent video , The transmission method of audio and video is still under study . The process is as follows :
I'll start with the audio transmission VLC URL The prefix in the column is changed to :udp/h264:// , Other settings remain unchanged . And then use ffmpeg Tools ( Installation steps Reference link ) Take the sound taken by the mobile phone mp4 File to h264 File format , The order is as follows :
ffmpeg -i 36985186.mp4 -c copy test.h264
The conversion method comes from :
Use ffmpeg take mp4 The file to h264 Documents or 264 file _soralaro The blog of -CSDN Blog
After the conversion test.h264 Just transfer the file , The steps are the same as above .
Current progress , Let's make a summary , Later, we have to figure out how to send normally mp4 The file will be updated when it comes back .
边栏推荐
- 3.MNIST数据集分类
- Multi purpose signal modulation generation system based on environmental optical signal detection and user-defined signal rules
- Definition and classification of energy
- Blue Bridge Cup embedded (F103) -1 STM32 clock operation and led operation method
- Vscode reading Notepad Chinese display garbled code
- Macro definition and multiple parameters
- Complete model training routine
- How to use education discounts to open Apple Music members for 5 yuan / month and realize member sharing
- 跨模态语义关联对齐检索-图像文本匹配(Image-Text Matching)
- C#中string用法
猜你喜欢
Vscode reading Notepad Chinese display garbled code
Share a latex online editor | with latex common templates
Transportation, new infrastructure and smart highway
Recommend a document management tool Zotero | with tutorials and learning paths
Two methods for full screen adaptation of background pictures, background size: cover; Or (background size: 100% 100%;)
Know how to get the traffic password
Blue Bridge Cup embedded (F103) -1 STM32 clock operation and led operation method
Ag9310 design USB type C to hdmi+u2+5v slow charging scheme design | ag9310 expansion dock scheme circuit | type-C dongle design data
Prediction of the victory or defeat of the League of heroes -- simple KFC Colonel
2021 welder (primary) examination skills and welder (primary) operation examination question bank
随机推荐
How to write mark down on vscode
The whole life cycle of commodity design can be included in the scope of industrial Internet
Smart grid overview
Kuntai ch7511b scheme design | ch7511b design EDP to LVDS data | pin to pin replaces ch7511b circuit design
A speed Limited large file transmission tool for every major network disk
Mathematical modeling -- knowledge map
5、離散控制與連續控制
Redis 主从复制
The Ministry of housing and urban rural development officially issued the technical standard for urban information model (CIM) basic platform, which will be implemented from June 1
Cs5212an design display to VGA HD adapter products | display to VGA Hd 1080p adapter products
Chapter 7 Bayesian classifier
USB type-C docking design | design USB type-C docking scheme | USB type-C docking circuit reference
Complete model verification (test, demo) routine
Su embedded training - C language programming practice (implementation of address book)
5. Over fitting, dropout, regularization
Several frequently used OCR document scanning tools | no watermark | avoid IQ tax
Arm bare metal
Overall introduction of the project
7.正则化应用
5、离散控制与连续控制