Solved

JMF: NoProcessorFoundError

Posted on 2008-06-21
9
2,582 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
Industry Leaders: 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!

 
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: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

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.

Question has a verified solution.

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

Suggested Solutions

By the end of 1980s, object oriented programming using languages like C++, Simula69 and ObjectPascal gained momentum. It looked like programmers finally found the perfect language. C++ successfully combined the object oriented principles of Simula w…
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 will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…
Suggested Courses

734 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