1

I am Working on MAC OS X. I am Trying to Encode videos from one format to another Using jave ( java audio video converter) . But i keep getting this exception

it.sauronsoftware.jave.EncoderException: Stream #0.0, 25.00 fps(r): Video: mpeg4, yuv420p, 608x288

So i checked where the exception is arising.. I found the code part which throws exception but Not able to resolve why this exception is coming..

the code part is:

        while ((line = reader.readLine()) != null) {
            if (step == 0) {
                if (line.startsWith("WARNING: ")) {
                    if (listener != null) {
                        listener.message(line);
                    }
                } else if (!line.startsWith("Output #0")) {
                    throw new EncoderException(line);
                } 

I keep getting the Encoder exception.. The source file for Encoder.java can be found here : http://www.sauronsoftware.it/projects/jave/download.php

Cœur
  • 37,241
  • 25
  • 195
  • 267
Venkatesh
  • 79
  • 1
  • 1
  • 10
  • Without knowing anything about jave, this looks like reading of some sort of configuration file. The code that throws the exception is expecting something specific at the start of the line, and when it is not found, throws the exception. Are you using the correct configuration format? – HonkyTonk May 29 '12 at 11:58

1 Answers1

1

You can use Xuggler library.

I think is better than JAVE on MAC OS X

Ivan Ferić
  • 4,725
  • 11
  • 37
  • 47
warn974
  • 80
  • 7