media-tools/to_vp9/README.md

47 lines
2.1 KiB
Markdown
Raw Permalink Normal View History

2023-07-25 15:09:32 +02:00
# to_vp9
2023-07-27 00:01:28 +02:00
**This Script is unfinished and not ready for usage.**
This script converts all videostreams in all files with given file extension in your current working directory and all subdirectories to vp9 using the Matroska container.
2023-07-25 16:29:30 +02:00
2023-07-25 17:14:47 +02:00
The standard settings are in my opinion good for personal storage of movies. Feel free to change them or suggest changes. Later there will be options in the script to change the default behavior.
2023-07-25 16:29:30 +02:00
2023-07-27 00:01:28 +02:00
If used on containers with subtitles or audiostreams, this skript will only convert the videostream and copy the other streams.
## Flags
```-e``` defines the extension of the files that should be converted<br>
2023-07-27 00:13:08 +02:00
```-d``` deletes original files after conversion<br>
2023-07-27 00:01:28 +02:00
```-h``` show help (not implemented)
## Examples
convert all videostreams in all files to vp9<br>
```bash to_vp9.sh -e "*"```
convert the videostream of an movie<br>
```bash to_opus.sh -e mp4```
2023-07-25 17:14:47 +02:00
2023-07-27 00:01:28 +02:00
## Dependencies
- ffmpeg
- Bash 4^
2023-07-25 16:29:30 +02:00
2023-07-27 00:01:28 +02:00
## Encoders
2023-07-25 17:14:47 +02:00
2023-07-27 00:01:28 +02:00
### libvpx-vp9
Needs a ffmpeg built with ```--enable-libvpx```
2023-07-25 17:14:47 +02:00
- https://trac.ffmpeg.org/wiki/Encode/VP9
2023-07-25 18:26:16 +02:00
- https://ffmpeg.org/ffmpeg-codecs.html#libvpx
2023-07-25 17:14:47 +02:00
2023-07-27 00:01:28 +02:00
### VP9_vaapi
2023-07-25 16:29:30 +02:00
2023-07-27 00:01:28 +02:00
needs libva and [Hardware video acceleration](https://wiki.archlinux.org/title/Hardware_video_acceleration) available in your system. Try vainfo in your terminal for verification.
2023-07-25 16:29:30 +02:00
- https://ffmpeg.org/ffmpeg-all.html#VAAPI-encoders
- https://trac.ffmpeg.org/wiki/Hardware/VAAPI
2023-07-27 00:01:28 +02:00
### VP9_qsv
2023-07-25 16:29:30 +02:00
2023-07-27 00:01:28 +02:00
needs [Hardware video acceleration](https://wiki.archlinux.org/title/Hardware_video_acceleration) with QuickSync and ffmpeg-build with ```--enable-libmfx``` or ```--enable-libvpl```.
2023-07-25 16:29:30 +02:00
- [Differences between libvpl and libmfx](https://www.intel.com/content/www/us/en/developer/articles/technical/onevpl-in-ffmpeg-for-great-streaming-on-intel-gpus.html)
- https://ffmpeg.org/ffmpeg-all.html#QSV-Encoders
- https://trac.ffmpeg.org/wiki/Hardware/QuickSync
- https://www.intel.com/content/www/us/en/developer/articles/technical/common-bitrate-control-methods-in-intel-media-sdk.html
- https://www.intel.com/content/www/us/en/developer/articles/technical/advanced-bitrate-control-methods-in-intel-media-sdk.html