Package backend.speech.util
Class VideoEncoder
java.lang.Object
backend.speech.util.VideoEncoder
VideoEncoder utility for encoding a video file into a Base64 string.
- Author:
- Kai
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringencodeVideoToBase64(File videoFile) Encodes a video file into a Base64-encoded string.static voidMain method for testing the functionality.
-
Constructor Details
-
VideoEncoder
public VideoEncoder()
-
-
Method Details
-
encodeVideoToBase64
Encodes a video file into a Base64-encoded string.- Parameters:
videoFile- The video file to encode.- Returns:
- A Base64-encoded string representation of the video.
- Throws:
IOException- If the file cannot be read.IllegalArgumentException- If the file is invalid.
-
main
Main method for testing the functionality.- Parameters:
args- Command-line arguments.
-