Preview generation for video files might fail for files greater 5MB #28694
Labels
1. to develop
Accepted and waiting to be taken care of
bug
feature: previews and thumbnails
regression
Starting with Nextcloud 20 the preview generation for video files is only using the first 5MB to process the thumbnails when using any non-local storage, e.g. as encountered with primary object storage.
This might work depending on the video file if the moov atom is located early enough in the original video file that it will be contained in the first chunk as well, however if the moov is outside of that chunk there is no chance that ffmpeg can parse it and generate a preview from it.
Basically we cannot be sure that the first 5MB will be enough to generate a preview.
Before 20:
server/lib/private/Preview/Movie.php
Line 46 in 31c5c2a
Nextcloud 20+:
server/lib/private/Preview/ProviderV2.php
Line 81 in 215aef3
It worked before Nextcloud 20 as it just used the full file there also for non-local storages, however i would assume that is has always been an issue for external storages.
The only possible way to solve this would be to try the first 5mb part and if that fails to generate a preview we will need to fall back to use the full file, but I'm open for other ideas.
The text was updated successfully, but these errors were encountered: