album-splitter icon indicating copy to clipboard operation
album-splitter copied to clipboard

Fixed cover art being dropped on file split

Open leoncvlt opened this issue 3 years ago • 0 comments

Noticed that even though my source file had an embedded cover art, it was being lost during the split. This fix involves:

  • Removing the -an flag from the split command (as the cover art is embedded in a video stream, we need the video now)
  • Moving the -ss -t flags before the -i (See https://superuser.com/questions/758338/keep-album-art-with-ffmpeg-while-cutting-a-mp3-file)

Because of how the ffmpy library syntax works, that wasn't possible by keeping a single source file, so I had to split the split (heh) process into one ffmpeg command for each track - it's a tad bit slower, but can't think of another way to do this.

leoncvlt avatar Dec 18 '21 19:12 leoncvlt