tartube icon indicating copy to clipboard operation
tartube copied to clipboard

Thumbnails fail to embed on mkv files, but embed on mp4 files

Open Gadetron opened this issue 2 years ago • 8 comments

Thanks for taking the time to submit a bug report! Please include the following information:

What operating system are you using?

Windows 10

What version of Tartube are you using?

2.4

the output log shows the webp thumbnail being converted and appended to the video file, but the video file doesnt show the thumbnail, however if i let it convert to mp4 instead, it does append it correctly

Gadetron avatar May 12 '22 23:05 Gadetron

if i go into vlc player and check the metadata it shows the right thumbnail, but the file explorer does not, the video for some reason has to go through a lengthy conversion process to become an mp4, despite the fact that mp4 is part of the supported file types for the video and refuses to download the mp4 directly in the classic mode

Gadetron avatar May 13 '22 02:05 Gadetron

Download one of the affected videos. Then show me the contents of the Output tab, especially including the yt-dlp at the top (in yellow).

axcore avatar May 13 '22 07:05 axcore

Download one of the affected videos. Then show me the contents of the Output tab, especially including the yt-dlp at the top (in yellow).

image

image

Gadetron avatar May 13 '22 17:05 Gadetron

image

image

Gadetron avatar May 13 '22 17:05 Gadetron

I'm a bit confused here, the thumbnail visible in your File Explorer is the same one visible on YouTube's website. Which thumbnail were you expecting to see?

monster

On my Linux box, I tested the same command using yt-dlp only (no Tartube), and I see the actual problem you describe:

monster2

I'm not sure why it doesn't work or how to fix it.

the video for some reason has to go through a lengthy conversion process to become an mp4, despite the fact that mp4 is part of the supported file types for the video

yt-dlp --newline -i --hls-prefer-native --cookies cookies.txt --write-thumbnail -f "bestvideo[height<=?1080]+bestaudio/best[height<=?1080]" --recode-video mkv --embed-thumbnail --verbose https://www.youtube.com/watch?v=DMqXaAWuzqM

Your yt-dlp command includes --recode-video, so that's what happens. FFmpeg converts the .webm to .mp4 which will take several minutes. If you want to download the original .mp4 from YouTube, rather than converting it, then you have to actually specify that. For example, in the Classic Mode tab, make sure Download in this format is selected:

monster3

If you're using the Videos tab, then it's Edit > General download options > Formats, set up like this:

monster4

axcore avatar May 17 '22 07:05 axcore

The thumbnail is incorrect in my file explorer, the webp file is the correct one, what's shown is the first frame of the video

And even when I have it set to download only and mp4, and have mp4 set as the preferred format, along with making sure 1080p mp4 is one of the available files for the source, it still downloads it as webm and then converts to mp4

Gadetron avatar May 17 '22 13:05 Gadetron

And even when I have it set to download only and mp4, and have mp4 set as the preferred format, along with making sure 1080p mp4 is one of the available files for the source, it still downloads it as webm and then converts to mp4

Presumably because you have --recode-video selected in your download options

axcore avatar May 17 '22 14:05 axcore

Same problem here, VLC shows the thumbnail but the explorer not (Dolphin file explorer). I download the videos in VP9 .webm then reencode or remux them to mkv for thumbnail support. But the thumbnails in MKV doesn't show up, but they are in the video metadata.

image

Fijxu avatar Oct 24 '22 23:10 Fijxu

Due to the problem described in #461, Tartube v2.4.165 no longer deletes .webp thumbnails after converting them to .jpg. This might be the cause of some of the problems described above.

axcore avatar Nov 24 '22 13:11 axcore

Closed for inactivity.

axcore avatar Feb 26 '23 13:02 axcore