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

Sony: video stopped on first frame (regression) #7404

Closed
stari4ek opened this issue May 20, 2020 · 1 comment
Closed

Sony: video stopped on first frame (regression) #7404

stari4ek opened this issue May 20, 2020 · 1 comment
Assignees
Labels

Comments

@stari4ek
Copy link

stari4ek commented May 20, 2020

[REQUIRED] Issue description

Same HLS video on Sony TV with exoplayer 7214ad2 plays well, but newer 535e14c and most recent 0de9c00 - does not.

Tracks are received, codecs initialized. But picture is frozen, no sound.
Switching to ffmpeg audio - solves the issue
Playing on other devices (checked with mibox, nvidia shield, adt-3) - no issues with both versions.

[REQUIRED] Reproduction steps

Play stream in demo player on Sony TVs

11:51:24.115|main| surfaceSize [eventTime=5.98, mediaPos=0.00, window=0, -1, -1]
11:51:24.645|main| volume [eventTime=6.51, mediaPos=0.00, window=0, 0.0]
11:51:24.672|main| timeline [eventTime=6.53, mediaPos=0.00, window=0, periodCount=1, windowCount=1, reason=PLAYLIST_CHANGED
11:51:24.672|main|   period [?]
11:51:24.673|main|   window [?, false, true]
11:51:24.673|main| ]
11:51:24.675|main| state [eventTime=6.54, mediaPos=0.00, window=0, BUFFERING]
11:51:24.676|main| playWhenReady [eventTime=6.54, mediaPos=0.00, window=0, true, USER_REQUEST]
11:51:24.683|main| mediaPeriodCreated [eventTime=6.55, mediaPos=0.00, window=0, period=0]
11:51:24.692|main| loading [eventTime=6.55, mediaPos=0.00, window=0, period=0, true]
11:51:24.696|main| volume [eventTime=6.56, mediaPos=0.00, window=0, period=0, 1.0]
11:51:24.953|main| timeline [eventTime=6.82, mediaPos=47.64, window=0, period=0, periodCount=1, windowCount=1, reason=SOURCE_UPDATE
11:51:24.954|main|   period [?]
11:51:24.954|main|   window [76.96, true, true]
11:51:24.954|main| ]
11:51:25.193|main| decoderEnabled [eventTime=7.05, mediaPos=47.64, window=0, period=0, video]
11:51:25.194|main| decoderEnabled [eventTime=7.06, mediaPos=47.64, window=0, period=0, audio]
11:51:25.196|main| tracks [eventTime=7.06, mediaPos=47.64, window=0, period=0
11:51:25.196|main|   MediaCodecVideoRenderer [
11:51:25.196|main|     Group:0, adaptive_supported=N/A [
11:51:25.196|main|       [X] Track:0, id=0, mimeType=video/avc, codecs=avc1.640028, res=1920x1080, supported=YES
11:51:25.197|main|     ]
11:51:25.197|main|   ]
11:51:25.197|main|   FfmpegAudioRenderer []
11:51:25.197|main|   MediaCodecAudioRenderer [
11:51:25.197|main|     Group:0, adaptive_supported=N/A [
11:51:25.197|main|       [X] Track:0, id=1/257, mimeType=audio/mp4a-latm, codecs=mp4a.40.2, channels=2, sample_rate=44100, supported=YES
11:51:25.197|main|     ]
11:51:25.197|main|   ]
11:51:25.197|main|   FfmpegAudioRenderer []
11:51:25.197|main|   TextRenderer [
11:51:25.197|main|     Group:0, adaptive_supported=N/A [
11:51:25.198|main|       [ ] Track:0, id=1/8448, mimeType=application/cea-608, supported=YES
11:51:25.201|main|     ]
11:51:25.202|main|   ]
11:51:25.202|main|   MetadataRenderer [
11:51:25.202|main|     Group:0, adaptive_supported=N/A [
11:51:25.202|main|       [X] Track:0, id=null, mimeType=application/id3, supported=YES
11:51:25.202|main|     ]
11:51:25.202|main|   ]
11:51:25.203|main|   CameraMotionRenderer []
11:51:25.203|main| ]
11:51:25.262|main| mediaPeriodReadingStarted [eventTime=7.12, mediaPos=47.64, window=0, period=0]
11:51:25.263|main| downstreamFormat [eventTime=7.12, mediaPos=47.64, window=0, period=0, id=0, mimeType=null]
11:51:25.859|main| decoderInitialized [eventTime=7.72, mediaPos=47.64, window=0, period=0, video, OMX.MTK.VIDEO.DECODER.AVC]
11:51:25.859|main| decoderInputFormat [eventTime=7.72, mediaPos=47.64, window=0, period=0, video, id=0, mimeType=video/avc, codecs=avc1.640028, res=1920x1080]
11:51:25.860|main| decoderInputFormat [eventTime=7.72, mediaPos=47.64, window=0, period=0, audio, id=1/257, mimeType=audio/mp4a-latm, codecs=mp4a.40.2, channels=2, sample_rate=44100]
11:51:25.877|main| audioSessionId [eventTime=7.74, mediaPos=47.64, window=0, period=0, 41]
11:51:25.895|main| tracks [eventTime=7.76, mediaPos=47.64, window=0, period=0
11:51:25.896|main|   MediaCodecVideoRenderer [
11:51:25.896|main|     Group:0, adaptive_supported=N/A [
11:51:25.896|main|       [X] Track:0, id=0, mimeType=video/avc, codecs=avc1.640028, res=1920x1080, supported=YES
11:51:25.896|main|     ]
11:51:25.896|main|   ]
11:51:25.897|main|   FfmpegAudioRenderer []
11:51:25.898|main|   MediaCodecAudioRenderer [
11:51:25.898|main|     Group:0, adaptive_supported=N/A [
11:51:25.898|main|       [X] Track:0, id=1/257, mimeType=audio/mp4a-latm, codecs=mp4a.40.2, channels=2, sample_rate=44100, supported=YES
11:51:25.898|main|     ]
11:51:25.898|main|   ]
11:51:25.903|main|   FfmpegAudioRenderer []
11:51:25.904|main|   TextRenderer [
11:51:25.906|main|     Group:0, adaptive_supported=N/A [
11:51:25.907|main|       [X] Track:0, id=1/8448, mimeType=application/cea-608, supported=YES
11:51:25.907|main|     ]
11:51:25.907|main|   ]
11:51:25.907|main|   MetadataRenderer [
11:51:25.908|main|     Group:0, adaptive_supported=N/A [
11:51:25.908|main|       [X] Track:0, id=null, mimeType=application/id3, supported=YES
11:51:25.908|main|     ]
11:51:25.908|main|   ]
11:51:25.908|main|   CameraMotionRenderer []
11:51:25.908|main| ]
11:51:25.967|main| videoSize [eventTime=7.83, mediaPos=47.64, window=0, period=0, 1920, 1080]
11:51:26.021|main| renderedFirstFrame [eventTime=7.88, mediaPos=47.64, window=0, period=0, Surface(name=null)/@0x7b99324]
11:51:26.023|main| state [eventTime=7.88, mediaPos=47.64, window=0, period=0, READY]
11:51:26.046|main| isPlaying [eventTime=7.91, mediaPos=47.64, window=0, period=0, true]
11:51:41.832|main| timeline [eventTime=23.69, mediaPos=28.56, window=0, period=0, periodCount=1, windowCount=1, reason=SOURCE_UPDATE
11:51:41.842|main|   period [?]
11:51:41.842|main|   window [77.56, true, true]
11:51:41.842|main| ]
11:51:52.484|main| timeline [eventTime=34.35, mediaPos=19.16, window=0, period=0, periodCount=1, windowCount=1, reason=SOURCE_UPDATE
11:51:52.927|main|   period [?]
11:51:52.928|main|   window [78.24, true, true]
11:51:52.931|main| ]
11:51:54.859|main| loading [eventTime=36.71, mediaPos=19.16, window=0, period=0, false]
11:52:03.287|main| timeline [eventTime=45.15, mediaPos=9.16, window=0, period=0, periodCount=1, windowCount=1, reason=SOURCE_UPDATE
11:52:03.289|main|   period [?]
11:52:03.290|main|   window [78.84, true, true]
11:52:03.290|main| ]

