This commit is contained in:
2025-02-10 14:33:12 +00:00
parent 9d6cf0e29f
commit 14dd1c3a0a
7 changed files with 141 additions and 33 deletions

View File

10
scripts/album-cover.sh Executable file
View File

@@ -0,0 +1,10 @@
#!/usr/bin/bash
# Find the path of the mp3 file
mp3_path=$(ssh max@192.168.1.193 cmus-remote -Q | grep file | sed "s/file //" | tr " " "\\ ")
echo $mp3_path
# Extract the jpg of it
ssh max@192.168.1.193 ffmpeg -i '$mp3_path' -an -c:v copy file.jpg