utility: dewebm-folder

This commit is contained in:
adam 2025-01-10 20:33:19 -05:00
parent dc36c90901
commit 466822d57f
4 changed files with 19 additions and 7 deletions

View File

@ -1,6 +1,6 @@
#!/bin/bash
#!/bin/bash
. /etc/profile
. ~/.profile
. ~/.bashrc
function ytdlp(){
@ -12,11 +12,11 @@ function ytdlp(){
pushd "$1"
yt-dlp --output "%(upload_date)s - %(title)s - [%(id)s].%(ext)s" \
--format "[ext=mp4]+ba/best" \
--format "bv+ba/best" \
--download-archive "done.txt" \
--min-sleep-interval 0 --max-sleep-interval 10 \
$sponsorblock \
--exec "vidpath=\$(basename {}); vidpath=\$(echo \$vidpath | sed 's/^[0-9]\{8\} - //' | sed 's/- \[[a-zA-Z0-9]\+\]\.mp4//'); textmsg=\"archived video from $2: \$vidpath\"; /home/adam/bin/miscChat.sh \"\$textmsg\";" \
--exec "vidpath=\$(basename {}); vidpath=\$(echo \$vidpath | sed 's/^[0-9]\{8\} - //' | sed 's/- \[[a-zA-Z0-9]\+\]\.mp4//'); textmsg=\"archived video from $2: \$vidpath\"; miscChat.sh \"\$textmsg\";" \
$3
popd
}

12
bash/dewebm-folder.sh Executable file
View File

@ -0,0 +1,12 @@
#!/bin/bash
for f in *.webm
do
fullfilename=$(basename -- "$f")
extension="${fullfilename##*.}"
filename="${fullfilename%.*}"
ffmpeg -i "$f" "$filename.mp4"
echo "$f -> $filename"
sleep 3
rm "$f"
done

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 KiB

View File

@ -31,11 +31,11 @@
<div style="width:3840; height:2160; margin:0">
<div class="credit">
<div class="number">
[14]
[num]
</div>
<div class="text">
Zaha Hadid Architects' King Abdullah Petroleum Studies and Research Center<br />
<img class="src" src="youtube.png" />/ArchDaily
[title]<br />
[platform img][author]
</div>
</div>
</div>