immich icon indicating copy to clipboard operation
immich copied to clipboard

Transcoded videos don’t play any more in Mac Safari

Open Str1atum opened this issue 1 year ago • 13 comments

The bug

Since 1.107 the recoded videos don’t play in Mac Safari 17.5 any more. File itself is loaded and can be downloaded, but it is not playable. Chrome on same machine works fine.

The OS that Immich Server is running on

Ubuntu 24.04

Version of Immich Server

1.107.2

Version of Immich Mobile App

1.107.2

Platform with the issue

  • [ ] Server
  • [X] Web
  • [ ] Mobile

Your docker-compose.yml content

Standard

Your .env content

Standard

Reproduction steps

1. Open a video in Mac Safari
2.
3.
...

Relevant log output

No response

Additional information

No response

Str1atum avatar Jul 03 '24 17:07 Str1atum

Do you use iOS 18? Do older videos work, or just newly updated ones?

alextran1502 avatar Jul 03 '24 17:07 alextran1502

How are you connecting? Using any proxy?

mmomjian avatar Jul 03 '24 18:07 mmomjian

Do you use iOS 18? Do older videos work, or just newly updated ones?

Just on Mac, iOS works fine. All videos affected.

Str1atum avatar Jul 03 '24 18:07 Str1atum

How are you connecting? Using any proxy?

Traefik 3.0.4 with let’s encrypt certificate

Str1atum avatar Jul 03 '24 19:07 Str1atum

Please connect directly to ipaddress:2283

mmomjian avatar Jul 03 '24 19:07 mmomjian

Please connect directly to ipaddress:2283

tried that and disabled Traefik - direct connect with only HTTP - still the same error, just a spinning wheel and the video doesn't play.

Str1atum avatar Jul 03 '24 19:07 Str1atum

I'm having the same issue. Safari 18.0 on macOS 15 Developer Beta 2. Cloudflare Proxy + Caddy. If I copy the video URL and open it in a new tab, it works. In Safari's developer tools, I can see some 206 but with an error color: Screenshot 2024-07-04 at 19 55 36

Seems like the same behaviour as https://github.com/immich-app/immich/issues/1197

elisiariocouto avatar Jul 04 '24 18:07 elisiariocouto

I am having the same issue, running immich v1.107.2 on Unraid v6.12.10, Safari version 17.5 (19618.2.12.11.6) and macOS Sonoma 14.5.

When previewing the thumbnail in safari, the video plays fine.

No playback issues using Brave/chrome browsers.

EliasMarine avatar Jul 07 '24 17:07 EliasMarine

Same experience here, but it's ANY WebKit-based Mac browser. Thumbnails play, but the viewer/detail view hangs up with a spinner. If I click it the poster image is replaced with a black screen. I get the same behavior on Safari, Orion and iCab.

  • Immich v1.111.0
  • MacOS version 14.5 (23F79)
  • Browsers affected:
    • Safari version 17.5 (19618.2.12.11.6)
    • Orion version 0.99.128.1-beta (WebKit 619.1.11.111.2)
    • iCab version 6.2.3
  • Browsers not affected:
    • Arc version 1.53.1 (52180) (Chromium Engine Version 127.0.6533.73)
    • Firefox 128.0.3

I do NOT see this behavior in iOS browsers, including Safari and iCab Mobile; video plays fine. I'm running iOS 17.5.1. Mac M2 Pro. So it sure does look like a Mac WebKit problem.

(Requests that I just use Chrome will be mocked ;) The Internet Explorer monoculture of the '00s was awful. The emerging Chrome monoculture of the '20s is not going to be better.)

rmohns avatar Jul 31 '24 23:07 rmohns

Problem still exists in v1.112

rmohns avatar Aug 14 '24 18:08 rmohns

I'm experiencing the same issue - thumbnails play but I get the spinner trying to view any videos with:

  • Immich v1.112.1
  • MacOS version 14.5
  • Safari 17.5 (19618.2.12.11.6)

The following browsers on the same Mac can successfully play videos:

  • Firefox 129.0.1
  • Chrome 125.0.6422.77

It also plays successfully on iOS 17.5.1 Safari and the iOS Immich app (1.112.1 build.169).

rllynch avatar Aug 18 '24 23:08 rllynch

Also confirming on Immich v1.115.0, the issue is still there

peremenov avatar Sep 13 '24 08:09 peremenov

Following as this is happening to me as well on v1.117.0

3zero2 avatar Oct 07 '24 17:10 3zero2

Thank you for fixing this! 🎉

rmohns avatar Oct 10 '24 15:10 rmohns