使用 ffmpeg 将来自相机的传入帧保存到视频
我正在尝试记录从工业相机读取的帧(例如 - 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论