jmf

使用JMF(Java Media Framework)使用电脑摄像头

橙三吉。 提交于 2019-11-30 07:17:35
JMF(Java Media Framework)是Java媒体框架,包含了许多用于处理多媒体的API可以让基于JAVA的应用实现音频、视频的捕捉、处理、播放、传输等功能。利用它,可以实现音、视频播放,网络视频聊天、视频会议等功能。不说了,开讲: 1、下载地址: http://www.oracle.com/technetwork/java/javase/download-142937.html ,自从sun被oracle 收购后,网址都改成oracle.com了,网上的 sun.com的网址都不对;我下载的版本是:jmf-2_1_1e-windows-i586 2、安装:按提示一步步安装下去就可以了,安装后要重启;安装完毕后,在你的JDK安装目录\jre\lib\ext下,会多出两个文件:jmf.jar和sound.jar 3、测试摄像头:安装完毕后,在桌面会多一个"JMStudio"的快捷方式,运行它,点击"File->Capture"菜单,如果启动摄像头成功,说明你安装jmf成功。如果失败的话,按网上的说法,必须是安装32位的JDK才可以,因为JMF只支持32位JDK。由于我本机没有安装64位JDK,所以这点没有验证。 4、编写JAVA代码打开电脑摄像头,以下代码也是从网上修改而来,但是必须做以下修改才运行正常: a、必须先初始化摄像头、再设置Jframe的一些属性并显示

Video playback in Java ( JMF, Fobs4JMF, Xuggler, FMJ )

丶灬走出姿态 提交于 2019-11-29 23:02:28
I need simple video playback in Java. Here are my requirements: PRODUCTION QUALITY Open and decode video files whose video and audio codecs can be chosen by me. I.E I can pick well behaving codecs. Be able to play , pause , seekToFrame OR seekToTime and stop playback. Essentially I wish to be able to play segments of a single video file in a non linear fashion. For example I may want to play the segment 20.3sec to 25.6sec, pause for 10 seconds and then play the segment 340.3sec to 350.5sec, etc. During playback, video and audio must be in sync. The video must be displayed in a Swing JComponent

Playing media files using JAVA

99封情书 提交于 2019-11-29 08:22:28
I want to build a tread safe JAVA application which: Play *.mp4 or other format HD media files (full-screen mode 1920x1080) Add event bindings to applet (I'll be using touchscreen monitor) I tried to search a lot, but found only outdated examples of JMF (VLCJ and etc.). So I want you to ask from where to start building this applet. What libraries I can include. I found a similar project here: Media Shuffle But I want my media files to be located in one folder and they appear in applications as icons which start selected video (VLC fullscreen or other cross-platform media player) to play on 1st

eclipse远程debug,java项目

混江龙づ霸主 提交于 2019-11-29 04:36:11
首先java项目要支付可远程调试得到启动时加入参数 启动远程调试 -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=可用于远程调试端口 启用JMX,远程性能观察 -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=9999 #可用于远程JMS端口 -Dcom.sun.management.jmxremote.ssl=false #是否采用SSL -Dcom.sun.management.jmxremote.authenticate=false #是否安全校验 -Djava.rmi.server.hostname=10.10.9.221 #使用IP eclipse配置 其中:host为远程java程序提供远程调试的IP,post为远程java程序提供远程调试的端口 使用 Eclipse 远程调试 Java 应用程序 摘抄: http://www.ibm.com/developerworks/cn/opensource/os-eclipse-javadebug/ 远程调试对应用程序开发十分有用。例如,为不能托管开发平台的低端机器开发程序,或在专用的机器上(比如服务不能中断的 Web 服务器)调试程序。其他情况包括

Video playback in Java ( JMF, Fobs4JMF, Xuggler, FMJ )

廉价感情. 提交于 2019-11-28 20:13:53
问题 I need simple video playback in Java. Here are my requirements: PRODUCTION QUALITY Open and decode video files whose video and audio codecs can be chosen by me. I.E I can pick well behaving codecs. Be able to play , pause , seekToFrame OR seekToTime and stop playback. Essentially I wish to be able to play segments of a single video file in a non linear fashion. For example I may want to play the segment 20.3sec to 25.6sec, pause for 10 seconds and then play the segment 340.3sec to 350.5sec,

Sound — An API for playing sound data from applications.

好久不见. 提交于 2019-11-28 19:08:13
https://docs.oracle.com/javase/tutorial/sound/index.html The Java Sound API is a low-level API for effecting and controlling the input and output of sound media, including both audio and Musical Instrument Digital Interface (MIDI) data. The Java Sound API provides explicit control over the capabilities normally required for sound input and output, in a framework that promotes extensibility and flexibility. Java Sound API是一个底层API,用于实现和控制声音媒体的输入和输出,包括音频和乐器数字接口(MIDI)数据。 Java Sound API在一个促进可扩展性和灵活性的框架中提供对声音输入和输出通常所需功能的显式控制。 The Java Sound API fulfills the needs of a wide range of application

Adding dependencies in Maven Netbeans

自古美人都是妖i 提交于 2019-11-28 13:25:23
I've created a Maven project and added the dependencies (jar files) that I need; however, netbeans says that it still cannot find it. Specifically in my case, I added the jmf-2.1.1e.jar file into my dependencies folder. When I go back to my program it still gives me the compile error that it cannot find the javax.media package. Did you let Netbeans manage the dependency? In your "Projects" listing, find and context+click on the "Dependencies" folder in the list. From the context menu, choose "Add Dependency". This approach works at least in NetBeans 7.4 and 8.0 beta. Make sure that your pom

Eclipse missing imports (javax.media.* and com.sun.media.*)

孤者浪人 提交于 2019-11-28 11:30:21
I have this old java applet that i need to debug, yet i have some problems with import. The import javax.media.* cannot be resolved. The import com.sun.media.* cannot be resolved After some research i tried adding this external libs to the project - with no success. sun-jai_codec.jar from http://www.java2s.com/Code/Jar/s/Downloadsunjaicodecjar.htm installed JMF2.1.1e and added the jmf.jar. I had no luck with this... so im asking some one for a little help! Just build the path of your project again. Right click on the project and then select build path--->configure build path--->java build path

Where can I download the mp3plugin.jar to play MP3s in Java code?

半世苍凉 提交于 2019-11-28 08:22:38
I need to Play a MP3 File in Java code under Linux environment ( Ubuntu 11.04 ). I tried to download the MP3plugin.jar file from http://www.oracle.com/technetwork/java/javase/download-137625.html ,but I can't see it in the list. Note : "I downloaded the sun Java Media Framework" That is the link from which I downloaded the Jar some time ago, but it seems broken now. It leads to a page with a long list of APIs for download, none of which are that archive. :( Fortunately, I use it in various web start apps. You can get it direct from my share drive . Using that link, it appears in a list. Here

Playing media files using JAVA

落花浮王杯 提交于 2019-11-28 01:52:34
问题 I want to build a tread safe JAVA application which: Play *.mp4 or other format HD media files (full-screen mode 1920x1080) Add event bindings to applet (I'll be using touchscreen monitor) I tried to search a lot, but found only outdated examples of JMF (VLCJ and etc.). So I want you to ask from where to start building this applet. What libraries I can include. I found a similar project here: Media Shuffle But I want my media files to be located in one folder and they appear in applications