Fix album art script
This commit is contained in:
parent
5f0a8787b9
commit
5c14093d45
1 changed files with 6 additions and 3 deletions
|
@ -1,6 +1,9 @@
|
|||
#!/bin/sh
|
||||
!/bin/sh
|
||||
cover="cover.jpg"
|
||||
|
||||
for file in *; do
|
||||
ffmpeg -y -i $file -i $cover -map 0:a -map 1 -codec copy -metadata:s:v title="Album cover" -metadata:s:v comment="Cover (front)" -disposition:v attached_pic $file
|
||||
for file in *.flac; do
|
||||
ffmpeg -i "$file" -i "$cover" -map 0:a -map 1 -codec copy -metadata:s:v title="Album cover" -metadata:s:v comment="Cover (front)" -disposition:v attached_pic "temp-$file"
|
||||
|
||||
# Replace old file with new file
|
||||
mv "temp-$file" "$file"
|
||||
done
|
||||
|
|
Loading…
Reference in a new issue