1
0
Fork 0

Decrease max video download quality to 720p. Larger downloads were causing errors, slower to process, and unnecessary.

This commit is contained in:
capta1nseal 2024-09-15 19:22:23 +03:00
parent 544c8a9bab
commit fb0126547a
1 changed files with 4 additions and 4 deletions

View File

@ -25,12 +25,12 @@ export ORIG="$(pwd)";
cd "${TMP_DIR}" cd "${TMP_DIR}"
yt-dlp "${URL}" -o "${NAME}" yt-dlp "${URL}" -S "+height:720" -f "b" -o "${NAME}"
ffmpeg -i $2.* -filter_complex "[0:a]channelsplit=channel_layout=stereo[left][right]" -map '[left]' -f s8 -ac 1 -ar 48k "${ORIG}/${NAME}/left.s8" -map '[right]' -f s8 -ac 1 -ar 48k "${ORIG}/${NAME}/right.s8" ffmpeg -i $2* -filter_complex "[0:a]channelsplit=channel_layout=stereo[left][right]" -map '[left]' -f s8 -ac 1 -ar 48k "${ORIG}/${NAME}/left.s8" -map '[right]' -f s8 -ac 1 -ar 48k "${ORIG}/${NAME}/right.s8"
ffmpeg -i $2.* -vf fps=20 frame%04d.png ffmpeg -i $2* -vf fps=20 frame%04d.png
rm $2.* rm $2*
ls frame*.png | parallel 'echo {}; python3 ${ORIG}/cc-pic.py -W 164 -H 81 -p full {} ${ORIG}/${NAME}/{.}.cpi' ls frame*.png | parallel 'echo {}; python3 ${ORIG}/cc-pic.py -W 164 -H 81 -p full {} ${ORIG}/${NAME}/{.}.cpi'
rm frame*.png rm frame*.png