jmf

Call Applet.getMethod() with javascript throws error msg : TypeError: Applet.getMethod() is not a function

ぐ巨炮叔叔 提交于 2019-12-11 05:33:18
问题 I have an applet that use JMF libraries, called like this : <object id="cameraViewer" classid="java:MyApplet.class" type="application/x-java-applet" archive="myapplet.jar" height="197" width="159" align="middle" codebase="."> <param name="code" value="MyApplet" /> <param NAME="MAYSCRIPT" VALUE="true" /> <param name="appletWidth" value="250" /> <param name="appletHeight" value="200" /> <param name="archive" value="myapplet.jar" /> <param name="JAVA_CODEBASE" value="." /> <font color="red"

using 64bit and 32 bit JDK

断了今生、忘了曾经 提交于 2019-12-11 01:53:49
问题 I have a system running 64bit windows 7. I'm doing a project using JMF, which I found works best (or only) with 32 bit jdk. I'm using a 32bit eclipse. I also have a 64bit JDK installed. right now I have set classpath (JAVA_HOME and Path) for the 32bit JDK. The problem is it becomes hectic to switch between the 64bit and 32 bit JDK(i have to change classpaths everytime). Is there any easier way to do that? 回答1: You can have multiple JREs registered with Eclipse, and associate a project or run

Combine Audio with Video(without ffmpeg) - Java

一笑奈何 提交于 2019-12-09 13:01:37
问题 I am building an applet to capture screen and microphone input (audio). I am able to record these files separately but could not find a way to combine these files to make a new video with audio. Video file is in .mov format and audio is in .wav format. They have exact same length. Is there any way to combine these files? I have tried Java but could not find a way to combine two files. Also I have to do it without ffmpeg since it needs to be installed on client side. 回答1: private void

What type of .avi video jmf plays?

主宰稳场 提交于 2019-12-08 12:42:23
After struggling through exceptions in using jmf, on How do I remove nullpointerexception . I am able to now play my video, but only the .mov file here at this website . But I am creating my video file using ffmpeg using images and .wav audio files. I can create it in any format, .avi , .mov , .mp4 , but what is important is I should be able to play it in my player, which I built using JMF. Currently, I am getting this error, Unable to handle format: FMP4, 1366x768, FrameRate=30.0, Length=3147264 0 extra bytes java.lang.NullPointerException at java.awt.Container.addImpl(Unknown Source) at java

How do I remove nullpointerexception

风流意气都作罢 提交于 2019-12-08 07:53:17
问题 I am trying to play a video using jmf. After working hard for hours literally removing all errors and exceptions, Here I am getting a null pointer exception. Here I figured out after looking on NullPointerException, this should be due to incorrect declaration of Player mediaPlayer where it is not initialised to anything. Another problem with directly initialising it to what values I am giving it later is, I have to catch the exceptions too, then it says player might not be declared. How do I

What type of .avi video jmf plays?

此生再无相见时 提交于 2019-12-08 07:51:07
问题 After struggling through exceptions in using jmf, on How do I remove nullpointerexception. I am able to now play my video, but only the .mov file here at this website. But I am creating my video file using ffmpeg using images and .wav audio files. I can create it in any format, .avi , .mov , .mp4 , but what is important is I should be able to play it in my player, which I built using JMF. Currently, I am getting this error, Unable to handle format: FMP4, 1366x768, FrameRate=30.0, Length

How to make convert operation from .MOV to 3GP in Java

假装没事ソ 提交于 2019-12-08 06:28:11
问题 I wanna convert ".MOV" extentioned files to 3GP extentioned Files in java. Currently i m using Java Media Framework for creation opetion of .MOV file. But now my need is converting these videos to 3GP. I googled my issue but i couldnt get any solution. How can i do this? Any help will be appreciated. 回答1: I suggest that you use xuggler (java wrapper library for ffmpeg). With their bundled ffmpeg you can test one of your videos with this command. ffmpeg -i input.mov -acodec libamr_nb -ar 8000

How to learn .wav duration in Java media frame work?

可紊 提交于 2019-12-07 10:03:12
问题 I am tyring to merge an .mov file with a .wav file using java media framework, thus I need to know their duration. How can I do this? Any ideas would be appreciated.. 回答1: you can learn the duration of sound files using this way(that is VitalyVal's second way): import java.net.URL; import javax.sound.sampled.AudioFormat; import javax.sound.sampled.AudioInputStream; import javax.sound.sampled.AudioSystem; import javax.sound.sampled.Clip; import javax.sound.sampled.DataLine; public class

Painting over JMF component

落花浮王杯 提交于 2019-12-06 13:57:36
问题 I'm capturing the Stream from a webcam and would like to draw something on top of the video image. I try that in the example below, the problem is that the other component is always in the background no matter how I arrange the components. Is there a way do solve this? public class SwingCapture extends JPanel { private static final long serialVersionUID = -1284686239737730338L; private static Player player = null; public static final int WIDTH = 640; public static final int HEIGHT = 480;

Problem in java programming on windows7 (working well in windows xp)

只愿长相守 提交于 2019-12-06 10:36:20
问题 I am capturing video from webcam connected to pc.I am using the following code to do so: import java.util.*; import javax.media.*; import javax.media.protocol.*; import javax.media.control.*; import javax.media.format.*; import java.awt.*; /** * This is the primary class to run. It gathers an image stream and drives the processing. * */ public class jmfcam05v { DataSource dataSource; PushBufferStream pbs; Vector camImgSize = new Vector(); Vector camCapDevice = new Vector(); Vector