Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Performance issues on playing videos in app #5800

Closed
pilsnerbeer opened this issue Apr 3, 2020 · 37 comments · Fixed by #8132
Closed

Performance issues on playing videos in app #5800

pilsnerbeer opened this issue Apr 3, 2020 · 37 comments · Fixed by #8132

Comments

@pilsnerbeer
Copy link

Steps to reproduce

  1. Play video from the app

Expected & actual behaviour

Loading time is expected to be comparable or faster than if user played the same video using their browser app. In reality, the loading time (for a particular mp4 video that I had in my cloud) was 7-11 seconds (a very long time until the video even started playing) but if I played the same video using my web browser, it started playing instantly.

Picture- loading the video. Usually at least 5 seconds, sometimes the file never even loads. The videos I used for testing are low to mid bitrate and 1080p.
Screenshot_20200403-114502

Environment data

Android version: 9

Device model: Oneplus 5T

Nextcloud app version: 3.11.0

Nextcloud server version: 17

@pilsnerbeer pilsnerbeer added the bug label Apr 3, 2020
@tobiasKaminsky
Copy link
Member

@rullzer do you have any idea what direct editing could to take so long?

@tobiasKaminsky tobiasKaminsky added the needs info Waiting for info from user(s). Issues with this label will auto-stale. label Apr 3, 2020
@jakobroehrl
Copy link

Same problem here, tested with 3 different smartphones and NC19

  • It takes 8-12 secs to preload the video no matter how long the video is
  • Video stops while playing to preload again

In the browser it's working fine.
Can post a video of the problem it that helps

@tobiasKaminsky
Copy link
Member

@rullzer can you imagine how/why the direct endpoint is so slow?

@stale
Copy link

stale bot commented May 13, 2020

This bug report did not receive an update in the last 4 weeks. Please take a look again and update the issue with new details, otherwise the issue will be automatically closed in 2 weeks. Thank you!

@stale stale bot added the stale label May 13, 2020
@szaimen
Copy link
Contributor

szaimen commented May 13, 2020

Ping

@stale stale bot removed the stale label May 13, 2020
@edwinhuish
Copy link

same issue here.

@stale
Copy link

stale bot commented Jun 17, 2020

This bug report did not receive an update in the last 4 weeks. Please take a look again and update the issue with new details, otherwise the issue will be automatically closed in 2 weeks. Thank you!

@stale stale bot added the stale label Jun 17, 2020
@jakobroehrl
Copy link

Ping

@stale stale bot removed the stale label Jun 17, 2020
@jakobroehrl
Copy link

Tested this weekend with other smartphones. On P30 it works well, for example. There is only a 2-4 sec delay.
As a nice workaround I use "stream with -> VLC", with that the video starts almost immediately.

@stale
Copy link

stale bot commented Aug 2, 2020

This bug report did not receive an update in the last 4 weeks. Please take a look again and update the issue with new details, otherwise the issue will be automatically closed in 2 weeks. Thank you!

@stale stale bot added the stale label Aug 2, 2020
@szaimen
Copy link
Contributor

szaimen commented Aug 2, 2020

ping

@stale stale bot removed the stale label Aug 2, 2020
@qosmio
Copy link

qosmio commented Aug 21, 2020

Same exact issue, NC 19.0.1. Videos just keep trying to buffer over and over. Both the browser (safari for native mov playback) and iOS app. I've been on the latest betas of the app too.

@military1
Copy link

NC 19.0.2, Nextcloud app version: 3.11.0, Android 10. Same issue.

@Wytoo
Copy link

Wytoo commented Sep 3, 2020

Hi there, I'm having the same issue. 83mb video is taking about a minute, even if it's loading.
I'm using a DS918+. Processor isn't even at 30% with lots of other stuff running.

EndDevice: Android 10. Galaxy S10 3.13.0, or iPhone X newest iOS and Nextcloud version (familywide problem)
Server: NC19.0.2

I'd love to attach some logs, but don't know how or which.

@tobiasKaminsky
Copy link
Member

It seems that the buffer size of MediaPlayer is fixed.
There is a way to show it, but the percent is a bit strange, so I am unsure if we should show it:
MediaPlayer:OnBufferingUpdateListener:

/**
* Called to update status in buffering a media stream received through
* progressive HTTP download. The received buffering percentage
* indicates how much of the content has been buffered or played.
* For example a buffering update of 80 percent when half the content
* has already been played indicates that the next 30 percent of the
* content to play has been buffered.
*
* @param mp the MediaPlayer the update pertains to
* @param percent the percentage (0-100) of the content
* that has been buffered or played thus far
*/

After all we already show a loading spinner…

@ghost
Copy link

ghost commented Oct 2, 2020

Video is loading forever on Android inside the app.

"stream with -> VLC" does not work too.

Is there any workaround?

@pilsnerbeer
Copy link
Author

Is there any workaround?

I switched to web version after I noticed pretty much everything is way faster compared to the app (incl. loading times for folders etc). Plus - you can actually seek video/audio files there unlike the app player which has been broken for a couple of months now;)

btw - streaming via VLC doesn't work for me either but google photos works ok (web player still much faster though.)

@TechnicallyComputers
Copy link

TechnicallyComputers commented Oct 5, 2020

This is a issue for me too. It seems to not be codec related, but purely performance based from what I can tell.

I have a large collection of family pictures and videos to share with family, and I've found that, despite being all MP4 H264, most don't load and buffer almost indefinitely, from the android app or the web browser. Or VLC.

If the framerate is 60fps instead of 30fps, the video will not buffer properly.
If I set the video/camera it to 1920x1080 resolution, 30fps, it will load, but buffering takes a noticeable amount of time at the start.
If I set it to 1280x720 and 30fps, it buffers and loads effectively.

