gpt4 book ai didi

java - 使用java媒体框架捕获和存储视频?

转载 作者:行者123 更新时间:2023-12-01 16:05:29 24 4
gpt4 key购买 nike

我拍摄了快照,但无法录制视频并存储到硬盘中。如何使用JMF录制视频?如果有人知道,请给出程序..

最佳答案

等待对我上面的评论的答复...

既然您提到了“快照”,您可能对 JMF 的 BufferToImage 感兴趣。 ; API 说

This is a utility class to convert a video Buffer object to an AWT Image object that you can then render using AWT methods.

注意,来自an SO question about audio :

If you don't need any of the additional functionality in JMF, I would avoid it since development has ceased (last version is from 2004), it has compatibility issues with Java 6, has a very restricted functionality in 64-bit VMs and has to installed as a separate extension library.

关于java - 使用java媒体框架捕获和存储视频?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2721171/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com