使用 ffmpeg 将来自相机的传入帧保存到视频

发布于 2025-01-13 15:14:27 字数 439 浏览 3 评论 0原文

我正在尝试记录从工业相机读取的帧(例如 - https://en.ids-imaging.com/store/u3-3680xle.html)在我的 C# 代码中作为位图。 我想将这些位图即时转换为视频。

到目前为止我的解决方案是 ->将这些位图发送到虚拟相机(e2e 软 vcam),然后使用 ffmpeg 记录相机 - 使用以下命令:

-f dshow -i video=VCam -r 18 -vcodec libx264 Video.mp4

这效果不太好,因为有丢帧并且视频不流畅。

还有另一种方法可以使用 ffmpeg 将这些图像转换为飞行中的视频吗?

谢谢你!

I'm trying to record frames that I read from an industrial camera (such as - https://en.ids-imaging.com/store/u3-3680xle.html) in my C# code as bitmaps.
I want to convert those bitmaps to video on the fly.

My solution until now was -> Sending those bitmaps to a virtual camera (e2e soft vcam) and then record the camera with ffmpeg - using this command:

-f dshow -i video=VCam -r 18 -vcodec libx264 Video.mp4

This is not working so well, because there are drop frames and the video is not smooth.

There is another way to use ffmpeg for converting those images to video on the flight?

Thank you!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文