ififfy / flipflip

Random slideshow of local images. Electron app for Mac/Windows/Linux
MIT License
155 stars 42 forks source link

MP3/ID3 files created with ffmpeg cannot be added to library #308

Open katzlbt opened 1 year ago

katzlbt commented 1 year ago

Files created with ... ffmpeg -i "$OUT" -vn -ac 2 -aq 5 -ar 22050 -f mp3 "$OUT2" cannot be added to the library. They contain ...

ffmpeg version 4.4.2 Copyright (c) 2000-2021 the FFmpeg developers
  Metadata:
    encoder         : Lavf58.29.100
  Duration: 00:01:07.06, start: 0.050113, bitrate: 39 kb/s
  Stream #0:0: Audio: mp3, 22050 Hz, stereo, fltp, 39 kb/s

file: Audio file with ID3 version 2.4.0, contains: MPEG ADTS, layer III, v2, 56 kbps, 22.05 kHz, Stereo

hexdump:

0000000 4449 0433 0000 0000 2300 5354 4553 0000
0000010 0f00 0000 4c03 7661 3566 2e38 3932 312e

od -Ax -N 10 -tx1 0000000 49 44 33 04 00 00 00 00 00 23

Platform: MacOS

Hope this helps.

Originally posted by @katzlbt in https://github.com/ififfy/flipflip/issues/295#issuecomment-1311311406

s-daveb commented 1 year ago

@katzlbt I thought I was experiencing something similar, but it turns out that FlipFlip doesn't like how ffmpeg encodes the cover art. Have you tried re-encoding with -vn ?

BigBahss commented 7 months ago

Well this really blows that I can't use any of my music that has album art embedded, and have to re-encode alternate files that can work with FlipFlip.

I absolutely love this app btw, you've done great work. Do we have any idea why FlipFlip doesn't like album art? I might be willing to look into this and see if I can fix it, but any info about it would be wonderful, if possible.