diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2018-06-12 11:36:49 +0200 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2018-06-12 11:36:49 +0200 |
commit | 80713a492f6936866ce1331d27b429105ead558f (patch) | |
tree | 91a8d3e6353c239c6df4c0788f9c0e3a8e739f3d /odin/strm/download_youtube | |
parent | 848346bb28de844f6c70a99356d48667849e8477 (diff) | |
download | nixos-80713a492f6936866ce1331d27b429105ead558f.tar nixos-80713a492f6936866ce1331d27b429105ead558f.tar.gz nixos-80713a492f6936866ce1331d27b429105ead558f.tar.bz2 nixos-80713a492f6936866ce1331d27b429105ead558f.tar.xz nixos-80713a492f6936866ce1331d27b429105ead558f.zip |
Prefer h264
Diffstat (limited to 'odin/strm/download_youtube')
-rw-r--r-- | odin/strm/download_youtube | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/odin/strm/download_youtube b/odin/strm/download_youtube index 921a29a7..c652be27 100644 --- a/odin/strm/download_youtube +++ b/odin/strm/download_youtube | |||
@@ -99,7 +99,7 @@ printf ">>> %s <<<\n %s\n" "${msgId}" "${message}" | |||
99 | exit 1 | 99 | exit 1 |
100 | fi | 100 | fi |
101 | 101 | ||
102 | formatString='bestvideo[width<=2560][height<=1440][fps<=60][vcodec=vp9]+bestaudio[acodec=opus]/bestvideo[width<=2560][height<=1440][fps<=60]+bestaudio/best[width<=2560][height<=1440][fps<=60]/best' | 102 | formatString='bestvideo[width<=2560][height<=1440][fps<=60][vcodec=h264]+bestaudio[acodec=aac]/bestvideo[width<=2560][height<=1440][fps<=60]+bestaudio/best[width<=2560][height<=1440][fps<=60]/best' |
103 | 103 | ||
104 | if [[ ${msgTags[(i)tv]} -le $#msgTags ]]; then | 104 | if [[ ${msgTags[(i)tv]} -le $#msgTags ]]; then |
105 | formatString="bestvideo[width<=2560][height<=1440][fps<=60][vcodec=h264]+bestaudio[acodec=aac]/bestvideo[width<=2560][height<=1440][fps<=60][vcodec=mpeg]+bestaudio[acodec=aac]/mp4[width<=2560][height<=1440][fps<=60][vcodec=h264][acodec=aac]/mp4[width<=2560][height<=1440][fps<=60][vcodec=mpeg][acodec=aac]/${formatString}" | 105 | formatString="bestvideo[width<=2560][height<=1440][fps<=60][vcodec=h264]+bestaudio[acodec=aac]/bestvideo[width<=2560][height<=1440][fps<=60][vcodec=mpeg]+bestaudio[acodec=aac]/mp4[width<=2560][height<=1440][fps<=60][vcodec=h264][acodec=aac]/mp4[width<=2560][height<=1440][fps<=60][vcodec=mpeg][acodec=aac]/${formatString}" |
@@ -251,7 +251,7 @@ printf ">>> %s <<<\n %s\n" "${msgId}" "${message}" | |||
251 | if [[ ${cType} == "video" ]]; then | 251 | if [[ ${cType} == "video" ]]; then |
252 | if [[ ${ext} == "mkv" ]]; then | 252 | if [[ ${ext} == "mkv" ]]; then |
253 | case ${cName} in | 253 | case ${cName} in |
254 | h264|vp9|png) | 254 | h264|png) |
255 | cargs+=(-c:${i} copy) | 255 | cargs+=(-c:${i} copy) |
256 | ;; | 256 | ;; |
257 | *) | 257 | *) |
@@ -259,7 +259,8 @@ printf ">>> %s <<<\n %s\n" "${msgId}" "${message}" | |||
259 | # prePass+=(-c:${i} libvpx-vp9 -b:${i} 0 -crf:${i} 33) | 259 | # prePass+=(-c:${i} libvpx-vp9 -b:${i} 0 -crf:${i} 33) |
260 | # p2args+=(-pass 2 -threads 8 -speed 2 -tile-columns 6 -frame-parallel 1 -auto-alt-ref 1 -lag-in-frames 25) | 260 | # p2args+=(-pass 2 -threads 8 -speed 2 -tile-columns 6 -frame-parallel 1 -auto-alt-ref 1 -lag-in-frames 25) |
261 | # cargs+=(-c:${i} libvpx-vp9 -b:${i} 0 -crf:${i} 33) | 261 | # cargs+=(-c:${i} libvpx-vp9 -b:${i} 0 -crf:${i} 33) |
262 | cargs+=(-c:${i} libvpx-vp9 -b:${i} 2M -threads 8 -tile-columns 6 -frame-parallel 1) | 262 | # cargs+=(-c:${i} libvpx-vp9 -b:${i} 2M -threads 8 -tile-columns 6 -frame-parallel 1) |
263 | cargs+=(-c:${i} libx264) | ||
263 | ;; | 264 | ;; |
264 | esac | 265 | esac |
265 | elif [[ ${ext} == "mp4" ]]; then | 266 | elif [[ ${ext} == "mp4" ]]; then |