add scripts
This commit is contained in:
parent
da6833b55b
commit
a1d7377ca1
17 changed files with 265 additions and 45 deletions
13
.local/scripts/albumcover-update.bash
Executable file
13
.local/scripts/albumcover-update.bash
Executable file
|
|
@ -0,0 +1,13 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
for file in *.opus; do
|
||||
ffmpeg \
|
||||
-hide_banner \
|
||||
-i "${file}" -i "cover.jpg" \
|
||||
-map_metadata 0:s:a:0 -disposition attached_pic \
|
||||
-metadata date="$1" \
|
||||
-c:a copy "0${file}"
|
||||
|
||||
rm "$file"
|
||||
mv "0${file}" "${file#"0"}"
|
||||
done
|
||||
Loading…
Add table
Add a link
Reference in a new issue