Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
每隔 x 分钟,我就会从网络摄像头中抓取一张图像。现在我想将这张图片添加到现有的视频文件中 - 即时。
我不想保留大量的图像文件,然后偶尔用例如编码它们
mencoder mf://@${LIST} -mf type=jpg:fps=${FPS} ...
视频格式/编解码器并不重要,只要标准工具(mplayer、ffmpeg、vlc、...)可以处理它。
有什么想法或建议吗?提前致谢!
一种应该有效的明显方法(至少根据我的第一次测试)是将新的 jpeg 图像写入视频文件的末尾 - 所以视频是 mjpeg 流。
cat ${PIC} >> ${VIDEO}
这是我的问题的答案,但是我正在寻找比每个单独存储的图片占用更少空间的东西。
其他提示?