This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| local mp = require 'mp' | |
| local options = require 'mp.options' | |
| -- Configuration (override via script-opts, e.g. in mpv.conf: | |
| -- script-opts-append=autovsr-rtx_hdr_peak=700 | |
| -- script-opts-append=autovsr-hdr_default=no | |
| -- | |
| -- rtx_hdr_peak: match "Peak brightness (nits)" in the NVIDIA Control | |
| -- Panel's RTX Video HDR settings; mpv guesses 1000 otherwise. | |
| -- vsr_default / hdr_default: whether each feature starts enabled. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # Version 1.0 2016-06-03 https://gist.github.com/kus/318f21b840df0b7a6377563ce717c184 | |
| # MIT license | |
| # Prerequisites: | |
| # Homebrew: http://brew.sh/ | |
| # Install FFmpeg via Homebrew: brew install ffmpeg --with-fdk-aac --with-ffplay --with-freetype --with-libass --with-libquvi --with-libvpx --with-theora --with-libogg --with-libvorbis --with-opus --with-x265 | |
| # Make the script executable: sudo chmod u+x convert-video.sh | |
| # Run: ./convert-video.sh |