Open AlEilers opened 4 years ago
It seems like the audio_version
of the Mpeg2AudioStreamReader
is not deteminded correctly.
When I hard code mimeType = MimeTypes.AUDIO_MPEG_L2
this Exception isn't occuring.
VLC has no problem finding the correct codec:
Originale ID: 1702
Codec: MPEG Audio layer 1/2 (mpga)
Language: Deutsch
Typ: Audio
Channels: Stereo
Sample Rate: 48000 Hz
Bits per Sample: 32
Bitrate: 192 kB/s
Adding the ExoPlayer FfmpegAudioRenderer
before the MediaCodecAudioRenderer
in TvheadendRenderersFactory#buildAudioRenderers(...)
solves the issue with audio_version = 3
aka MimeTypes.AUDIO_MPEG
. It looks like MediaCodecAudioRenderer
is used to decode MimeTypes.AUDIO_MPEG
and it fails.
https://github.com/google/ExoPlayer/tree/release-v2/extensions/ffmpeg#using-the-extension
Since the Nvidia Shield TV was updated to Android 9, I can no longer watch SD Channels only HD channels.
I had a look at the Logcat an saw that the ExoPlayer seems to throw an Exception