media-tools/to_opus/README.md

33 lines
1.3 KiB
Markdown
Raw Permalink Normal View History

2023-07-25 15:03:31 +02:00
# to_opus
2023-07-25 16:29:30 +02:00
This script converts all audiostreams in all files with given file extension in your current working directory and all subdirectories to opus.
2023-07-27 00:01:28 +02:00
The Script will choose an automatic bitrate for every audiostream dependent on the number of channels and the original bitrate.[[1]](https://wiki.xiph.org/Opus_Recommended_Settings)
2023-07-25 15:03:31 +02:00
If used on containers with video- or multiple audiostreams, this skript will only convert the audiostream and copy all streams in a Matroska container.
2023-07-27 00:01:28 +02:00
## Flags
2023-07-25 15:03:31 +02:00
```-e``` defines the extension of the files that should be converted<br>
```-d``` deletes original files after conversion<br>
```-h``` show help (not implemented)
2023-07-27 00:01:28 +02:00
## Examples
2023-07-25 15:03:31 +02:00
2023-07-27 00:01:28 +02:00
convert all files in your current working directory and all subdirectorys<br>
2023-07-25 15:03:31 +02:00
```bash to_opus.sh -e "*"```
convert all files with .mp3-extension and .flac-extension to opus and deletes original files after that<br>
2023-07-27 00:01:28 +02:00
```bash to_opus.sh -e mp3 -e flac -d```
2023-07-25 15:03:31 +02:00
convert the audiostream of an movie<br>
```bash to_opus.sh -e mp4```
2023-07-27 00:01:28 +02:00
## Dependencies
2023-07-25 15:03:31 +02:00
- ffmpeg
- Bash 4^
2023-07-27 00:01:28 +02:00
## Why opus?
2023-07-25 15:03:31 +02:00
Opus is an open format and royalty free. It is FOSS.
It is supported on most platforms and has a better quality per bitrate then formats like mp3 or Vorbis.
2023-07-25 15:09:32 +02:00
![Opus Quality comparison with other formats](https://upload.wikimedia.org/wikipedia/commons/0/01/Opus_quality_comparison.svg)