Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/krzysztoff1/batch-video-converter
https://github.com/krzysztoff1/batch-video-converter
Last synced: 2 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/krzysztoff1/batch-video-converter
- Owner: krzysztoff1
- Created: 2023-10-21T13:38:38.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-10-21T15:46:02.000Z (over 1 year ago)
- Last Synced: 2024-11-21T16:42:27.569Z (2 months ago)
- Language: Go
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# This Go script allows you to batch resize and compress videos using FFmpeg.
Prerequisites
FFmpeg: Ensure you have [FFmpeg](https://www.ffmpeg.org/) installed on your system.
Go: Ensure you have [Go](https://go.dev/) installed on your system.**Usage**
```bash
go run main.go --input <> --output <>
```--input: Path to the folder containing the videos you want to resize and compress.
--output: Path to the folder where the resized and compressed videos will be saved.**Example**
```bash
go run main.go --input /path/to/input/videos --output /path/to/output/videos
```Output:
```bash
Finished in 20s seconds
File: example.mov
Input file size: 45.0 MiB
Output file size: 1.4 MiB
Saved: 43.7 MiB
```This will resize and compress all the videos in the specified input folder and save the processed videos in the output folder.