org.jtheque.movies.services.able
Interface IFFMpegService

All Known Implementing Classes:
FFMpegService

public interface IFFMpegService

A files service specification.

Author:
Baptiste Wicht

Method Summary
 boolean ffmpegIsInstalled()
          Indicate if FFMpeg is installed or not.
 BufferedImage generateImageFromUserInput(File file)
          Generate a preview image from a file specified by the user.
 BufferedImage generatePreviewImage(File file, String time)
          Generate a preview image at the specified time.
 BufferedImage generateRandomPreviewImage(File file)
          Generate a random preview image from the movie file.
 PreciseDuration getDuration(File f)
          Return the duration of the movie specified by the file.
 Resolution getResolution(File f)
          Return the resolution of the movie specified by the file.
 

Method Detail

getResolution

Resolution getResolution(File f)
Return the resolution of the movie specified by the file.

Parameters:
f - The file of the movie.
Returns:
The resolution of the file else null if this not possible to get that information.

getDuration

PreciseDuration getDuration(File f)
Return the duration of the movie specified by the file.

Parameters:
f - The file of the movie.
Returns:
The duration of the file else null if this not possible to get that information.

generateRandomPreviewImage

BufferedImage generateRandomPreviewImage(File file)
Generate a random preview image from the movie file.

Parameters:
file - The file of the movie.
Returns:
A random preview image else null if this not possible to get that information.

generatePreviewImage

BufferedImage generatePreviewImage(File file,
                                   String time)
Generate a preview image at the specified time.

Parameters:
file - The file of the movie.
time - The time at which we must get the image.
Returns:
The preview image at the specified time else null if this not possible to get that information.

generateImageFromUserInput

BufferedImage generateImageFromUserInput(File file)
Generate a preview image from a file specified by the user.

Parameters:
file - The file specified by the user.
Returns:
The image specified by the user scaled and stored to be a preview image else null if this not possible to get that information.

ffmpegIsInstalled

boolean ffmpegIsInstalled()
Indicate if FFMpeg is installed or not.

Returns:
true if it's installed else false.


Copyright © 2010 JTheque. All Rights Reserved.