使用Java播放和剪切视频
我正在编写一个视频目录系统,我想知道是否可以首先在我的应用程序中打开视频(需要多种格式),然后允许用户在给定的时间戳剪切视频。
如果这不是一件容易完成的事情,那么是否可以通过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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
对于第一部分,您可以查看 vlcj。
For the first part you might have a look at vlcj.
您必须使用 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.