JMF替换 [英] JMF replacement

查看:139
本文介绍了JMF替换的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

JMF是旧的,不支持很多编解码器。这几天我在后台使用FFMPEG,但是如果存在,我想切换到本地Java解决方案,有没有人知道当前具有媒体操作功能的开源Java项目?

解决方案

这取决于你想做什么。



由于您正在使用ffmpeg,因此我假设您正在编码视频。我很悲观,Java将在短期或中期内做这样的工作 - 这与非常多的Java哲学/行李有关。



Java 7 ,编解码器一般应该更容易访问,更多可用,并开始真正显示应用。不幸的是,从我所看到的,重点似乎在播放和GUI。



我分配从Java到ffmpeg的分解来编码视频和其他媒体。事实是, ffmpeg是以编程方式编码视频,专有或开放源码的最佳工具之一。我预测在可预见的将来会保持这种状态。



如果ffmpeg不适合您,那么您可能需要调查 Quicktime for Java 。我个人并没有深切地看待它,但似乎是大的。注意,在QuickTime X(2009年秋季)发布之前,似乎已被弃用。


QuickTime对于Java提供了一套
跨平台的API,它允许Java
开发人员在应用程序和小程序中构建多媒体,
,包括流式音频和视频



JMF is old, and doesn't support a lot of codecs properly. I get by these days by using FFMPEG in the background, but I would like to switch to a native java solution if one exists, does anyone know of a current open source Java project that has media manipulation functionality?

解决方案

It depends what you want to do.

Since you are using ffmpeg, then I assume you are encoding videos. I am pessimistic that Java will do such work 'native' in the short or medium term--it very much goes against many Java philosophies/baggage.

That said, with Java 7, codecs in general should become easier to access, be more available and start showing up in real applications. Unfortunately, from what I've read, the emphasis seems to be on playback and GUIs.

I do allot of shelling out from Java to ffmpeg to encode videos and other media. Fact is, ffmpeg is one of the best tools out there for programmatically encoding videos, proprietary or open source. I predict that it will stay that way for the foreseeable future.

If ffmpeg is just not working for you, then you may want to investigate Quicktime for Java. I personally have not looked to deeply at it, but it seems to be 'big'. Note that it seems to have been deprecated as of the release of QuickTime X (Fall 2009).

QuickTime for Java provides a set of cross-platform APIs which allows Java developers to build multimedia, including streaming audio and video, into applications and applets.

这篇关于JMF替换的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