meganz / MEGAsync

Easy automated syncing between your computers and your MEGA Cloud Drive
Other
1.64k stars 281 forks source link

AV1 thumbnail generation #676

Open sanjaylord opened 2 years ago

sanjaylord commented 2 years ago

Hello,

I've noticed that some of the AV1 media files does not generate thumbnails when uploaded to MEGA via the desktop app even though thumbnails are shown in windows file explorer.

Please see below folder.

https://mega.nz/folder/UNRzgKgT#O0br6Wcj2Rs2UJkKasZa5g

screenshot-2172

Only seems to affect AV1 media files while other formats generate thumbnails fine.

Windows 10 Pro 64-bit w/ MEGAsync 4.6.1 64-bit

Thanks.

angelds-mega commented 2 years ago

Hello, Please go to Menu - click 'Reload your account' while holding the keyboard key Ctrl if you are using Windows or Cmd for macOS. This will clear all cached data and load the latest state of your account to your browser.

If the issue persists after this, please try to download the image in your Cloud Drive. The download process will trigger the system to generate a thumbnail for it. Can you please try to download the images to your PC and let us know if the thumbnails got created?

sanjaylord commented 2 years ago

Thanks for the response. I tried 1) reloading my account whilst pressing the ctrl key and 2) downloading the file to my computer first via megasync and then via browser -- but no dice the thumbnail just refuses to generate. I should mention that this issue only affects media encoded using AV1 codec (which is a new generation video codec that is yet to see a wider adoption) whereas media files encoded using every other major codec such as HEVC, AVC, VP9 all generates thumbnails without issue.

Some of the people I've talked to have had better luck generating thumbnails for AV1 files however - the very same ones I couldn't generate when I tried to upload them myself which leads me to think this could be an OS or GPU decode incompatibility issue. They were running a newer version of Windows 11 whereas I'm on Windows 10 so I will now try installing Windows 11 on a spare computer and see whether that changes anything. I still am not sure where or how MEGAsync actually obtains the thumbnail images from files since the end-to-end encryption complicates things because a few other non-encrypted hosters were able to generate thumbnails for the AV1 files without any issue.

In case anybody reading this would like to help out - please download (don't import because that won't work) the AV1 sample from the folder in the OP and see whether you're able to have thumbnail generated for it when you upload from your setup.

angelds-mega commented 2 years ago

Hello. For MEGAsync we are using the ffmpeg library to generate thumbnails. So, the supported formats are those supported by ffmpeg: https://ffmpeg.org/ffmpeg-formats.html Thank you.

sanjaylord commented 2 years ago

I actually tried uploading from a Linux distribution (Ubuntu 21.10) the other day via the MEGAsync Linux client and none of the videos generated thumbnails - even the formats that are supported by ffmpeg didn't generate thumbnails. I assume the distribution was lacking the necessary ffmpeg library or MEGAsync was unable to access them for some reason? Switched to a newly installed copy of Windows and everything generated thumbnails except AV1 which I guess still isn't supported by ffmpeg? Although a few others I've spoken to were largely successful in generating them for some of their AV1 content so that puts a question mark on what exactly went wrong in my case.

jumoog commented 2 years ago

I have the same Problem. (Ubuntu 20.04)

even the formats that are supported by ffmpeg didn't generate thumbnails

havkacik commented 1 year ago

This issue still persists to this day. I've tested with different clients under different operating systems Windows 11, Windows 10. Thumbnails for videos in Mega web interface encoded by FFMPEG into AV1 codecs are not generated, nor they can be played in web-interface. according to official help page, AV1 videos are only supported in Android app.

Matthew0x commented 4 months ago

I ran into the same problem with the thumbnails and the AV1.

The phone application renders AV1 quite perfectly (although it takes a bit of time, depending on the device). The web app will usually render a couple seconds then freezes infinitely. Thumbnails get generated upon restarting the replay a couple of times.

When AV1 file is played locally in the browser (Chrome, Firefox etc.) then it plays just fine. H.264 has no issues with neither playback nor thumbnails.

EDIT: I ran some tests using different codecs (264, 265, AV1) and key frame parameters. Turns out KF=2 works out for me with AV1 and the thumbnails and playback are working normally then.