Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Thumbnails for opus/ogg #207

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Thumbnails for opus/ogg #207

wants to merge 1 commit into from

Conversation

Shrecknt
Copy link

@Shrecknt Shrecknt commented May 3, 2024

opus and ogg seem to work fine using the flac thumbnail handler so I added that

before
Screenshot from 2024-05-02 21-39-03
after
Screenshot from 2024-05-02 21-38-51

@agersant
Copy link
Owner

agersant commented May 3, 2024

Thank you! Change looks good but do you happen to know why the thumbnails are squished on your screenshot? Do they always look like this for you? They're supposed to look like this:

image

@Shrecknt
Copy link
Author

Shrecknt commented May 3, 2024

ffprobe says the dimensions of the thumbnail image are 1280x720 so it's probably an issue with yt-dlp
although iirc there is a css property to crop the image to fit

@Shrecknt
Copy link
Author

Shrecknt commented May 4, 2024

I did some more testing and it looks like the flac handler fails for a lot of thumbnails
I tried parsing the METADATA_BLOCK_PICTURE header myself and its a lot more consistent but I'm not sure why
I made a branch at https://github.com/Shrecknt/polaris/tree/manually_read_thumbnail with the manual parsing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants