summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--odin/strm/download_youtube7
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