Solved

JMF: NoProcessorFoundError

Posted on 2008-06-21
9
2,568 Views
Last Modified: 2013-11-23
Hi experts,
I am facing a problem with jmf merger datasource
The code works fine for recording audio and converting jpg images to .mov but when i try to create a merger datasink to integrate sound with the images, it gives the exception NoProcessorFound
where am i doing it wrong?
here is the code snipplet.


ds[0]=p.getDataOutput(); /// audio Data source
 ds[1] = processor.getDataOutput();  //video data source
 try{    
  dsd = Manager.createMergingDataSource(ds);
  System.out.println(dsd);
  merger=Manager.createProcessor(dsd);//-> this is where exception occur
    }

Open in new window

0
Comment
Question by:sameerz786
9 Comments
 
LVL 7

Expert Comment

by:humanonomics
ID: 21837047
2 things,1) whats the value of dsd at the line number 5 ?
2) can you print the stack trace in here as well ?
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 21837390
It's conceivable that type of data source is not supported by your current software:

"NoProcessorException - Thrown if a Processor can't be created"
0
 

Author Comment

by:sameerz786
ID: 21837666

stack trace is:
javax.media.NoProcessorException: Cannot find a Processor for: com.ibm.media.protocol.MergingPushDataSource@1decdec
        at javax.media.Manager.createProcessorForSource(Manager.java:1766)\par
        at javax.media.Manager.createProcessor(Manager.java:666)\par
        at JpegImagesToMovie.doIt(JpegImagesToMovie.java:154)\par
        at JpegImagesToMovie.main(JpegImagesToMovie.java:412)\par

 the value of dsd at line  4 is:
com.ibm.media.protocol.MergingPushDataSource@1decdec

Is there a way to integrate sound and images into a movie using jmf?
i.e sound from mic and images from a buffer?
0
Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
LVL 92

Accepted Solution

by:
objects earned 500 total points
ID: 21839238


Why exactly are you creating a Processor like that?
See the following example

http://java.sun.com/javase/technologies/desktop/media/jmf/2.1.1/solutions/Merge.java

Otherwise you may be better off looking at using QuickTime

http://developer.apple.com/quicktime/qtjava/
0
 

Author Comment

by:sameerz786
ID: 21839817
I tried the Example with
  String [] args1=new String []{"Sunset.jpg","Water.jpg"};
 String [] args1=new String []{"z.avi","test.avi"};
 String [] args1=new String []{"z.avi","test.wav"};
 String [] args1=new String []{"z.mov","test.avi"};

all the trials gave error

Failed to create a processor: javax.media.NoProcessorException: Cannot find a Processor for: Sunset.jpg or z.mov or z.avi
Java Result: -1

0
 

Author Comment

by:sameerz786
ID: 21855910
thanx all for trying to help i got the error
the media file about to be merged must be in raw format with extension(.vox,.gsm etc)
0
 
LVL 92

Expert Comment

by:objects
ID: 21861372
The example I posted works fine here.
QT would also work.
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
egit plugin on eclipse 8 82
jmss example java 2 24
ejb message driven bean mdb creation steps 2 24
Bot application - advice 3 39
This was posted to the Netbeans forum a Feb, 2010 and I also sent it to Verisign. Who didn't help much in my struggles to get my application signed. ------------------------- Start The idea here is to target your cell phones with the correct…
Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
Viewers learn about the third conditional statement “else if” and use it in an example program. Then additional information about conditional statements is provided, covering the topic thoroughly. Viewers learn about the third conditional statement …
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…

821 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question