utility: dewebm-folder
This commit is contained in:
parent
dc36c90901
commit
466822d57f
@ -1,6 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
. /etc/profile
|
. ~/.profile
|
||||||
. ~/.bashrc
|
. ~/.bashrc
|
||||||
|
|
||||||
function ytdlp(){
|
function ytdlp(){
|
||||||
@ -12,11 +12,11 @@ function ytdlp(){
|
|||||||
pushd "$1"
|
pushd "$1"
|
||||||
|
|
||||||
yt-dlp --output "%(upload_date)s - %(title)s - [%(id)s].%(ext)s" \
|
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" \
|
--download-archive "done.txt" \
|
||||||
--min-sleep-interval 0 --max-sleep-interval 10 \
|
--min-sleep-interval 0 --max-sleep-interval 10 \
|
||||||
$sponsorblock \
|
$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
|
$3
|
||||||
popd
|
popd
|
||||||
}
|
}
|
||||||
|
12
bash/dewebm-folder.sh
Executable file
12
bash/dewebm-folder.sh
Executable 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
|
BIN
utility web pages/Fandom.png
Normal file
BIN
utility web pages/Fandom.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.6 KiB |
@ -31,11 +31,11 @@
|
|||||||
<div style="width:3840; height:2160; margin:0">
|
<div style="width:3840; height:2160; margin:0">
|
||||||
<div class="credit">
|
<div class="credit">
|
||||||
<div class="number">
|
<div class="number">
|
||||||
[14]
|
[num]
|
||||||
</div>
|
</div>
|
||||||
<div class="text">
|
<div class="text">
|
||||||
Zaha Hadid Architects' King Abdullah Petroleum Studies and Research Center<br />
|
[title]<br />
|
||||||
<img class="src" src="youtube.png" />/ArchDaily
|
[platform img][author]
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user