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

SponsKrub removes thumbnail embedded in MKV video #29

Open
nicolaasjan opened this issue Mar 31, 2021 · 6 comments
Open

SponsKrub removes thumbnail embedded in MKV video #29

nicolaasjan opened this issue Mar 31, 2021 · 6 comments

Comments

@nicolaasjan
Copy link

@pukkandan advised me to open an issue here concerning removed thumbnail embedded in MKV video.

Long story short, see yt-dlp/yt-dlp#204.

Is there a way to solve this issue?

@pukkandan
Copy link
Contributor

pukkandan commented Mar 31, 2021

To summarize the issue:
When yt-dlp embeds thumbnail in mkv, it registered it as an attachment with filename=cover.jpg. This allows most file managers to correctly "see" the thumbnail. However, when the video is passed through sponskrub, this attachment information is lost even though the embedded thumbnail is still present inside the video file.

A workaround to this issue from my side would be to embed thumbnail AFTER sponskrub has done its job. But it is probably best if a solution can be implemented in sponskrub itself

pukkandan added a commit to yt-dlp/yt-dlp that referenced this issue Apr 1, 2021
@nicolaasjan
Copy link
Author

I can confirm that this issue is now resolved with f4e4be1 :)

screenshot1

@pukkandan
Copy link
Contributor

the issue isnt "resolved". I worked around it by doing this

A workaround to this issue from my side would be to embed thumbnail AFTER sponskrub has done its job.

imo, this issue should still be kept open since it affects users who use sponskrub separately from yt-dlp too

@nicolaasjan nicolaasjan reopened this Apr 1, 2021
@nicolaasjan
Copy link
Author

I'm so sorry for the confusion...
Please forgive me.

@faissaloo
Copy link
Owner

So I've spent some time going through a bunch of the ffmpeg documentation and stuff, it looks like there's not really a standard way to deal with existing thumbnails, however adding a thumbnail as thing independent of the original seems fairly straightforward as does extracting an image from a video. Would generating a new thumbnail for the video (which might be different) be an acceptable solution? It might also make more sense given the fact that what's in the thumbnail might end up getting cut out

@mirror176
Copy link

Maybe as a workaround or alternative, but being able to maintain the thumbnail should be preferred as the fix since the original may be artwork from outside the video.

nixxo pushed a commit to nixxo/yt-dlp that referenced this issue Nov 22, 2021
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

4 participants