new scripts
This commit is contained in:
parent
5f8bc83090
commit
f581c15066
4 changed files with 30 additions and 2 deletions
10
scripts/server_bin/bsky_follow.sh
Executable file
10
scripts/server_bin/bsky_follow.sh
Executable 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
|
||||||
|
|
5
scripts/server_bin/decode_local.sh
Executable file
5
scripts/server_bin/decode_local.sh
Executable 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
|
|
@ -1,8 +1,8 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
for i in `fdfind -d=1 --extension=mp4`; do
|
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
|
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"
|
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"
|
rm --verbose "$i" ; mv --verbose "${i}_30.mp4" "$i"
|
||||||
else
|
else
|
||||||
echo " << no edit for "$i""
|
echo " << no edit for "$i""
|
||||||
fi
|
fi
|
||||||
|
|
13
scripts/server_bin/update_bluesky.sh
Executable file
13
scripts/server_bin/update_bluesky.sh
Executable 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
|
Loading…
Add table
Add a link
Reference in a new issue