npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

tools_batch_files

v1.0.40

Published

批处理视频工具

Downloads

49

Readme

批量上传脚本

1.目录结构

├─ index.js 处理视频的主函数

│ log.txt 日志

│ 点我批量上传视频.bat 可执行文件 │
├─excel\excel.xlsx 表格文件 │
├─imgs 图片物料 │ miz-watermark.png 水印图片 │
├─output 产物输出文件夹 │
├─src │ filterFail.js 处理图片的函数 │ index.js │
├─utils 工具 │ index.js │
└─video 源文件文件夹

2.使用说明

前置条件

  1. node 版本 v16.20.1
  2. 已安装最新版本ffmpeg 7.0+
  3. 全局安装包 tools_batch_files npm i tools_batch_files -g

启动脚本

  1. 拖动.bat文件到需要处理的目录下(图片或视频)。
  2. 确保excel文件存在
  3. 点击“点我批量上传xx.bat”开始脚本
  4. error.txt和log.txt-----错误日志和普通日志。

功能

1. 批量处理视频

  1. 压缩视频 720p
  2. 压缩视频(带水印)
  3. 5截图
  4. 5截图(水印)
  5. 打包

2. 批量处理图片

  1. 生成预览图 1280
  2. 生成水印预览图

3.下个版本的优化点

  • 尝试在内存中处理 stream