nova-video-player / aos-AVP

NOVA opeN sOurce Video plAyer: main repository to build them all
Apache License 2.0
3.32k stars 197 forks source link

[FEAT]: Add option to use Android native video/audio API for better performance and fluent playback #1176

Open JJD2K opened 4 months ago

JJD2K commented 4 months ago

Description

I saw a lot of reports about audio/video/passthrough issues including from myself. As you have an option "Use native video player" I thought it would be better to have an option to use native Android API as it seems to work better than current NOVA audio/video decoders.

https://github.com/google/ExoPlayer?tab=readme-ov-file or the newer https://github.com/androidx/media

This basic player for example: https://play.google.com/store/apps/details?id=com.brouken.player&hl=en_US&gl=US

uses ExoPlayer and plays fluently with passthrough or multichannel PCM files that NOVA can not play at all. It supports DV,HDR10+ too. Its audio passthrough works well too.

It seems that latest Android API performs better than libraries like ffmpeg.

I have tried the option "Use native video player", but it can not see the subtitles - I guess you have to set startup directory for the process - the directory of the video file.

Additional information

No response

Pentaphon commented 4 months ago

Duplicate of https://github.com/nova-video-player/aos-AVP/issues/401