immich icon indicating copy to clipboard operation
immich copied to clipboard

Large video streaming is slow

Open justin13888 opened this issue 1 year ago • 8 comments
trafficstars

The bug

I often record videos with highest possible settings on my phone. For example, a 18 second video might be 300 MiB. The problem is that i can't watch any of these videos once uploaded and deleted from device because videos seem to be downloaded completely before they could be watched.

If that's the case, I think it's a huge feature to be able to stream segments of the video instead (also saves on mobile data bandwidth). I'd be interested in working on this because I have a related video streaming service I'm working on.

P.S. I couldn't find a related issue for this hence I'm opening this because it's something I hope to improve on if necessary.

The OS that Immich Server is running on

Ubuntu 22.04

Version of Immich Server

v1.105.1

Version of Immich Mobile App

v1.105.0 build.139

Platform with the issue

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

Your docker-compose.yml content

N/A

Your .env content

N/A

Reproduction steps

Just watch any video that is hundred of megabytes

Relevant log output

No response

Additional information

No response

justin13888 avatar May 17 '24 22:05 justin13888

Have you changed any of the transcoding settings?

bo0tzz avatar May 17 '24 22:05 bo0tzz

I can't tell by the GUI if they're changed but I don't think I touched them (see below):

image image

I'm running immich following the docker compose method. Server uses a NVIDIA RTX 4070 Ti and runs on Ubuntu 22.04 with a recent Nvidia proprietary drivers. Confident hardware acceleration is functioning as expected.

Oh also I should clarify my use of words in that by slow, i mean that seeking has a 10-15 second delay.

I guess my question is if it's just that slow or could I configure it to speed up a bit.

justin13888 avatar May 17 '24 22:05 justin13888

Source file is 4K60 HEVC (idr the bitrate nor profile)

justin13888 avatar May 17 '24 22:05 justin13888

I can't tell by the GUI if they're changed but I don't think I touched them (see below):

You did change the default config; I am not sure which settings you changed that caused the issue. Can you scroll a bit from your screenshot, then click on restore to default and rerun the video transcoding job for all again?

image

Let us know if the default config help

alextran1502 avatar May 18 '24 04:05 alextran1502

Here's a bit more complete technical suggestion and discussion: https://github.com/immich-app/immich/discussions/9255

Thinkscape avatar May 30 '24 05:05 Thinkscape

Unfortunately team decided to downgrade it to nice to have 😢

Thinkscape avatar May 30 '24 05:05 Thinkscape

@Thinkscape nice to have is applied to the said feature request, not about this bug/inconvenience.

alextran1502 avatar May 30 '24 07:05 alextran1502

This issue is superseded by #9255, correct?

danieldietzler avatar Sep 21 '24 18:09 danieldietzler