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

(Android build) Preview on S22 Ultra Android 14 does not play with videos 5min+ #819

Open
4 tasks done
Strubu opened this issue Apr 21, 2024 · 11 comments
Open
4 tasks done
Labels
bug Something isn't working mdk-sdk
Milestone

Comments

@Strubu
Copy link

Strubu commented Apr 21, 2024

Is there an existing issue for this?

  • I have searched the existing issues

Have you tried the latest build?

  • I have tried the latest build

Do you have latest GPU drivers installed?

  • I have the latest GPU drivers installed, I'm absolutely sure.

Have you checked the documentation?

  • I have read the FAQ and Troubleshooting and didn't find my issue there.

Gyroflow version

1.5.4

What operating system are you using?

Android 14

What GPU are you using?

S22 Ultra

What happened?

As in the title: Previews on S22 Ultra Android 14 do not play with videos over 5min. I tested short videos and they work flawless. Also tried with a lent Pixel 8, and the same 5min+ videos preview without issue (even though rendering is slower on the Pixel 8 :D).
Any ideas how to fix it?

Relevant log output

No response

@Strubu Strubu added the bug Something isn't working label Apr 21, 2024
@AdrianEddy
Copy link
Collaborator

are you sure the 5 min is the main factor? what camera is the video file from? does it have gyro data? what resolution, codec?

@Strubu
Copy link
Author

Strubu commented Apr 24, 2024

are you sure the 5 min is the main factor? what camera is the video file from? does it have gyro data? what resolution, codec?

Sorry for the late reply. Spend a whole afternoon making videos of various lengths, only to find out, that it's actually not related to the length...

So you were right. The resolution seems instead to be the problem. 4k videos (3840 x 2880 ) don't preview within the first few frames of pressing play.

Same videos run perfect at 2.7k (2688x2016) resolution.

Mind you this is all on S22 Ultra. On the other phone I tested (Pixel 8) 4k videos are not a problem.

Other video stats:
Lens profile: DJI Avata 2
Duration 8s
Framerate: 59.940, also tested with 50fps with same result
Codec: HEVC 115.34 (for 4k) HEVC 95.89Mbs (for 2.7k) -> is this maybe the source of the problem?
Pixel format: YUV420 10 bit
Contains gyro: yes

@AdrianEddy
Copy link
Collaborator

AdrianEddy commented Apr 24, 2024

Ok go to Advanced and try different "Preview pipeline". Also does anything change when you disable stabilization?
image

@Strubu
Copy link
Author

Strubu commented Apr 24, 2024

Ok go to Advanced and try different "Preview pipeline". Also does anything change when you disable stabilization? image

Tried all combinations of preview settings. Preview also stops even if stabilization is switched off. Video plays normal with the build in video player, so I don't think, it's a codec problem either.

@AdrianEddy
Copy link
Collaborator

@Strubu
Copy link
Author

Strubu commented Apr 24, 2024

Try this apk https://github.com/gyroflow/gyroflow/actions/runs/8444901910/artifacts/1361449368

Tried the apk, but same behaviour. 2.7k videos run in preview with no issues, 4k videos run for 2-3 frames, then lock up.
Pixel 8 plays all without issues. It doesn't matter if I choose the "[wgpu] Adreno(tm) 730 (Vulkan)" or "CPU" option for the preview pipeline video processing, else I would have blamed it on the S22 GPU architecture. I'm going to make some anonymized videos tomorrow morning and post them for testing. Thanks for the quick response.

@Strubu
Copy link
Author

Strubu commented Apr 25, 2024

Try this apk https://github.com/gyroflow/gyroflow/actions/runs/8444901910/artifacts/1361449368

Here are 3 videos (4k 4:3 not working, 4k 16:9 working, 2.7k 4:3 working) and some screen recordings.
https://1drv.ms/f/s!AjwietZirFfNkOwZ35wYcr89FM9aVg?e=VMDadN

(I reset all setting to default in the app before doing the screen recordings)

@AdrianEddy
Copy link
Collaborator

@Strubu
Copy link
Author

Strubu commented Apr 26, 2024

How about this apk? https://github.com/gyroflow/gyroflow/actions/runs/8849189979/artifacts/1451192994

Still same behavior.
Btw: I just realized, that scrubbing though the whole video is possible, before pressing play. After pressing play, the video locks up again after a few frames. I added a new screen recording to the OneDrive, using the new apk.

@AdrianEddy AdrianEddy added this to the 1.5.5 milestone May 17, 2024
@AdrianEddy
Copy link
Collaborator

@AdrianEddy
Copy link
Collaborator

Any update? did you try the dev build?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working mdk-sdk
Projects
None yet
Development

No branches or pull requests

2 participants