https://github.com/egithinji/videoconverter
Small bash script for converting multiple video files from one format to another using ffmpeg
https://github.com/egithinji/videoconverter
bash bash-script ffmpeg shell
Last synced: about 2 months ago
JSON representation
Small bash script for converting multiple video files from one format to another using ffmpeg
- Host: GitHub
- URL: https://github.com/egithinji/videoconverter
- Owner: egithinji
- License: mit
- Created: 2022-07-01T10:24:41.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2022-07-03T17:15:38.000Z (almost 4 years ago)
- Last Synced: 2025-08-28T08:35:07.898Z (10 months ago)
- Topics: bash, bash-script, ffmpeg, shell
- Language: Shell
- Homepage:
- Size: 28.3 KB
- Stars: 1
- Watchers: 0
- Forks: 2
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Video Converter
Small bash script for converting a bunch of video files from one format to another using ffmpeg.
## Run
0. Make sure you have [ffmpeg](https://ffmpeg.org/) installed.
1. Put the script in the directory containing your video files.
2. Make it executable `chmod +x converter.sh`
3. Run it with the source file format as first argument and target file format as second argument e.g: `./converter.sh avi mp4`



## Note
Currently it only recurses one level of directories i.e.
```
/MyDirectory
|
converter.sh //Put the script here
|
videofile //All these will be converted
videofile
...
/Folder1
videofile //All these will be converted
videofile
...
/Folder2
videofile //All these will be converted
videofile
...
/Converted
//converted files will be put here
```
# Todo
- [ ] Add fast/slow argument for selecting between copying (fast) or re-encoding (slow) options in ffmpeg
- [x] Add argument for specifying directory to run in
- [ ] Error message if non-supported video formats entered
- [ ] Percentage complete should be on same line
- [ ] Add multiple recursion