Decrease max video download quality to 720p. Larger downloads were causing errors, slower to process, and unnecessary.
This commit is contained in:
parent
3583a347c2
commit
5662f536d7
|
@ -25,6 +25,7 @@ export ORIG="$(pwd)";
|
||||||
|
|
||||||
cd "${TMP_DIR}"
|
cd "${TMP_DIR}"
|
||||||
|
|
||||||
|
<<<<<<< HEAD
|
||||||
ffmpeg -i "${INPUT}" -filter_complex "[0:a]channelsplit=channel_layout=stereo[left][right]" -map '[left]' -f s8 -ac 1 -ar 48k "${OUTPUT}/left.s8" -map '[right]' -f s8 -ac 1 -ar 48k "${OUTPUT}/right.s8"
|
ffmpeg -i "${INPUT}" -filter_complex "[0:a]channelsplit=channel_layout=stereo[left][right]" -map '[left]' -f s8 -ac 1 -ar 48k "${OUTPUT}/left.s8" -map '[right]' -f s8 -ac 1 -ar 48k "${OUTPUT}/right.s8"
|
||||||
ffmpeg -i "${INPUT}" -vf fps=20 frame%04d.png
|
ffmpeg -i "${INPUT}" -vf fps=20 frame%04d.png
|
||||||
|
|
||||||
|
@ -32,9 +33,14 @@ ffmpeg -i "${INPUT}" -vf fps=20 frame%04d.png
|
||||||
ls frame*.png | parallel 'echo {}; python3 ${ORIG}/cc-pic.py -W 164 -H 81 -p cover {} ${OUTPUT}/{.}.cpi'
|
ls frame*.png | parallel 'echo {}; python3 ${ORIG}/cc-pic.py -W 164 -H 81 -p cover {} ${OUTPUT}/{.}.cpi'
|
||||||
=======
|
=======
|
||||||
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"
|
||||||
|
=======
|
||||||
|
yt-dlp "${URL}" -S "+height:720" -f "b" -o "${NAME}"
|
||||||
|
|
||||||
ffmpeg -i $2.* -vf fps=20 frame%04d.png
|
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"
|
||||||
rm $2.*
|
>>>>>>> fb01265 (Decrease max video download quality to 720p. Larger downloads were causing errors, slower to process, and unnecessary.)
|
||||||
|
|
||||||
|
ffmpeg -i $2* -vf fps=20 frame%04d.png
|
||||||
|
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'
|
||||||
>>>>>>> 544c8a9 (Swap to -p full.)
|
>>>>>>> 544c8a9 (Swap to -p full.)
|
||||||
rm frame*.png
|
rm frame*.png
|
||||||
|
|
Loading…
Reference in New Issue