2023-03-24 11:15:30 +01:00
|
|
|
# to_opus
|
2023-07-06 23:16:44 +02:00
|
|
|
converting all audiostreams in all files with given file extension in your current working directory and all subdirectories to opus.
|
|
|
|
The Script will choose an automatic bitrate for every audiostream dependent on the number of channels and the original bitrate.
|
2023-03-26 13:30:47 +02:00
|
|
|
See https://wiki.xiph.org/Opus_Recommended_Settings for more information about this.
|
|
|
|
|
2023-07-06 23:16:44 +02:00
|
|
|
If used on containers with video- or subtitlestreams, this skript will only convert the audiostream and copy all streams in a Matroska container.
|
2023-03-24 11:19:01 +01:00
|
|
|
|
2023-07-04 23:18:00 +02:00
|
|
|
### Examples
|
|
|
|
|
2023-03-26 13:27:44 +02:00
|
|
|
convert all files with .mp3-extension and .flac-extension to opus
|
2023-07-04 23:18:00 +02:00
|
|
|
```bash to_opus.sh -e mp3 -e flac```
|
2023-03-24 15:30:37 +01:00
|
|
|
|
2023-07-04 23:18:00 +02:00
|
|
|
convert all files to opus
|
|
|
|
```bash to_opus.sh -e "*"```
|
2023-03-24 17:05:03 +01:00
|
|
|
|
2023-07-06 23:16:44 +02:00
|
|
|
convert the audiostream of an movie
|
|
|
|
```bash to_opus.sh -e mp4```
|
|
|
|
|
2023-07-04 23:18:00 +02:00
|
|
|
### Dependencies
|
2023-07-06 22:56:12 +02:00
|
|
|
- ffmpeg
|
2023-07-06 23:16:44 +02:00
|
|
|
- Bash 4^
|
|
|
|
|
|
|
|
### Why opus?
|
|
|
|
|
|
|
|
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.
|
|
|
|
|
|
|
|
![Opus Quality comparison with other formats](https://upload.wikimedia.org/wikipedia/commons/0/01/Opus_quality_comparison.svg)
|