new scripts

This commit is contained in:
Stefen Auris 2024-02-19 12:27:52 -05:00
parent 5f8bc83090
commit f581c15066
4 changed files with 30 additions and 2 deletions

View file

@ -0,0 +1,10 @@
#!/bin/bash
target=/home/stev/Pictures/gallery-dl/bluesky/follow.txt
#edit follows file in place
sed -n -i '/^@/p' $target
sed -ie 's/^.//' $target
#loop through the list and download
for i in `cat $target`; do
gallery-dl --sleep 1-3 "https://bsky.app/profile/$i"
done

View file

@ -0,0 +1,5 @@
#!/bin/bash
for i in `fdfind -d=1 --extension=mp4`; do
snap run ffmpeg -hide_banner -hwaccel cuda -hwaccel_output_format cuda -i "$i" -c:a copy -c:v h264_nvenc "${i}_30.mp4" && \
rm --verbose "$i" ; mv --verbose "${i}_30.mp4" "$i"
done

View file

@ -1,8 +1,8 @@
#!/bin/bash
for i in `fdfind -d=1 --extension=mp4`; do
if [[ (( $(ffprobe -show_streams "$i" 2>&1 | grep fps | awk '{split($0,a,"fps")}END{print a[1]}' | awk '{print $NF}') > 30 )) ]]; then
snap run ffmpeg -hide_banner -hwaccel cuda -hwaccel_output_format cuda -i "$i" -c:a copy -c:v h264_nvenc -filter:v fps=30 "${i}_30.mp4"
#&& \ rm --verbose "$i" ; mv --verbose "${i}_30.mp4" "$i"
snap run ffmpeg -hide_banner -hwaccel cuda -hwaccel_output_format cuda -i "$i" -c:a copy -c:v h264_nvenc -filter:v fps=30 "${i}_30.mp4" && \
rm --verbose "$i" ; mv --verbose "${i}_30.mp4" "$i"
else
echo " << no edit for "$i""
fi

View file

@ -0,0 +1,13 @@
#!/bin/bash
rm ~/bsky_error.txt
cd $HOME/gallery-dl/bluesky/
echo ">>>> Begin Downloads"
#gallery-dl --abort 3 -o retweets=true "https://twitter.com/stefenauris"
#gallery-dl --abort 3 -o retweets=true "https://twitter.com/DaybreakHero"
for i in */; do
echo ">> $i"
date
gallery-dl --sleep 1-3 --abort 3 "https://bsky.app/profile/$i" || echo "$i" >> ~/bsky_error.txt
echo " << waiting"
sleep 6
done