-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Demonstration of handstop version 1.0.0
- Loading branch information
Showing
14 changed files
with
803 additions
and
167 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
node_modules |
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | ||
}); |