pulsejet / memories

Fast, modern and advanced photo management suite. Runs as a Nextcloud app.
https://memories.gallery
GNU Affero General Public License v3.0
2.82k stars 76 forks source link

Cannot play .MTS video files #1136

Open wonx opened 1 month ago

wonx commented 1 month ago

Describe the bug I've had a few issues trying to play video files in Memories. It seems to depend both on the file format, the web browser and the devices in which is viewed.

One file format I've been unable to play in any device and/or browser are videos recorded in MTS format. These videos in particular have been recorded with a Sony Alpha a5000 camera (ILCE-5000).

I have tried both in Chrome, Firefox, from a Windows 10 and a Kubuntu 22.04 machine, and from my Android phone (using the android app), with the same result. I also tried playing it in incognito mode, to make sure there weren't any cookies or extensions that might have been interfering.

In Nextcloud,

To Reproduce Have a MTS video in your library, go to memories (either the web version or the Android app) and try to play the video. On the web version you'll receive the following message: "The media could not be loaded, either because the server or network failed or because the format is not supported."

Screenshots Here's a screenshot. Screenshot_20240413_114701 Here's a sample video: 00007.zip

Platform:

Additional context

pulsejet commented 1 month ago

Browsers don't support this format so you need to set up transcoding.

Note: if you're using Nextcloud's external storage module that currently doesn't work with transcoding. You'll need to mount the directory instead.

wonx commented 1 month ago

Is there a way to figure out what formats are supported by a given browser? In Firefox I can't play .MOV videos created by an iPhone, but they play just fine in Google Chrome. I also noticed that some videos only play on my Windows machine.

pulsejet commented 1 month ago

I think there's an API to test codec support but don't know from a user pov. The reason FF can't play your MOV is they use HEVC https://caniuse.com/hevc