[REQUIRED] Link to test content

[REQUIRED] A full bug report captured from the device

I do not own device to reproduce it locally. Issue was reported by multiple users and verified using demo app built from different revisions.

[REQUIRED] Version of ExoPlayer being used

dev-v2,

[REQUIRED] Device(s) and version(s) of Android being used

Sdk: 26
Device: BRAVIA_ATV3_4K
Product: BRAVIA_ATV3_4K_EU
Manufacturer: Sony
Model: BRAVIA 4K GB ATV3
Sdk: 28
Device: BRAVIA_UR1_4K
Product: BRAVIA_UR1_4K_EU
Manufacturer: Sony
Model: BRAVIA 4K UR1
tonihei pushed a commit that referenced this issue May 21, 2020
Previously if the AudioCapabilities reported that an encoding/channel count was
supported, DefaultAudioSink could try to play it via passthrough. However,
DefaultAudioSink does not support passthrough of every possible format (for
example, it's likely that AAC passthrough does not work given it's never been
tested and recent GitHub issues indicate that trying to use it leads to no
audio being played).

Add additional checks to make sure the encoding is in the list of encodings that
are known to work with passthrough in DefaultAudioSink.

issue:#7404
PiperOrigin-RevId: 312651358
@tonihei tonihei closed this as completed May 21, 2020
@fgl27
Copy link

fgl27 commented May 22, 2020

After 1bc8503

Content plays fine.

Thank you for the help @andrewlewis

@google google locked and limited conversation to collaborators Jul 21, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

4 participants