Solved

JMF: NoProcessorFoundError

Posted on 2008-06-21
9
2,589 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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
PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

 
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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

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 Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:

688 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