一些推流方案合集rtsp

https://www.cnblogs.com/dreamsqin/p/12557070.html
视频流传输到前端的过程图
一些推流方案合集rtsp_第1张图片

设备是usb摄像头,没有网络功能,设备号:/dev/vedio0

ffmpeg

1、https://blog.csdn.net/zong596568821xp/article/details/88540455
试验延时6~7秒 ffserver+ffmpeg

2、FFmpeg读取USB摄像头H264帧rtmp推流 相关博客
https://blog.csdn.net/zhaoyun_zzz/article/details/86544875?spm=1001.2014.3001.5501
3、FFmpeg 推流 + EasyDarwin 转发 + vlc 播放 实现 RTSP 直播
https://blog.csdn.net/chy555chy/article/details/107354427?utm_medium=distribute.pc_relevant.none-task-blog-baidujs_title-0&spm=1001.2101.3001.4242
4、ffmpge+easydrawin+vlc实现usb摄像头推拉流
https://blog.csdn.net/qq_44571183/article/details/116158784?spm=1001.2014.3001.5501

gstreamer

1、gstreamer读取USB摄像头H264帧并用rtmp推流
https://blog.csdn.net/zhaoyun_zzz/article/details/86496621?spm=1001.2014.3001.5501

2、rostopic转rtsp流 以及usb摄像头转rtsp流
(已验证 电脑自带摄像头延时3s~5s,外接usb摄像头卡帧,rostopic只显示第一帧)
https://github.com/corenel/ros_rtsp

3、ros元功能包 gstcam
gstcam是github上一个开元的ros软件包,它巧妙地将gstream流媒体框架引入ROS系统。通过利用 gstreamer 实现一个标准的ROS API接口.比如捕获usb uav camera 的图像,然后转化成ros中sensor_msgs/Image类型的image话题,发布到ros中,供其他节点使用。

rtspserver

1、USB摄像头-rtspserver服务+ffmeg(作者说延时2s)
https://blog.csdn.net/qq_44571183/article/details/116159159
rtspserver相关信息 go语言开发
2、https://gitee.com/mdata_986/rtspserver
3、https://www.cnblogs.com/haibindev/p/7918733.html

推流命令

推流rtmp 用srs服务器、 nginx-rtmp服务器

ffmpeg -r 28 -fflags nobuffer -fflags flush_packets -i /dev/video0 -vf fps=fps=28 -an -vcodec h264 -preset slower -tune zerolatency -max_delay 10 -r 28 -video_size 1280x720 -g 50 -b:v 8192k -f flv "rtmp://192.168.86.128:1935/live/1"



ffplay -autoexit -fflags nobuffer -fflags flush_packets -flags low_delay -noframedrop -strict very -analyzeduration 600000 -i rtmp://192.168.86.128:1935/live/1

延时挺高

ffmpeg -re  -fflags nobuffer -fflags flush_packets -i /dev/video0  -an -vcodec h264  -f rtsp rtsp://localhost/test

 ffplay -autoexit -fflags nobuffer -fflags flush_packets -flags low_delay -noframedrop -strict very  -i rtmp://localhost/test
ffmpeg -r 28 -fflags nobuffer -fflags flush_packets -i /dev/video0 -vf 
fps=fps=28 -an -vcodec h264_omx -preset slower -tune zerolatency -max_delay 10 
-r 28 -video_size 1280x720 -g 50 -b:v 8192k -f flv "rtmp://
{RTMPIP}:{RTMPPORT}/live/1"

延时:1.5s

 ffmpeg -r 28 -fflags nobuffer -fflags flush_packets -i /dev/video0 -vf fps=fps=15 -an -vcodec h264 -preset slower -tune zerolatency -max_delay 10 -r 15 -video_size 1280x720 -f rtsp rtsp://localhost/test


ffplay -autoexit -fflags nobuffer -fflags flush_packets -flags low_delay  -i rtsp://localhost/test
一些推流方案合集rtsp_第2张图片

https://ffmpeg.org/ffmpeg-protocols.html

已经试验:srs服务器、nginx-rtmp服务器、easyDrew、rtsp-simple-server

你可能感兴趣的:(璇の学习记录,音视频)