Skip to content

Java SDK for Video Transcoding, Thumbnails extraction & Video Summarization. MediaMachine API lets you convert videos between different web-ready formats - perfect for processing & resizing user-generated videos. Uses machine-learning to select the best frame as thumbnail for videos & creates video summaries similar to NLP for articles.

Notifications You must be signed in to change notification settings

stackrock/mediamachinejava

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mediamachine Java client

Maven ?

Ant ?

Gradle ?

Usage

Thumbnail Job

AWSCreds creds = new AWSCreds(ACCESS_KEY_ID, SECRET_ACCESS_KEY, REGION);
Blob input = Blob.withCredentials(creds).bucket("chechito-test").key("test.web");
Blob output = Blob.withCredentials(creds).bucket("chechito-test").key("test-java.jpg");
ThumbnailJobBuilder tj = ThumbnailJobBuilder.withDefaults().apiKey(STACKROCK_IO_API_KEY).from(input).to(output).watermarkFromText("stackrock.io");
tj.execute();

Summary Gif Job

AWSCreds creds = new AWSCreds(ACCESS_KEY_ID, SECRET_ACCESS_KEY, REGION);
Blob input = Blob.withCredentials(creds).bucket("chechito-test").key("test.web");
Blob output = Blob.withCredentials(creds).bucket("chechito-test").key("test-java.gif");
SummaryJobBuilder sjg = SummaryJobBuilder.withDefaults().apiKey(STACKROCK_IO_API_KEY).type(SummaryType.GIF).from(input).to(output).watermarkFromText("stackrock.io");
sjg.execute();

Summary Mp4 Job

AWSCreds creds = new AWSCreds(ACCESS_KEY_ID, SECRET_ACCESS_KEY, REGION);
Blob input = Blob.withCredentials(creds).bucket("chechito-test").key("test.web");
Blob output = Blob.withCredentials(creds).bucket("chechito-test").key("test-java.mp4");
SummaryJobBuilder sjm = SummaryJobBuilder.withDefaults().apiKey(STACKROCK_IO_API_KEY).type(SummaryType.MP4).from(input).to(output).watermarkFromText("stackrock.io").removeAudio(true);
sjm.execute();

Transcode Job

AWSCreds creds = new AWSCreds(ACCESS_KEY_ID, SECRET_ACCESS_KEY, REGION);
Blob input = Blob.withCredentials(creds).bucket("chechito-test").key("test.web");
Blob output = Blob.withCredentials(creds).bucket("chechito-test").key("test-java-transcoded.mp4");
TranscodeOpts opts = TranscodeOpts.withDefaults().encoder(Encoder.H265).bitrate(BitrateKbps.FOUR_MBPS).container(Container.MP4).videoSize(VideoSize.VIDEO_SIZE_1080);
TranscodeJobBuilder tj = TranscodeJobBuilder.withDefaults().apiKey(STACKROCK_IO_API_KEY).from(input).to(output).options(opts);
tj.execute();

About

Java SDK for Video Transcoding, Thumbnails extraction & Video Summarization. MediaMachine API lets you convert videos between different web-ready formats - perfect for processing & resizing user-generated videos. Uses machine-learning to select the best frame as thumbnail for videos & creates video summaries similar to NLP for articles.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages