Skip to content

Commit

Permalink
Demonstration of handstop version 1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
darsan-in committed Jun 27, 2024
1 parent 895ad68 commit b55a4d8
Show file tree
Hide file tree
Showing 14 changed files with 803 additions and 167 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules
335 changes: 168 additions & 167 deletions LICENSE

Large diffs are not rendered by default.

Binary file added encoded/a.mp4
Binary file not shown.
Binary file added encoded/sample/11967728_1920_1080_60fps.mp4
Binary file not shown.
Binary file added encoded/sample/FaceRecon.mp4
Binary file not shown.
15 changes: 15 additions & 0 deletions multiencode.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
const { encodeAll } = require("handstop");

const videos = ["sample/FaceRecon.mp4", "sample/11967728_1920_1080_60fps.mp4"];
const destPath = "encoded";
const codecType = "mx265";
const encodeLevel = 1;
const concurrency = 2;

encodeAll(videos, destPath, codecType, encodeLevel, concurrency)
.then(() => {
console.log("success");
})
.catch((err) => {
console.log(err.message);
});
8 changes: 8 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"name": "handstop-demo",
"version": "1.0.0",
"license": "GPL-3.0-only",
"dependencies": {
"handstop": "^1.0.0"
}
}
Binary file added sample/11967728_1920_1080_60fps.mp4
Binary file not shown.
Binary file added sample/16506193-hd_1920_1080_30fps.mp4
Binary file not shown.
Binary file added sample/20687323-hd_1922_1080_30fps.mp4
Binary file not shown.
Binary file added sample/20758488-hd_1920_1080_30fps.mp4
Binary file not shown.
Binary file added sample/FaceRecon.mp4
Binary file not shown.
14 changes: 14 additions & 0 deletions singleencode.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
const { encode } = require("handstop");

const videoPath = "sample/FaceRecon.mp4";
const outputPath = "test/a.mp4";
const codecType = "mx265";
const encodeLevel = 1;

encode(videoPath, outputPath, codecType, encodeLevel)
.then(() => {
console.log("success");
})
.catch((err) => {
console.log(err.message);
});
597 changes: 597 additions & 0 deletions yarn.lock

Large diffs are not rendered by default.

0 comments on commit b55a4d8

Please sign in to comment.