h2non/videoshow là dự án chuyên xử lý ảnh trên GitHub với 904 sao, viết chủ yếu bằng JavaScript. Simple node.js utility to create video slideshows from images with optional audio and visual effects using ffmpeg
Tóm tắt dựng từ metadata GitHub của chính dự án — chưa có bài review TopGit. Trang sẽ tự động cập nhật khi bài review đầy đủ được xuất bản.
VÌ SAO CHƯA CÓ REVIEW
TopGit viết bài đầy đủ cho repo có nhiều sao nhất và được yêu cầu nhiều nhất. Trang này là snapshot trong thời gian chờ — xem README gốc ở tab READ ME.
Simple utility for node.js to create straightforward video slideshows based on images using ffmpeg, with additional features such as audio, subtitles and fade in/out transitions between slides.
To getting started you can take a look to the examples, programmatic API and command-line interface
videoshow is used in production rendering thousands of videos per month.
Click on the image to see an example video generated by videoshow:
Requirements
ffmpeg with additional compilation flags --enable-libass --enable-libmp3lame
You can download static builds of ffmpeg from here.
If you want to use videoshow in Heroku, you could use the ffmpeg2 buildpack
Installation
npm install videoshow
For command-line usage, install it as global package:
npm install -g videoshow
Usage
NOTE: images must all have the same dimensions.
Below you have an example script generating a video based on images and audio.
Take a look to the programmatic API and examples for more usage details.
var videoshow = require('videoshow')
var images = [
'step1.jpg',
'step2.jpg',
'step3.jpg',
'step4.jpg'
]
var videoOptions = {
fps: 25,
loop: 5, // seconds
transition: true,
transitionDuration: 1, // seconds
videoBitrate: 1024,
videoCodec: 'libx264',
size: '640x?',
audioBitrate: '128k',
audioChannels: 2,
format: 'mp4',
pixelFormat: 'yuv420p'
}
videoshow(images, videoOptions)
.audio('song.mp3')
.save('video.mp4')
.on('start', function (command) {
console.log('ffmpeg process started:', command)
})
.on('error', function (err, stdout, stderr) {
console.error('Error:', err)
console.error('ffmpeg stderr:', stderr)
})
.on('end', function (output) {
console.error('Video created in:', output)
})
Command-line interface
$ videoshow --help
Create video slideshow easily from images
Usage: bin/videoshow [options]
Options:
--help, -h Show help
--config, -c File path to JSON config file [required]
--audio, -a Optional audio file path
--subtitles, -s Path to .srt subtitles file
--input, -i Add additional input to video
--output, -o Output video file path
--size, -x Video size resolution
--logo, -l Path to logo image
--debug, -d Enable debug mode in error case
Examples:
bin/videoshow -c config.json video.mp4
bin/videoshow -c config.json --audio song.mp3 video.mp4
bin/videoshow -c config.json --audio song.mp3 --logo logo.png video.mp4
Videoshow constructor. You should pass an array<string> or array<object> or array<ReadableStream> with the desired images,
and optionally passing the video render options object per each image.
Image formats supported are: jpg, png or bmp.
videoshow([ 'image1.jpg', 'image2.jpg', 'image3.jpg'])
.save('video.mp4')
.on('error', function () {})
.on('end', function () {})
images param could be a collection as well:
videoshow([{
path: 'image1.jpg',
caption: 'Hello world as video subtitle'
}, {
path: 'image2.jpg',
caption: 'This is a sample subtitle',
loop: 10 // long caption
}])
.save('video.mp4')
.on('error', function () {})
.on('end', function () {})
Video options
You can define as option any method name allowed by fluent-ffmpeg
h2non/videoshow có 904 sao GitHub — tải lại trang để xem số mới nhất, hoặc xem trực tiếp github.com/h2non/videoshow. TopGit phản chiếu số sao của GitHub nhưng không cam kết đến từng phút.
h2non/videoshow có những chủ đề gì?
GitHub topics của h2non/videoshow: "ffmpeg", "images", "mp3", "music", "presentation", "rendering", "slideshow", "subtitle", "video". TopGit xếp repo vào nhóm Image Tools.
h2non/videoshow còn đang phát triển không?
Commit gần nhất trên h2non/videoshow là 10 tháng trước (theo timestamp GitHub). Repo có 156 fork — một chỉ báo về mức độ quan tâm của cộng đồng.
h2non/videoshow là gì?
h2non/videoshow (h2non/videoshow) là dự án JavaScript trên GitHub. Theo mô tả gốc: Simple node.js utility to create video slideshows from images with optional audio and visual effects using ffmpeg
h2non/videoshow so với các dự án Image Tools khác thế nào?
h2non/videoshow được TopGit xếp vào nhóm Image Tools, với 904 sao GitHub và viết bằng JavaScript. Xem trang chủ đề Image Tools trên TopGit để so sánh với các dự án tương tự theo số sao và mức độ hoạt động.
h2non/videoshow viết bằng ngôn ngữ gì?
h2non/videoshow chủ yếu viết bằng JavaScript. Trường "language" của GitHub dựa trên phần lớn byte ở nhánh mặc định.
Vì sao h2non/videoshow được xếp vào nhóm Image Tools?
TopGit xếp h2non/videoshow vào nhóm Image Tools dựa trên GitHub topics và mô tả của repo (gắn thẻ: "ffmpeg", "images", "mp3"). Việc phân loại dựa trên metadata thật của repo, không phải đoán theo cảm tính biên tập.
Đọc đầy đủ README ở tab phía trên.
videoshow có đáng để bạn bỏ thời gian?
ChatGPT, Claude và Perplexity đều đọc được trang này. Hỏi thử xem họ nghĩ gì về videoshow.