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

"First Frame Freeze" on Video Rendering in Media3 #2138

Open
1 task
amit12kumardish opened this issue Feb 12, 2025 · 4 comments
Open
1 task

"First Frame Freeze" on Video Rendering in Media3 #2138

amit12kumardish opened this issue Feb 12, 2025 · 4 comments
Assignees

Comments

@amit12kumardish
Copy link

Version

Media3 main branch

More version details

Media3 version: "1.5.1"

Devices that reproduce the issue

firetv

Devices that do not reproduce the issue

No response

Reproducible in the demo app?

Not tested

Reproduction steps

issue seen on the start of playback

Expected result

On start of the playback, video playback should be smooth

Actual result

Playback starts with first frame freeze for few millis and then it plays.

Media

Is there any specific configuration or optimization in Media3 that can help prevent the first frame freeze issue? Are there any known issues with the player initialization process or buffering that could cause this?

Bug Report

  • You will email the zip file produced by adb bugreport to [email protected] after filing this issue.
@amit12kumardish
Copy link
Author

Issue #2134

@amit12kumardish
Copy link
Author

2025-02-13 10:08:37.614 7350-7350 EventLogger renderedFirstFrame [eventTime=583.96, mediaPos=0.00, window=0, period=0, Surface(name=null)/@0x7be9e5c] 2025-02-13 10:08:37.633 7350-7350 EventLogger rendererReady [eventTime=583.98, mediaPos=0.00, window=0, period=0, rendererIndex=0, video, true] 2025-02-13 10:08:39.231 7350-7350 EventLogger state [eventTime=585.58, mediaPos=0.01, window=0, period=0, READY] 2025-02-13 10:08:39.232 7350-7350 EventLogger isPlaying [eventTime=585.58, mediaPos=0.01, window=0, period=0, true]

see the above logs:
first frame rendered at 10:08:37 and player started playing at 10:08:39 , so there is ~2 seconds freeze of first frame , why?

any recomended solution?

@amit12kumardish
Copy link
Author

One observation:

If i enable Tunneling, first frame freeze is fixed, but VST is high.

val trackSelector = DefaultTrackSelector(context).apply { val parameters = buildUponParameters() .setTunnelingEnabled(true) // causing vst to increase .build() setParameters(parameters) }

why this behaviour

@microkatz
Copy link
Contributor

microkatz commented Feb 18, 2025

@amit12kumardish

Hi! Would you be able to share a full bug report and also the test content? If you can't share the bug report or the test content publicly, please send them to [email protected] with the subject Issue #2138. Please also update this issue to indicate you've done this.

Also were you able to reproduce this in the demo application?

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

No branches or pull requests

2 participants