google / ExoPlayer

This project is deprecated and stale. The latest ExoPlayer code is available in https://github.com/androidx/media
https://developer.android.com/media/media3/exoplayer
Apache License 2.0
21.7k stars 6.01k forks source link

Make DefaultTrackSelector prefer more efficient video codecs (everything else being equal) #4835

Closed ojw28 closed 2 years ago

ojw28 commented 5 years ago

If there are multiple video TrackGroups that are roughly equivalent except for the codec used, DefaultTrackSelector should prefer to select the TrackGroup that uses the most efficient codec*.

manishPatwari commented 5 years ago

@ojw28 Hello, Any update on this?

juechemparathy commented 4 years ago

@ojw28 - Any updates on this? Thanks.

ScottPierce commented 3 years ago

Any update on this?

kevinscroggins-youi commented 2 years ago

Should in theory be able to work around this by hooking up the setPreferredAudio/VideoMimeType APIs on the DefaultTrackSelector. https://exoplayer.dev/doc/reference/com/google/android/exoplayer2/trackselection/DefaultTrackSelector.ParametersBuilder.html#setPreferredVideoMimeType(java.lang.String)