JMF: NoProcessorFoundError

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
  dsd = Manager.createMergingDataSource(ds);
  merger=Manager.createProcessor(dsd);//-> this is where exception occur

Open in new window

Who is Participating?
objectsConnect With a Mentor Commented:

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

Otherwise you may be better off looking at using QuickTime
2 things,1) whats the value of dsd at the line number 5 ?
2) can you print the stack trace in here as well ?
It's conceivable that type of data source is not supported by your current software:

"NoProcessorException - Thrown if a Processor can't be created"
Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

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

sameerz786Author Commented:

stack trace is: Cannot find a Processor for:
        at JpegImagesToMovie.doIt(\par
        at JpegImagesToMovie.main(\par

 the value of dsd at line  4 is:

Is there a way to integrate sound and images into a movie using jmf?
i.e sound from mic and images from a buffer?
sameerz786Author Commented:
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 []{"","test.avi"};

all the trials gave error

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

sameerz786Author Commented:
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)
The example I posted works fine here.
QT would also work.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.