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 🙏

© 2026 – Pkg Stats / Ryan Hefner

ffmpeg-script

v0.0.3

Published

ffmpeg-script

Readme

ffmpeg-script

基于ffmpeg的一键脚本命令,实现特定需求的一键操作

使用说明

使用前先确保你电脑已经安装了:ffmpeg

基本工作原理为执行ffmpeg的相关命令,例如:

# 将音视频文件进行快速的合并操作
ffmpeg -i out.mp4 -i out.aac -vcodec copy -acodec copy new.mp4

# 将flv文件快速转换成mp4文件
ffmpeg -i input.flv -vcodec copy -acodec copy output.mp4

特性

  • 支持批量处理
  • 不重新编码,快速处理
  • 自动检测是否存在相关文件
  • 自动跳过已处理完成的文件
  • 可随时终止,无需担心出错
  • 一个场景一条命令,简单快捷

安装脚本

# npm
npm install ffmpeg-script --global

# yarn

yarn global add ffmpeg-script

中国大陆用户可使用阿里源进行加速安装

# npm
npm install ffmpeg-script --global --registry=https://registry.npmmirror.com

# yarn

yarn global add ffmpeg-script --registry=https://registry.npmmirror.com

使用脚本

去到存在相关文件的目录,直接运行对应命令即可

# 批量音视频文件合并
audioVideoMerger
# 或者
avm

# 批量将flv文件转换成mp4文件
flv2mp4

批量音视频文件合并

脚本支持对存在音视频文件的目录下的文件进行批量的自动合并,主要用于合并通过h5player for tampermonkey 脚本下载回来的音视频文件

也支持其它符合命名规则的音视频文件,当目录存在如下规则的文件,即可使用命令进行批量合并:

  • 基础文件名一致
  • 音频文件以_audio.xxx(后缀格式不限)
  • 视频文件以_video.xxx(后缀格式不限)

如:

demo1_audio.mp4
demo1_video.mp4

demo2_audio.webm
demo2_video.webm

demo3_audio.mp3
demo3_video.mp4

合并命令:

# 批量音视频文件合并
audioVideoMerger

# 为了方便,也支持命令的简写
avm

批量将flv文件转换成mp4文件

脚本支持对下载或录制回来的flv文件批量转换成mp4文件,

转换命令:

flv2mp4

# 或者
flvtomp4

本地调试

将当前项目安装到全局

npm i -g .

将当前项目从全局中移除

npm uninstall -g .