使用Java播放和剪切视频

发布于 2024-12-14 05:21:03 字数 231 浏览 0 评论 0原文

我正在编写一个视频目录系统,我想知道是否可以首先在我的应用程序中打开视频(需要多种格式),然后允许用户在给定的时间戳剪切视频。

如果这不是一件容易完成的事情,那么是否可以通过java使用机器上现有的程序打开视频?

编辑

经过一番研究,我发现我可以使用 java Desktop API 通过默认程序打开打开的文件。由于该程序需要能够处理多种格式(包括来自 RED 摄像机的镜头),我决定走这条路。

I'm writing a Video catalog system and I was wondering if its possible to first, open a video in my application (needs to be a wide variety of formats), and second, allow users to cut the video at a given time-stamp.

If this isn't something that can be done easily, then is it possible to open a video using an existing program on the machine through java?

EDIT

After a little research I found I could use the java Desktop API open open files with their default program. Due to the fact that the program needs to be able to work with a wide variety of format (including footage from RED camera), I've decided to go down this route.

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

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

浅沫记忆 2024-12-21 05:21:03

对于第一部分,您可以查看 vlcj

For the first part you might have a look at vlcj.

翻了热茶 2024-12-21 05:21:03

您必须使用 Java 媒体框架 (JMF)。它非常强大,尽管在开始编码之前您必须花一些时间来学习基本概念。

You have to use Java Media Framework (JMF). It is very powerful although you have to spend some time to learn the basic concepts before you are starting coding.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文