jeanslack / Videomass

Videomass is a free, open source and cross-platform GUI for FFmpeg and yt-dlp
https://jeanslack.github.io/Videomass/
GNU General Public License v3.0
1.04k stars 49 forks source link

Add Album art to Audio files #352

Closed MonsterSe7en closed 1 month ago

MonsterSe7en commented 1 month ago

Thanks for taking the time to submit a feature request!

Make sure you are using the most recent version of Videomass
Perhaps your feature request has already been implemented. The most recent version can be downloaded from Github

Thank you

And sir. I want to thank you for taking the time to develop this program. It's super useful

Would be useful if you could add an option to add an album art (An image) to audio files. I had to make a batch script to do it.

[!note] @echo off for %%i in (*.m4a) do ( ffmpeg -i "%%i" -i "album_art.jpg" -c copy -map 0 -map 1 -disposition:v:0 attached_pic "%%~ni_temp.m4a" move /y "%%~ni_temp.m4a" "%%i" )

I tried making various edits to the Profile file but I couldn't get it to add the album art

image

jeanslack commented 1 month ago

HI @MonsterSe7en

You're on the right track: your command works, but it seems that the full path to the "album_art.jpg" file is missing.

Then you should complete the dialog forms (name, description, and output format (output audio format in this case).

MonsterSe7en commented 1 month ago

Yes, the name and dialog forms were completed. Didn't work, Videomass executes the commands but I don't get the intended result (The m4a files are generated but they don't have the album art)

And with regards to the output audio format, it generally populates with the container name I choose, I prefer removing that as the message says leave blank if you want a copy of source (I've tried with the field left populated and blank, no difference).

I'm assuming this is user error from my end or has something to do with the filepath not working well with videomass.

Sharing a screenshot with the complete information

image

But please check if you can add another field to choose an album art

jeanslack commented 1 month ago

And with regards to the output audio format, it generally populates with the container name I choose, I prefer removing that as the message says leave blank if you want a copy of source (I've tried with the field left populated and blank, no difference).

Sure!

Also remove the -vn flag otherwise it will not include the image on the audio file. FFmpeg treats image files as video frames.

For completeness: -i "F:\Videos\Folder Name\Album Art.jpg" -map 0 -map 1 -c copy -disposition:v:0 attached_pic -sn -map_metadata 0

MonsterSe7en commented 1 month ago

oh!! Thank you.

-i "F:\Temp\IMG_20210301_232028_100.jpg" -map 0 -map 1 -c copy -disposition:v:0 attached_pic -sn -map_metadata 0

I tried, It renders the audio file (Which works fine) but no album art... 😢😢

(But it works fine and gives me the expected result if I send the argument via Command line directly to ffmpeg with no issues)... 🧐

image

Oh. Well... I appreciate your time and patience. Thank you

And I'll leave this classic meme that's plagued us coders for decades!!

raf,750x1000,075,t,322e3f_696a94a5d4 u2

Cheers MonsterSe7en

jeanslack commented 1 month ago

I updated the presets by including some profiles to be able to add album art to audio files in mp3, m4a, mp4, flac, ogg formats. These profiles can be found in the Utilities preset from Videomass version 5.0.18, or you can download them individually here.

I hope they can be useful to you. Cheers