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

播放几率性的不显示画面(有声) #318

Open
loveanao opened this issue Mar 7, 2020 · 0 comments
Open

播放几率性的不显示画面(有声) #318

loveanao opened this issue Mar 7, 2020 · 0 comments

Comments

@loveanao
Copy link

loveanao commented Mar 7, 2020

服务器OS:ubuntu 18.4
流媒体服务器,nginx +nginx-rtmp-moudle
网络场景:内网

开发环境AS3.5.3
目标编译版本27
只使用armeabi-v7a

KSYMediaPlayer_Android 使用SDK版本2.2.3
拉流文件格式 flv h.264编码

设置按照官网设置

用以下设置自由组合
设置 android:hardwareAccelerated="true"
设置 KSYMediaPlayer.KSYDecodeMode.KSY_DECODE_MODE_AUTO
设置 KSYMediaPlayer.KSYDecodeMode.KSY_DECODE_MODE_SOFTWARE
设置 KSYMediaPlayer.KSYDecodeMode.KSY_DECODE_MODE_HARDWARE

使用 KSYMediaPlayer 和 KSYTextureView 均出现

会间歇性的不显示画面,语音一直正常获取

不显示画面
SurfaceHolder.Callback的 surfaceChanged仅回调2次

显示画面
SurfaceHolder.Callback的 surfaceChanged 会回调6次

设置 KSYMediaPlayer.KSYDecodeMode.KSY_DECODE_MODE_SOFTWARE
显示画面会多显示如下日志,

/KSYMediaPlayer: KSYMediaPlayer Use Software Decode and SDK Version is:2.2.3, BufferTimeMax:0.5
/KSYMediaPlayer: SDL_VoutFFmpeg_CreateOverlay(w=1280, h=720, fmt=I420(0x30323449, dp=0x8e43a280)
/KSYMediaPlayer: [GLES2] Version = OpenGL ES 3.2 v1.r14p0-00cet0.9500166da1423e9591394b068a52b758
/KSYMediaPlayer: [GLES2] Vendor = ARM
/KSYMediaPlayer: [GLES2] Renderer = Mali-G71
/KSYMediaPlayer: [GLES2] Extensions = GL_EXT_debug_marker GL_ARM_rgba8 GL_ARM_mali_shader_binary GL_OES_depth24 GL_OES_depth_texture
/KSYMediaPlayer: create render yuv420p

设置 KSYMediaPlayer.KSYDecodeMode.KSY_DECODE_MODE_SOFTWARE
显示画面会多显示如下日志,
KSYMediaPlayer: SDL_VoutAMediaCodec_CreateOverlay(w=1280, h=720, fmt=_AMC vout=0x8dfd8828)
KSYMediaPlayer: AMEDIACODEC__INFO_OUTPUT_FORMAT_CHANGED
width-height: (1280 x 720)
color-format: (FormatUnknown: 0x32315679)
stride: (1280)
slice-height: (736)
crop: (0, 0, 1279, 719)

从日志分析来看,应该是某个实例没有正常创建,
由于看不到源码,难以分析

测试手机 华为mate 20 pro ud (android 10 ), 红米6a(android 9) nexus 6(android 7.1) 出现

@loveanao loveanao changed the title 播放几率性的不显示画面 播放几率性的不显示画面(有声) Mar 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant