Skip to content

Conversation

Wayne451-b
Copy link

使用ffmpeg重构rtsp拉流节点,实测延时可比vlc低1秒左右,分辨率默认设置为720p。
可代替gstreamer拉流方案(实测gstreamer拉流启动速度不稳定,且比vlc多了2秒延时,原因尚未确定)。
本方案供开发者参考、改进,希望VideoPipe开源框架越来越完善,生态越来越好!Good Luck!

@taoxm
Copy link

taoxm commented Sep 15, 2025 via email

cv::Mat frame(target_height_, target_width_, CV_8UC3, frame_rgb_->data[0], frame_rgb_->linesize[0]);

// 更新当前帧
{
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这里最好用一个queue,否则会出现掉帧现象

@sherlockchou86
Copy link
Owner

谢谢提交的PR,基于ffmpeg拉流的代码我之前写过一版,后面再传上来

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants