一、安装一些必要的调试工具
1、vlc安装
sudo apt-get install vlc
sudo apt-get install vlc-nox
2、ffmpeg安装,带ffplay,ffplay依赖sdl库
源码都是三步安装./configure && make && sudo make install
以下安装顺序不能乱
yasm 1.2.0.tar.gz
sudo apt-get install libx11-dev
sudo apt-get install xorg-dev
SDL2-2.0.8.tar.gz
ffmpeg-4.1.tar.bz2
3、ffplay编译起来真麻烦,还不如用mplayer和vlc
sudo apt-get install mplayer
二、h264/aac数据的rtp/rtsp收发
早年用live555来开发摄像机,虽然已经有了较完善的解析,封装等功能模块,但是live555代码嵌套太深,看起来费劲。
网上搜了一下,有很多的数据处理的小demo,都列举到此吧,大多数我都跑通了。
1、Send H264 file by RTP over UDP
https://github.com/hmgle/h264_to_rtp
https://github.com/tinydigger/RTPH264Streaming
2、Here is a simply using of rtp/rtsp protocol pushing .h264 object to a VLC client (single video)
https://github.com/GitDolhpin/simple_rtsp
3、Push the h.264 data through the rtp protocol, It can be played in the VLC player/Mplayer
https://github.com/licaibiao/rtp_push_h264
4、Encode h264 data to RTP package and Streaming through network
Use gstreamer as receiver,Run 'rtpencoder test.264 127.0.0.1 5004' as sender
https://github.com/tinydigger/RTPH264Streaming
5、use python to unpacketize rtp h264 packet
python rtph264.py This file can simply dump the rtp h264 packet to file from gstreamer
https://github.com/iantuan/rtp_h264
6、convert a binary h264 rtp packet file to h264 file
https://github.com/bill-hu/rtp2h264
7、RTP抓包文件导出H.264 Payload的Wireshark插件,感谢这位同学做了这么方便的工具
https://blog.csdn.net/jasonhwang/article/details/7359095#
8、H264 RTP打包发送和接收解包
H264 RTP打包发送
https://blog.csdn.net/anobodykey/article/details/7872027
H264 RTP解包
https://blog.csdn.net/anobodykey/article/details/7876047
9、rtp封包/分析/发送
(转)VLC播放RTP打包发送的.264文件
https://www.cnblogs.com/tangxiacun/p/4446009.html
(转)RTP-H264封包分析
https://www.cnblogs.com/tangxiacun/p/4493431.html
10、rtsp over udp