https://github.com/xinwu-yang/trans
简单易用的批量转码小工具
https://github.com/xinwu-yang/trans
tool video-encoding
Last synced: 5 months ago
JSON representation
简单易用的批量转码小工具
- Host: GitHub
- URL: https://github.com/xinwu-yang/trans
- Owner: xinwu-yang
- Created: 2022-07-13T16:04:12.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2025-03-23T08:12:19.000Z (about 1 year ago)
- Last Synced: 2025-03-23T09:20:35.802Z (about 1 year ago)
- Topics: tool, video-encoding
- Language: Go
- Homepage:
- Size: 25.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Media transcoding tool
### 功能
- 指定目录下视频转码`av1`
- 指定目录下音频转码`aac`
- 像素格式转化为`yuv420p`
- 声道数量变更为`2`
- 支持GPU加速
- 支持递归目录
- 支持处理完成后删除源文件
### 如何使用
1. 下载[FFmpeg](https://www.gyan.dev/ffmpeg/builds/)
2. 配置把ffmpeg下`bin`目录添加到系统PATH环境变量
3. 使用trans.exe
```
# 构建
go build
# 使用帮助
trans.exe -h
Usage of trans.exe:
-D 处理完成后是否删除源文件
-d string
视频路径 (default "./")
-p string
指定pattern跳过处理(文件名) (default "NOT-HANDLE")
-r 是否递归子目录(useage: -r=false) (default true)
-vc string
视频编码 (default "av1_nvenc")
# 基本使用
trans.exe -d "D:\\demo-video\\test"
# 使用hevc_nvenc转码
trans.exe -d "D:\\demo-video\\test" -vc hevc_nvenc
```