anilbeesetti / nextplayer

An Android native video player
GNU General Public License v3.0
1.28k stars 59 forks source link

0MediaCodec AudioRenderer error, index=2, format-Format(2, null, null, audio/ alac, null, -1, und, [-1, -1, -1.0, null], [2, 48000]), format_supported=YES CANCEL OK #878

Open Luiasp opened 3 months ago

Luiasp commented 3 months ago

android 14-8gen2

drogga commented 3 months ago

ALAC - That's Apple's preparatory code for Lossless audio, probably that's why it can't be played, can other players, like Just (Video) Player, VLC, mpv, built-in system one like Google Photos or any other play this and if YES, can you share an example file ?

Luiasp commented 3 months ago

Video ID : 1 Format : HEVC Format/Info : High Efficiency Video Coding Format profile : Main 10 Format level : 6 Format tier : Main Codec ID : hvc1 Duration : 3 min 5 s Bit rate : 20.1 Mb/s Maximum bit rate : 35.6 Mb/s Width : 3 840 pixels Height : 2 160 pixels Display aspect ratio : 16:9 Frame rate mode : Constant Frame rate : 59.940 (60000/1001) FPS Color space : YUV Chroma subsampling : 4:2:0 Bit depth : 10 bits

Audio ID : 2 Format : ALAC Codec ID : alac Duration : 4 min 27 s Duration_LastFrame : -1 ms Bit rate mode : Variable Bit rate : 893 kb/s Maximum bit rate : 1 146 kb/s Channel(s) : 2 channels Sampling rate : 48.0 kHz Bit depth : 16 bits

Luiasp commented 3 months ago

ALAC - That's Apple's preparatory code for Lossless audio, probably that's why it can't be played, can other players, like Just (Video) Player, VLC, mpv, built-in system one like Google Photos or any other play this and if YES, can you share an example file ?

The reply from my mobile phone manufacturer was: The film source is a special ffmpeg resource. The new project of Android 14 has removed the ffmpeg requirement, so it cannot be parsed and played.

I have tried many players, but only MPV plays normally. Players such as VLC and MX lose frames, and just and next do not support alac,

drogga commented 3 months ago

What's the essence of this video, is it a music video or something private, because it would be nice if you can upload it or any other similar with the same audio codec to a file host and paste the link here, but don't get your hopes up, because it might not be supported ever (good for MPV, btw can something for/on PC play it, besides MPV ?).

Luiasp commented 3 months ago

What's the essence of this video, is it a music video or something private, because it would be nice if you can upload it or any other similar with the same audio codec to a file host and paste the link here, but don't get your hopes up, because it might not be supported ever (good for MPV, btw can something for/on PC play it, besides MPV ?).

sample: https://1drv.ms/v/c/444b080e01234475/EVJq5kRN5U9FuYxORwU1ui4BAg1VWzgvXKAf03daEg3ltw

by the way: encoded by myself,and On Qualcomm 865 and Android 11, playback is completely normal hevc(main.10)-2160p-10bit-60fps-alac

Luiasp commented 3 months ago

I tried many players again, including next, but only the hardware+ decoder's color was correct, while the software decoder's color was incorrect and stuck

anilbeesetti commented 3 months ago

@Luiasp It's the limitation of exoplayer itself. The next player won't be able to play them if exoplayer doesn't support these formats