Skip to content

Instantly share code, notes, and snippets.

@Heshmatkhah
Forked from arash16/download-all.sh
Created October 14, 2024 12:00
Show Gist options
  • Save Heshmatkhah/22ca6caff05e69ebaa8996d5975f19f6 to your computer and use it in GitHub Desktop.
Save Heshmatkhah/22ca6caff05e69ebaa8996d5975f19f6 to your computer and use it in GitHub Desktop.
index=0
lines=$(cat $1)
for link in $lines; do
echo $link
(( index++ ))
title=$(yt-dlp --dump-json "$link" | jq -r ".title" | sed -e 's/[\/]/-/g')
file="$index - $title.mp4"
echo $file
if [ -f "$file" ]; then
continue;
fi
auto-editor "$link" \
-o "$file" \
--margin 0.5s \
--video-speed 1.23 --silent-speed 8 \
--edit audio:0.005,stream=all -c:v hevc -b:v 512K \
--yt-dlp-extras "-S res:480" \
--no-open
done
# ./download-all.sh links.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment