Skip to content

Mister-Kin/BatchTools

Repository files navigation

Language: EN CN

Batch Tools

Shell Type License

Introduction

Some batch scripts for easily doing work.

Features

  • ffmpeg.sh
    • 个人工作:批量操作媒体资源
      • 给图片添加版权文字水印并压缩
      • 给视频添加文字版权水印(libx264)
      • 图片序列导出mp4格式视频(libx264)
      • 重编码视频导出mp4格式视频(libx264)
      • 添加字幕(硬编码,libx264)
      • 显卡加速将图片序列合成为视频(不再维护该功能)
    • 压缩媒体资源
      • 压缩图片(原格式压缩或者转换为webp格式)
      • 压缩视频,转换为hevc编码的mp4格式(libx265)
    • 图片转换器:图片格式互转
      • 图片转png格式
    • 视频转换器:视频格式互转
      • 视频转mp4格式
    • 音频转换器:音频格式互转
      • 无损音频转m4a格式
    • 音频元数据标签工具
      • 根据元数据标签重命名音频文件
      • 根据音频文件名修改元数据标签
      • 设置音频文件的专辑名
      • 设置音频文件的歌曲名
      • 设置音频文件的歌手名
    • 音频封面图工具:获取、添加、删除
      • 获取音频封面图
      • 添加音频封面图
      • 删除音频封面图
    • 媒体资源工具:合并、分割、缩放
      • 合并音视频:mp4+m4a/mp3
      • 分割视频
  • text.sh
    • 合并文本文件
      • 合并文本文件(文件首尾拼接)
      • 合并文本文件(逐行拼接合并)
  • ffmpeg.bat(no longer maintain bat)
    • 给图片添加版权水印并压缩
    • 图片压缩:转 webp
    • 合并音视频:mp4 + m4a
    • 视频转封装:flv -> mp4
    • 视频压缩:转 hevc 编码(libx265)
    • 显卡加速图片序列合成视频:普通录屏(jpg + wav -> h264_nvenc + aac)
    • 显卡加速图片序列合成视频:CG(png + wav -> h264_nvenc + aac)

Usage

Jump to Documentation Page

  1. Clone this repo to local machine.
  2. Add the path of FFmpeg executable binary to the system environment variable PATH.
  3. Type the following command in a shell terminal to execute the script file and follow the prompts.

cd drive:/path/BatchTools/ && ./ffmpeg.sh

The drive:/path in the above command depends on actual file path.

Author

BatchTools © Mr. Kin, all files released under the WTFPL license.

Authored and maintained by Mr. Kin.

Blog · GitHub · Weibo · Zhihu · AcFun · Bilibili · Youku · Headline · YouTube