FossifyOrg / Gallery

Browse your memories without any interruptions with this photo and video gallery
https://www.fossify.org
GNU General Public License v3.0
1.33k stars 40 forks source link

Thumbnails for vp9.mp4 wont render #226

Open helmchenlord opened 1 month ago

helmchenlord commented 1 month ago

Checklist

Affected app version

1.1.3

Affected Android/Custom ROM version

Linages OS 18.1 - 2024-03-05 00:00

Affected device model

Samsung Galaxy S4 (GT-I9505) - jfltexx

How did you install the app?

F-Droid / IzzyOnDroid

Steps to reproduce the bug

Hi, I noticed previews aren't rendering for vp9.mp4. Clearing cache made no difference. These video files can still be viewed properly by tapping and opening single view mode. I have attached one of the files for which the app fails to show a preview in folder view.

Expected behavior

Thumbnails render while scrolling the gallery

Actual behavior

Thumbnails never shows up Screenshots/Screen recordings

Screenshot_20240513_160008

Screenshots/Screen recordings

https://github.com/FossifyOrg/Gallery/assets/12427618/24cecd9e-c98b-403d-b5eb-de3b955ea709

Additional information

mediainfo --fullscan 89f510261a80aea8-vp9.mp4 General Count : 349 Count of stream of this kind : 1 Kind of stream : General Kind of stream : General Stream identifier : 0 Count of video streams : 1 Count of audio streams : 1 Video_Format_List : vp09 Video_Format_WithHint_List : vp09 Codecs Video : vp09 Audio_Format_List : AAC LC Audio_Format_WithHint_List : AAC LC Audio codecs : AAC LC Audio_Channels_Total : 2 Complete name : 89f510261a80aea8-vp9.mp4 File name extension : 89f510261a80aea8-vp9.mp4 File name : 89f510261a80aea8-vp9 File extension : mp4 Format : MPEG-4 Format : MPEG-4 Format/Extensions usually used : braw mov mp4 m4v m4a m4b m4p m4r 3ga 3gpa 3gpp 3gp 3gpp2 3g2 k3g jpm jpx mqv ismv isma ismt f4a f4b f4v Commercial name : MPEG-4 Format profile : Base Media Internet media type : video/mp4 Codec ID : isom Codec ID : isom (isom/iso2/mp41) Codec ID/Url : http://www.apple.com/quicktime/download/standalone.html CodecID_Compatible : isom/iso2/mp41 File size : 5463786 File size : 5.21 MiB File size : 5 MiB File size : 5.2 MiB File size : 5.21 MiB File size : 5.211 MiB Duration : 32600 Duration : 32 s 600 ms Duration : 32 s 600 ms Duration : 32 s 600 ms Duration : 00:00:32.600 Duration : 00:00:32:18 Duration : 00:00:32.600 (00:00:32:18) Overall bit rate : 1340806 Overall bit rate : 1 341 kb/s Frame rate : 30.000 Frame rate : 30.000 FPS Frame count : 978 HeaderSize : 28966 DataSize : 5434820 FooterSize : 0 IsStreamable : Yes Title : 405312295268872 Movie name : 405312295268872 File last modification date : 2024-05-13 13:40:02 UTC File last modification date (local) : 2024-05-13 15:40:02 Writing application : Lavf59.27.100 Writing application : Lavf59.27.100

Video Count : 381 Count of stream of this kind : 1 Kind of stream : Video Kind of stream : Video Stream identifier : 0 StreamOrder : 0 ID : 1 ID : 1 Format : vp09 Format : vp09 Commercial name : vp09 Codec ID : vp09 Duration : 32600 Duration : 32 s 600 ms Duration : 32 s 600 ms Duration : 32 s 600 ms Duration : 00:00:32.600 Duration : 00:00:32:18 Duration : 00:00:32.600 (00:00:32:18) Bit rate : 1205580 Bit rate : 1 206 kb/s Width : 1080 Width : 1 080 pixels Height : 1920 Height : 1 920 pixels Pixel aspect ratio : 1.000 Display aspect ratio : 0.562 Display aspect ratio : 0.562 Rotation : 0.000 Frame rate mode : CFR Frame rate mode : Constant Frame rate : 30.000 Frame rate : 30.000 FPS FrameRate_Num : 30 FrameRate_Den : 1 Frame count : 978 Color space : YUV Scan type : Progressive Scan type : Progressive Bits/(Pixel*Frame) : 0.019 Stream size : 4912739 Stream size : 4.69 MiB (90%) Stream size : 5 MiB Stream size : 4.7 MiB Stream size : 4.69 MiB Stream size : 4.685 MiB Stream size : 4.69 MiB (90%) Proportion of this stream : 0.89915 colour_description_present : Yes colour_description_present_Source : Container Color range : Limited colour_range_Source : Container Color primaries : BT.709 colour_primaries_Source : Container Transfer characteristics : BT.709 transfer_characteristics_Source : Container Matrix coefficients : BT.709 matrix_coefficients_Source : Container

Audio Count : 285 Count of stream of this kind : 1 Kind of stream : Audio Kind of stream : Audio Stream identifier : 0 StreamOrder : 1 ID : 2 ID : 2 Format : AAC Format : AAC LC Format/Info : Advanced Audio Codec Low Complexity Commercial name : AAC Format settings, SBR : No (Explicit) Format settings, SBR : No (Explicit) Format_AdditionalFeatures : LC Codec ID : mp4a-40-2 Duration : 32599 Duration : 32 s 599 ms Duration : 32 s 599 ms Duration : 32 s 599 ms Duration : 00:00:32.599 Duration : 00:00:32.599 Source duration : 32508 Source duration : 32 s 508 ms Source duration : 32 s 508 ms Source duration : 32 s 508 ms Source duration : 00:00:32.508 Source duration : 00:00:32.508 Bit rate mode : CBR Bit rate mode : Constant Nominal bit rate : 128478 Nominal bit rate : 128 kb/s Maximum bit rate : 128559 Maximum bit rate : 129 kb/s Channel(s) : 2 Channel(s) : 2 channels Channel positions : Front: L R Channel positions : 2/0/0 Channel layout : L R Samples per frame : 1024 Sampling rate : 44100 Sampling rate : 44.1 kHz Samples count : 1437616 Frame rate : 43.066 Frame rate : 43.066 FPS (1024 SPF) Frame count : 1404 Source frame count : 1400 Compression mode : Lossy Compression mode : Lossy Source stream size : 522073 Source stream size : 510 KiB (10%) Source stream size : 510 KiB Source stream size : 510 KiB Source stream size : 510 KiB Source stream size : 509.8 KiB Source stream size : 510 KiB (10%) Source_StreamSize_Proportion : 0.09555 Default : Yes Default : Yes Alternate group : 1 Alternate group : 1

Aga-C commented 1 month ago

When I downloaded your video from GitHub, I saw the thumbnail. Can you check if you encounter this problem after downloading your video from GitHub? Maybe GitHub has changed the file in some way.

helmchenlord commented 1 month ago

Downloading the video from GitHub and open the gallery has the same result. For me the thumbnail doesn't render. So it seems to be an issue on my side I guess. If I am the only one having trouble with the thumbnails for this specific video files. Other video thumbnails render fine.

CurbedLarry commented 1 month ago

That phone was released months before the VP9 codec was finished (mid 2013) so I'm sure it doesn't have hardware support. You probably need a device from 2015/2016 or later to have good support for VP9.