My "fix" for now is to lower my camera video record settings to the lowest settings possible just to make the videos playable on nextcloud.

@JonathanBrose
Copy link

Same issue for me...
System: 32gb ram, ryzen 9 3900x, gbit lan, no bottleneck here.
I am running NC19, and trying to stream videos from the web-ui and android app.
All Tests are in LAN.
On Chrome i can watch FULLHD 30fps, Firefox even that buffers forever. Android app buffers for ages.
i have a lot of 4k30 and 4k60 vids with 100mbits bitrate or even more. 60fps doesnt work at all, just shows black and plays the sound. 4k30 works, but buffers lik 30secs for 1-2secs of playback. Downloading the file is nearly instantly...
If i click stream with vlc on android i can play any of these videos no problem without delay

@Fuzl
Copy link

Fuzl commented Oct 22, 2020

Same issue here, for large videos : one of 600Mo and the other of 2.5Go
Tested on web Firefox.

@cieska
Copy link

cieska commented Oct 25, 2020

ping

@caalca
Copy link

caalca commented Nov 5, 2020

Same issue

@hardeek
Copy link

hardeek commented Nov 14, 2020

Stream with "Photos" (Google Photos) is working fine for me!

@stale
Copy link

stale bot commented Dec 13, 2020

This bug report did not receive an update in the last 4 weeks. Please take a look again and update the issue with new details, otherwise the issue will be automatically closed in 2 weeks. Thank you!

@stale stale bot added the stale label Dec 13, 2020
@cieska
Copy link

cieska commented Dec 13, 2020

ping

@stale stale bot removed the stale label Dec 13, 2020
@Wytoo
Copy link

Wytoo commented Dec 16, 2020

yep, still the same issue

@laguerreche
Copy link

I made a video with my phone of "Big Buck Bunny" being played on my PC to get a video file that isn't played smoothly (the original file was played correctly!). I uploaded my video at https://demo1.nextcloud.com, user "cH2awx9JwD6z9cnj", file name "VID_20201221_202750.mp4". I can re-upload it somewhere else...

In firefox on a PC with Linux, seeking seems to be broken so the video may become stuck after a few frames have been played and it may continue once the file has been downloaded.

If someone wants to reproduce the video:

@jakobroehrl
Copy link

* I downloaded Big Buck Bunny from there: https://cloud.blender.org/films/big-buck-bunny/gallery?asset=263 (BTW it's played correctly by Nextcloud),

I can stream this video without any problems on my nextcloud and on my android phone.

@laguerreche
Copy link

* I downloaded Big Buck Bunny from there: https://cloud.blender.org/films/big-buck-bunny/gallery?asset=263 (BTW it's played correctly by Nextcloud),

I can stream this video without any problems on my nextcloud and on my android phone.

And I can also... But I then filmed my PC screen playing Big Buck Bunny to get a new video file and that file cannot be played correctly.

@TechnicallyComputers
Copy link

TechnicallyComputers commented Dec 21, 2020

The famous bunny video posted is 720p, 30fps, of course it works, the issues are with 1080p or 60fps, or higher resolution/framerate content, and heavy buffering. The test confirms what we already knew.

I still get very long buffer times for any of my 1080p content regardless of framerate.

@disgustipated
Copy link

I'm seeing this on latest snap image in ubuntu, local works ok but someone trying to stream a share of mine takes a while. I have a 300mb upload speed and the video seems to stop after a couple of frames. im technically inclined and i can gather details, just let me know whats needed.

@tobiasKaminsky
Copy link
Member

There is an experimental switch to another video player in #8132 (comment)

This apk can be installed in parallel.
It would be great if you can give this a test, if it helps in your scenario.

@cieska
Copy link

cieska commented Mar 8, 2021

There is an experimental switch to another video player in #8132 (comment)

This apk can be installed in parallel.
It would be great if you can give this a test, if it helps in your scenario.

Not counting hundred of other bugs with this player/app it plays very well. Instantaneous play, quick play after sliding to any play on time bar. Looks good regarding playback.
But playback doesn't stop if you exit app without the stoping video, app must be uninstalled to stop the play in background. Same with starting other video if other one not stoped then two plays inbacgroud. No full screen button. And probably something else.

@disgustipated
Copy link

As cieska says, seems a little buggy but im guessing its just to get it in to test. I didnt have to reboot, just force killed the qa app to get video to stop playing in background.
Seems to work a lot better, testing on a 1gb video and was able to jump around with relatively low delay when playing back after jumping around to different locations and rewinding and ffwd. I assume this would go into place for the web portion as well?

@tobiasKaminsky
Copy link
Member

I should have been more clear, this is just about streaming/playback issues.
All other is not expected to work better/ at all.

But it seems as it is the way to go 💪

Thanks for testing.

@tobiasKaminsky tobiasKaminsky added approved pr exists and removed needs info Waiting for info from user(s). Issues with this label will auto-stale. labels Mar 9, 2021
@military1
Copy link

@tobiasKaminsky , In which version app will there be a solution to this problem with streaming playback? I have to use two applications, Nextcloud and Owncloud (free, which has not been updated for a long time, but there video streaming works fine).

@nikbpetrov
Copy link

Apologies for reviving an old issue but I am still getting the exact same symptoms as described above. Video playback is fine in Chrom on Web on both Windows and Android but does NOT work on:

  • Firefox on Windows/Android
  • NC web app
  • Android VLC player/Android Video player when opened with "Stream with..." option

Nextcloud Android app v3.29.2, Nextcloud 25.0.5
Samsung Galaxy S22+

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.