Rockbox.org home
Downloads
Release release
Dev builds dev builds
Extras extras
themes themes
Documentation
Manual manual
Wiki wiki
Device Status device status
Support
Forums forums
Mailing lists mailing lists
IRC IRC
Development
Bugs bugs
Patches patches
Dev Guide dev guide
translations translations
Search



Donate

Rockbox Technical Forums


Login with username, password and session length
Home Help Search Staff List Login Register
News:

Welcome to the Rockbox Technical Forums!

+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  User Interface and Voice
| | |-+  Album art dispalying in black and white
« previous next »
  • Print
Pages: [1]

Author Topic: Album art dispalying in black and white  (Read 3286 times)

Offline NO_ob

  • Member
  • *
  • Posts: 8
Album art dispalying in black and white
« on: August 14, 2024, 03:41:41 AM »
I have been getting some mp3s using the command

yt-dlp https://www.youtube.com/watch?v=YHDfpBwxeVU --ppa "ThumbnailsConvertor+FFmpeg_o:-c:v mjpeg -vf crop=\"'if(gt(ih,iw),iw,ih)':'if(gt(iw,ih),ih,iw)'\"" --embed-thumbnail -f bestaudio -x --audio-format mp3 --audio-quality 320k

Ive noticed that a lot of the album art display in black and white, this issue seems to be exclusive to rockbox as it doesn't happen in gnome or in the Sony E474 firmware, I have tested this on both an Ipod classic 6th gen and sony E474
Logged

Offline Dook

  • Member
  • *
  • Posts: 63
    • D00k.net
Re: Album art dispalying in black and white
« Reply #1 on: August 14, 2024, 09:56:02 AM »
It's probably whatever the command is doing with the image. If you're using linux, I recommend using an app like Ear Tag to save the album art, edit it in GIMP and then reapply it.

Resize it to around 320x320 px, and then export it as a non-progressive non-multiline jpeg.
Logged

Offline NO_ob

  • Member
  • *
  • Posts: 8
Re: Album art dispalying in black and white
« Reply #2 on: August 14, 2024, 10:16:33 AM »
Problem is im using this to download a playlist of like 200 files and set the video thumbnail as the image, guess ill try different ffmpeg settings

okay played around with it a little the size isn't a problem as 320px is still b/w opening that in gimp and saving as non progressive jpeg does make colors work just gotta find a way to make yt-dlp do it
« Last Edit: August 14, 2024, 10:40:38 AM by NO_ob »
Logged

Offline dconrad

  • Developer
  • Member
  • *
  • Posts: 273
Re: Album art dispalying in black and white
« Reply #3 on: August 14, 2024, 02:09:17 PM »
If it's being saved as progressive, then rockbox is definitely not using it at all, and instead using something else. Perhaps it's falling back to the image in the same folder, and that one is b&w? Or the other way around. Just a thought.
Logged

Offline NO_ob

  • Member
  • *
  • Posts: 8
Re: Album art dispalying in black and white
« Reply #4 on: August 15, 2024, 11:29:22 AM »
it loads from the file and is black and white no extra image in the folder, the way i saw changing from progressive to non progressive fixed colour was using the image viewer
Logged

Offline Frankenpod

  • Member
  • *
  • Posts: 787
Re: Album art dispalying in black and white
« Reply #5 on: August 15, 2024, 11:41:43 AM »
Quote from: NO_ob on August 14, 2024, 10:16:33 AM
opening that in gimp and saving as non progressive jpeg does make colors work just gotta find a way to make yt-dlp do it

Pretty sure there are utilities that can mass convert all the images in a folder-tree from progressive jpg to normal jpg.  I did that at one point (at the same time as converting all the png album art, which also isn't RB-friendly).  Only had to do it as a one-off, though, and can't now remember what utility I used for it.  Some freeware/open-source art utility.
Logged

Offline NO_ob

  • Member
  • *
  • Posts: 8
Re: Album art dispalying in black and white
« Reply #6 on: August 15, 2024, 12:03:23 PM »
ill take a look at that, just been looking at the source for yt-dlp it is using ffmpeg to create the thumbnails and creating a jpeg using mjpeg2jpeg, maybe this isn't creating jepgs correctly? atleast for the rockbox decoder

https://www.ffmpeg.org/ffmpeg-bitstream-filters.html#mjpeg2jpeg
Logged

Offline NO_ob

  • Member
  • *
  • Posts: 8
Re: Album art dispalying in black and white
« Reply #7 on: August 16, 2024, 10:03:53 AM »
Managed to get working album art, it uses image magick to modify the thumbnail and then embeds it with eyeD3


yt-dlp -v --convert-thumb jpg --exec after_move:"magick -- %(thumbnails.-1.filepath)q -gravity Center -extent 1:1 %(thumbnails.-1.filepath)q && eyeD3 %(filepath)q --add-image %(thumbnails.-1.filepath)q:FRONT_COVER && rm %(thumbnails.-1.filepath)q" --write-thumb -x --audio-format mp3 --audio-quality 320k "https://www.youtube.com/watch?v=YHDfpBwxeVU"

« Last Edit: August 16, 2024, 10:16:46 AM by NO_ob »
Logged

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  User Interface and Voice
| | |-+  Album art dispalying in black and white
 

  • SMF 2.0.19 | SMF © 2021, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.191 seconds with 23 queries.