peasy-video 0.2.0 → 0.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +13 -12
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
[](https://www.npmjs.com/package/peasy-video)
|
|
4
4
|
[](https://www.typescriptlang.org/)
|
|
5
5
|
[](https://opensource.org/licenses/MIT)
|
|
6
|
+
[](https://github.com/peasytools/peasy-video-js)
|
|
6
7
|
|
|
7
8
|
Video processing library for Node.js -- trim, resize, rotate, extract audio, generate thumbnails, convert to GIF, concatenate clips, adjust speed, and reverse video. FFmpeg-powered, TypeScript-first with full type safety. Handles MP4, WebM, MKV, AVI, MOV, and any container format supported by FFmpeg.
|
|
8
9
|
|
|
@@ -11,7 +12,7 @@ Built from [PeasyVideo](https://peasyvideo.com), a free online video toolkit wit
|
|
|
11
12
|
> **Try the interactive tools at [peasyvideo.com](https://peasyvideo.com)** -- video trimming, resizing, audio extraction, GIF conversion, and thumbnail generation
|
|
12
13
|
|
|
13
14
|
<p align="center">
|
|
14
|
-
<img src="
|
|
15
|
+
<a href="https://agentgif.com/tpsD7KFs"><img src="https://media.agentgif.com/tpsD7KFs.gif" alt="peasy-video demo — video info, thumbnail extraction, and format operations in Node.js" width="800"></a>
|
|
15
16
|
</p>
|
|
16
17
|
|
|
17
18
|
## Table of Contents
|
|
@@ -94,7 +95,7 @@ console.log(meta.hasAudio); // true
|
|
|
94
95
|
console.log(meta.bitrate); // 5000000
|
|
95
96
|
```
|
|
96
97
|
|
|
97
|
-
Learn more: [
|
|
98
|
+
Learn more: [Video Metadata & EXIF Data Explained](https://peasyvideo.com/guides/video-metadata-exif-data-explained/) · [What is Bitrate?](https://peasyvideo.com/glossary/bitrate-video/) · [What is a Keyframe?](https://peasyvideo.com/glossary/keyframe/)
|
|
98
99
|
|
|
99
100
|
### Trimming & Concatenation
|
|
100
101
|
|
|
@@ -117,7 +118,7 @@ const combined = await concatenate([
|
|
|
117
118
|
]);
|
|
118
119
|
```
|
|
119
120
|
|
|
120
|
-
Learn more: [
|
|
121
|
+
Learn more: [How to Trim & Cut Video in Browser](https://peasyvideo.com/guides/how-to-trim-cut-video-browser/) · [What is Trimming?](https://peasyvideo.com/glossary/trimming/) · [What is GOP?](https://peasyvideo.com/glossary/gop/)
|
|
121
122
|
|
|
122
123
|
### Resize & Transform
|
|
123
124
|
|
|
@@ -146,7 +147,7 @@ const rotated = await rotate("portrait.mp4", { degrees: 90 });
|
|
|
146
147
|
const flipped = await rotate("upside-down.mp4", { degrees: 180 });
|
|
147
148
|
```
|
|
148
149
|
|
|
149
|
-
Learn more: [
|
|
150
|
+
Learn more: [Video Aspect Ratios & Resolution Guide](https://peasyvideo.com/guides/video-aspect-ratios-resolution-guide/) · [Social Media Video Specs](https://peasyvideo.com/guides/social-media-video-specs/) · [What is Letterboxing?](https://peasyvideo.com/glossary/letterboxing/)
|
|
150
151
|
|
|
151
152
|
### Audio Extraction
|
|
152
153
|
|
|
@@ -165,7 +166,7 @@ const wav = await extractAudio("concert.mp4", "wav");
|
|
|
165
166
|
const silent = await stripAudio("presentation.mp4");
|
|
166
167
|
```
|
|
167
168
|
|
|
168
|
-
Learn more: [
|
|
169
|
+
Learn more: [How to Extract Audio from Video](https://peasyvideo.com/guides/how-to-extract-audio-from-video/) · [What is Transcoding?](https://peasyvideo.com/glossary/transcoding/) · [What is a Container Format?](https://peasyvideo.com/glossary/container-format/)
|
|
169
170
|
|
|
170
171
|
### Thumbnails
|
|
171
172
|
|
|
@@ -189,7 +190,7 @@ const frames = await thumbnails("video.mp4", 10, { width: 320 });
|
|
|
189
190
|
// Returns array of paths: ["/tmp/peasy-video-xxx-0.png", ...]
|
|
190
191
|
```
|
|
191
192
|
|
|
192
|
-
Learn more: [
|
|
193
|
+
Learn more: [Video Thumbnails Best Practices](https://peasyvideo.com/guides/video-thumbnails-best-practices/) · [Video Thumbnail Extraction Techniques](https://peasyvideo.com/guides/video-thumbnail-extraction-techniques/) · [What is Frame Rate?](https://peasyvideo.com/glossary/frame-rate/)
|
|
193
194
|
|
|
194
195
|
### GIF Conversion
|
|
195
196
|
|
|
@@ -210,7 +211,7 @@ const gif = await videoToGif("clip.mp4", {
|
|
|
210
211
|
const mp4 = await gifToVideo("animation.gif");
|
|
211
212
|
```
|
|
212
213
|
|
|
213
|
-
Learn more: [
|
|
214
|
+
Learn more: [GIF Creation & Optimization Guide](https://peasyvideo.com/guides/gif-creation-optimization-guide/) · [How to Create Animated GIFs from Video](https://peasyvideo.com/guides/how-to-create-animated-gifs-from-video/) · [Creating Seamless Video Loops](https://peasyvideo.com/guides/creating-seamless-video-loops/)
|
|
214
215
|
|
|
215
216
|
### Speed & Reverse
|
|
216
217
|
|
|
@@ -229,7 +230,7 @@ const slow = await speed("action.mp4", { factor: 0.5 });
|
|
|
229
230
|
const reversed = await reverseVideo("clip.mp4");
|
|
230
231
|
```
|
|
231
232
|
|
|
232
|
-
Learn more: [
|
|
233
|
+
Learn more: [Video Codecs Explained](https://peasyvideo.com/guides/video-codecs-explained/) · [What is Motion Estimation?](https://peasyvideo.com/glossary/motion-estimation/) · [What is Optical Flow?](https://peasyvideo.com/glossary/optical-flow/)
|
|
233
234
|
|
|
234
235
|
## TypeScript Types
|
|
235
236
|
|
|
@@ -315,10 +316,10 @@ Full API documentation at [peasyvideo.com/developers/](https://peasyvideo.com/de
|
|
|
315
316
|
|
|
316
317
|
## Learn More
|
|
317
318
|
|
|
318
|
-
- **Tools**: [Video
|
|
319
|
-
- **Guides**: [Video
|
|
320
|
-
- **Glossary**: [
|
|
321
|
-
- **Formats**: [MP4](https://peasyvideo.com/formats/mp4/) · [WebM](https://peasyvideo.com/formats/webm/) · [All Formats](https://peasyvideo.com/formats/)
|
|
319
|
+
- **Tools**: [Video Resolution Calculator](https://peasyvideo.com/video/video-resolution/) · [Video Bitrate Calculator](https://peasyvideo.com/video/video-bitrate/) · [Video Framerate Converter](https://peasyvideo.com/video/video-framerate/) · [Video Aspect Ratio Calculator](https://peasyvideo.com/video/video-aspect-ratio/) · [Video File Size Calculator](https://peasyvideo.com/video/video-filesize/) · [Video Codec Analyzer](https://peasyvideo.com/video/video-codec/) · [All Video Tools](https://peasyvideo.com/)
|
|
320
|
+
- **Guides**: [Video Codecs Explained](https://peasyvideo.com/guides/video-codecs-explained/) · [Video Compression for Web Delivery](https://peasyvideo.com/guides/video-compression-web-delivery/) · [GIF Creation & Optimization Guide](https://peasyvideo.com/guides/gif-creation-optimization-guide/) · [H.264 vs H.265 vs AV1 Comparison](https://peasyvideo.com/guides/h264-vs-h265-vs-av1-comparison/) · [Video Thumbnails Best Practices](https://peasyvideo.com/guides/video-thumbnails-best-practices/) · [Social Media Video Specs](https://peasyvideo.com/guides/social-media-video-specs/) · [Frame Rate Guide: 24, 30, 60 fps](https://peasyvideo.com/guides/frame-rate-guide-24-30-60-fps/) · [All Guides](https://peasyvideo.com/guides/)
|
|
321
|
+
- **Glossary**: [H.264](https://peasyvideo.com/glossary/h264/) · [H.265](https://peasyvideo.com/glossary/h265/) · [AV1](https://peasyvideo.com/glossary/av1/) · [Frame Rate](https://peasyvideo.com/glossary/frame-rate/) · [Container Format](https://peasyvideo.com/glossary/container-format/) · [Keyframe](https://peasyvideo.com/glossary/keyframe/) · [Transcoding](https://peasyvideo.com/glossary/transcoding/) · [Color Grading](https://peasyvideo.com/glossary/color-grading/) · [All Terms](https://peasyvideo.com/glossary/)
|
|
322
|
+
- **Formats**: [MP4](https://peasyvideo.com/formats/mp4/) · [WebM](https://peasyvideo.com/formats/webm/) · [MKV](https://peasyvideo.com/formats/mkv/) · [AVI](https://peasyvideo.com/formats/avi/) · [MOV](https://peasyvideo.com/formats/mov/) · [GIF](https://peasyvideo.com/formats/gif/) · [All Formats](https://peasyvideo.com/formats/)
|
|
322
323
|
- **API**: [REST API Docs](https://peasyvideo.com/developers/) · [OpenAPI Spec](https://peasyvideo.com/api/openapi.json)
|
|
323
324
|
|
|
324
325
|
## Also Available
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "peasy-video",
|
|
3
|
-
"version": "0.2.
|
|
4
|
-
"description": "Video processing library for Node.js
|
|
3
|
+
"version": "0.2.2",
|
|
4
|
+
"description": "Video processing library for Node.js — trim, resize, rotate, thumbnails, GIF conversion. FFmpeg-powered, TypeScript-first.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"types": "dist/index.d.ts",
|