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

Please write ytdl_option in json for 'square-cropped thumbnail' #589

Open
yogijero opened this issue Feb 8, 2025 · 3 comments
Open

Please write ytdl_option in json for 'square-cropped thumbnail' #589

yogijero opened this issue Feb 8, 2025 · 3 comments

Comments

@yogijero
Copy link

yogijero commented Feb 8, 2025

Not a tech-savvy here, can anyone guide me how can i have square thumbnails for the music.
While doing directly with yt-dlp command,
yt-dlp -x --audio-format mp3 --embed-thumbnail -v --convert-thumbnail jpg --ppa "EmbedThumbnail+ffmpeg_o:-c:v mjpeg -vf crop=\"'if(gt(ih,iw),iw,ih)':'if(gt(iw,ih),ih,iw)'\"" --exec ffprobe
seems to work, but don't know how to convert it in json. Any help would be appreciated.

@yogijero yogijero closed this as completed Feb 8, 2025
@yogijero yogijero changed the title please give insights as to how to write in json format for YTDL_OPTIONS x Feb 8, 2025
@yogijero yogijero reopened this Feb 8, 2025
@yogijero yogijero changed the title x Please write ytdl_option in json for 'square-cropped thumbnail' Feb 8, 2025
@PikuZheng
Copy link
Contributor

For embedded yt-dlp option configuration, see https://github.com/yt-dlp/yt-dlp/blob/master/yt_dlp/YoutubeDL.py#L180 or discuss on yt-dlp project

@PikuZheng
Copy link
Contributor

If you only want to embed the thumbnail in mp3, #188 (comment) fyi

@yogijero
Copy link
Author

yogijero commented Feb 8, 2025

By Default, metube embeds the thumbnail, however it does that in 1280 × 720 pixels. I want it to be in 1:1 (square).
The above yt-dlp command does it but I do not know how to implement it in metube.

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

No branches or pull requests

2 participants