public class Video
extends java.lang.Object
Constructor and Description |
---|
Video(VideoConfig config,
java.lang.String filePath)
Constructor for a new Video, using a specific VideoConfig and
the file path of the video file on the system.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
convertToMP4()
Converts the video from the h264 format to the mp4 format and creates a new file
with this converted video.
|
VideoConfig |
getConfig()
Get the VideoConfig used to take this video.
|
java.io.File |
getFile()
Get the abstract representation of the video file.
|
java.lang.String |
getFilePath()
Get the complete file path of the video file on the system.
|
java.lang.String |
toString() |
public Video(VideoConfig config, java.lang.String filePath)
config
- the VideoConfig used to take this video.filePath
- the complete file path of the video on the system.public VideoConfig getConfig()
public java.lang.String getFilePath()
public java.lang.String convertToMP4()
! Attention ! the libav-tools needs to be installed on the Raspberry Pi
(sudo apt-get install -y libav-tools
)
public java.io.File getFile()
public java.lang.String toString()
toString
in class java.lang.Object