You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think there needs to be an input parameter in the method(ws.schild.jave.MultimediaObject#getInfo).
/** * Returns a set informations about a multimedia file, if its format is supported for decoding. * * @return A set of informations about the file and its contents. * @throws InputFormatException If the format of the source file cannot be recognized and decoded. * @throws EncoderException If a problem occurs calling the underlying ffmpeg executable. */publicMultimediaInfogetInfo() throwsInputFormatException, EncoderException {
if (isURL() || inputFile.canRead()) {
ProcessWrapperffmpeg = locator.createExecutor();
// prescription: Add input file other parametersffmpeg.addArgument("-i");
ffmpeg.addArgument(toString());
try {
ffmpeg.execute();
} catch (IOExceptione) {
thrownewEncoderException(e);
}
try {
RBufferedReaderreader =
newRBufferedReader(newInputStreamReader(ffmpeg.getErrorStream()));
if (isURL()) {
returnparseMultimediaInfo(inputURL.toString(), reader);
} else {
returnparseMultimediaInfo(inputFile.getAbsolutePath(), reader);
}
} finally {
ffmpeg.destroy();
}
} else {
thrownewEncoderException("Input file not found <" + inputFile.getAbsolutePath() + ">");
}
}
The text was updated successfully, but these errors were encountered:
convert pcm to mp3:
console log:
probable cause:
No input parameters
With input parameters
pcm file download link : pcm test audio file
I think there needs to be an input parameter in the method(
ws.schild.jave.MultimediaObject#getInfo
).The text was updated successfully, but these errors were encountered: