Tencent / vap

VAP是企鹅电竞开发,用于播放特效动画的实现方案。具有高压缩率、硬件解码等优点。同时支持 iOS,Android,Web 平台。
Other
3.9k stars 522 forks source link

安卓11音频解析失败 #52

Closed NByida closed 3 years ago

NByida commented 3 years ago

使用安卓 11 vap:2.0.11 播放MP4文件时,动画播放正常,声音播放异常,出现嘈杂的杂音

2021-02-07 10:56:06.527 12552-13675/com.tencent.qgame.playerproj E/Parcel: Reading a NULL string not supported here.
2021-02-07 10:56:06.531 12552-15955/com.tencent.qgame.playerproj E/OplusACodec: [setFFmpegAudioFormat:L371]
2021-02-07 10:56:06.532 12552-15955/com.tencent.qgame.playerproj E/ExtendedUtils: Unsupported mime audio/ffmpeg for decoder
2021-02-07 10:56:06.544 12552-15957/com.tencent.qgame.playerproj E/OplusACodec: [GetVideoCodingTypeFromMime:L691] mime:video/avc
hexleo commented 3 years ago

能否提供完整的播放日志,包括什么型号的手机

NByida commented 3 years ago
2021-02-07 11:23:40.362 12552-12552/com.tencent.qgame.playerproj D/ViewRootImpl: enqueueInputEventMotionEvent { action=ACTION_DOWN, actionButton=0, id[0]=0, x[0]=833.0, y[0]=2333.8, toolType[0]=TOOL_TYPE_FINGER, buttonState=0, classification=NONE, metaState=0, flags=0x0, edgeFlags=0x0, pointerCount=1, historySize=0, eventTime=622989817, downTime=622989817, deviceId=3, source=0x1002, displayId=0 }
2021-02-07 11:23:40.363 12552-12552/com.tencent.qgame.playerproj D/ViewRootImpl[AnimVapxDemoActivity]: processMotionEvent MotionEvent { action=ACTION_DOWN, actionButton=0, id[0]=0, x[0]=833.0, y[0]=2333.8, toolType[0]=TOOL_TYPE_FINGER, buttonState=0, classification=NONE, metaState=0, flags=0x0, edgeFlags=0x0, pointerCount=1, historySize=0, eventTime=622989817, downTime=622989817, deviceId=3, source=0x1002, displayId=0 }
2021-02-07 11:23:40.367 12552-12552/com.tencent.qgame.playerproj D/ViewRootImpl[AnimVapxDemoActivity]: dispatchPointerEvent handled=true, event=MotionEvent { action=ACTION_DOWN, actionButton=0, id[0]=0, x[0]=833.0, y[0]=2333.8, toolType[0]=TOOL_TYPE_FINGER, buttonState=0, classification=NONE, metaState=0, flags=0x0, edgeFlags=0x0, pointerCount=1, historySize=0, eventTime=622989817, downTime=622989817, deviceId=3, source=0x1002, displayId=0 }
2021-02-07 11:23:40.434 12552-12552/com.tencent.qgame.playerproj D/ViewRootImpl[AnimVapxDemoActivity]: processMotionEvent MotionEvent { action=ACTION_UP, actionButton=0, id[0]=0, x[0]=833.0, y[0]=2333.8, toolType[0]=TOOL_TYPE_FINGER, buttonState=0, classification=NONE, metaState=0, flags=0x0, edgeFlags=0x0, pointerCount=1, historySize=0, eventTime=622989891, downTime=622989817, deviceId=3, source=0x1002, displayId=0 }
2021-02-07 11:23:40.436 12552-12552/com.tencent.qgame.playerproj D/ViewRootImpl[AnimVapxDemoActivity]: dispatchPointerEvent handled=true, event=MotionEvent { action=ACTION_UP, actionButton=0, id[0]=0, x[0]=833.0, y[0]=2333.8, toolType[0]=TOOL_TYPE_FINGER, buttonState=0, classification=NONE, metaState=0, flags=0x0, edgeFlags=0x0, pointerCount=1, historySize=0, eventTime=622989891, downTime=622989817, deviceId=3, source=0x1002, displayId=0 }
2021-02-07 11:23:40.501 12552-13673/com.tencent.qgame.playerproj I/AnimPlayer.AnimConfigManager: parseConfig cost=21ms enableVersion1=false result=true
2021-02-07 11:23:40.501 12552-13673/com.tencent.qgame.playerproj I/AnimPlayer.AnimPluginManager: onConfigCreate
2021-02-07 11:23:40.502 12552-13673/com.tencent.qgame.playerproj I/AnimPlayer.Src: Src(srcId='1', srcType=TXT, loadType=LOCAL, srcTag='[sTxt1]', bitmap=null, txt='[sTxt1]') color=#FFF18D
2021-02-07 11:23:40.502 12552-13673/com.tencent.qgame.playerproj I/AnimPlayer.Src: Src(srcId='2', srcType=IMG, loadType=NET, srcTag='[sImg1]', bitmap=null, txt='[sImg1]') color=#000000
2021-02-07 11:23:40.509 12552-13673/com.tencent.qgame.playerproj I/AnimPlayer.MixAnimPlugin: load resource totalSrc = 2
2021-02-07 11:23:40.510 12552-13673/com.tencent.qgame.playerproj I/AnimPlayer.MixAnimPlugin: fetch txt 1
2021-02-07 11:23:40.510 12552-13673/com.tencent.qgame.playerproj I/AnimPlayer.MixAnimPlugin: fetch text 1 finish txt is 恭喜 No.2482用户 升神
2021-02-07 11:23:40.510 12552-13673/com.tencent.qgame.playerproj I/AnimPlayer.MixAnimPlugin: fetch image 2
2021-02-07 11:23:40.549 12552-13673/com.tencent.qgame.playerproj I/AnimPlayer.MixAnimPlugin: fetch image 2 finish bitmap is 59379056
2021-02-07 11:23:40.549 12552-13673/com.tencent.qgame.playerproj I/AnimPlayer.MixAnimPlugin: fetchResourceSync cost=40ms
2021-02-07 11:23:40.550 12552-13673/com.tencent.qgame.playerproj I/AnimPlayer.MixAnimPlugin: load resource 2
2021-02-07 11:23:40.550 12552-13673/com.tencent.qgame.playerproj I/AnimPlayer.AnimPlayer: parse AnimConfig(version=2, totalFrames=240, width=672, height=1504, videoWidth=1104, videoHeight=1504, orien=0, fps=20, isMix=true, alphaPointRect=PointRect(x=684, y=4, w=336, h=752), rgbPointRect=PointRect(x=4, y=0, w=672, h=1504), isDefaultConfig=false)
2021-02-07 11:23:40.553 12552-12552/com.tencent.qgame.playerproj I/oplus.android.OplusFrameworkFactoryImpl: get feature:IOplusScreenModeFeature
2021-02-07 11:23:40.553 12552-12552/com.tencent.qgame.playerproj I/oplus.android.OplusFrameworkFactoryImpl: getOplusScreenModeFeature
2021-02-07 11:23:40.565 12552-12552/com.tencent.qgame.playerproj I/AnimPlayer.AnimView: onSurfaceTextureAvailable
2021-02-07 11:23:40.565 12552-13673/com.tencent.qgame.playerproj I/AnimPlayer.Decoder: prepareRender
2021-02-07 11:23:40.607 12552-13675/com.tencent.qgame.playerproj I/AnimPlayer.MediaUtil: Extractor selected track 0 (audio/ffmpeg): {sample-format=8, sample-rate=44100, track-id=1, file-format=video/mp4, mime=audio/ffmpeg, useFFmpeg=1, bitrate=110862, aac-profile=2, block-align=0, pcm-encoding=4, durationUs=11963991, channel-count=1, codec-id=86018, bits-per-sample=0, csd-0=java.nio.HeapByteBuffer[pos=0 lim=5 cap=5]}
2021-02-07 11:23:40.607 12552-13673/com.tencent.qgame.playerproj I/AnimPlayer.MediaUtil: Extractor selected track 1 (video/avc): {csd-1=java.nio.HeapByteBuffer[pos=0 lim=8 cap=8], track-id=2, file-format=video/mp4, thumbnail-time=6000000, durationUs=12000000, level=256, mime=video/avc, profile=65536, width=1104, bitrate=2099161, csd-0=java.nio.HeapByteBuffer[pos=0 lim=27 cap=27], height=1504}
2021-02-07 11:23:40.608 12552-13673/com.tencent.qgame.playerproj I/AnimPlayer.HardDecoder: Video size is 1104 x 1504
2021-02-07 11:23:40.608 12552-13673/com.tencent.qgame.playerproj I/AnimPlayer.AnimPluginManager: onRenderCreate
2021-02-07 11:23:40.608 12552-13673/com.tencent.qgame.playerproj I/AnimPlayer.MixAnimPlugin: mix render init
2021-02-07 11:23:40.608 12552-13673/com.tencent.qgame.playerproj I/AnimPlayer.MixRender: init srcId=1
2021-02-07 11:23:40.609 12552-13673/com.tencent.qgame.playerproj I/AnimPlayer.MixRender: textureProgram=6,textureId=2
2021-02-07 11:23:40.609 12552-13673/com.tencent.qgame.playerproj I/AnimPlayer.MixRender: init srcId=2
2021-02-07 11:23:40.610 12552-13673/com.tencent.qgame.playerproj I/AnimPlayer.MixRender: textureProgram=6,textureId=3
2021-02-07 11:23:40.610 12552-13673/com.tencent.qgame.playerproj I/AnimPlayer.MaskAnimPlugin: mask render init
2021-02-07 11:23:40.610 12552-13675/com.tencent.qgame.playerproj E/Parcel: Reading a NULL string not supported here.
2021-02-07 11:23:40.610 12552-13675/com.tencent.qgame.playerproj D/ACodec: ACodec() ro.oplus.audio.effect.type = dolby ro.oplus.audio.dolby.type = none
2021-02-07 11:23:40.610 12552-13675/com.tencent.qgame.playerproj I/ACodec: new ACodec()
2021-02-07 11:23:40.610 12552-13675/com.tencent.qgame.playerproj D/ACodec: Now uninitialized
2021-02-07 11:23:40.610 12552-13675/com.tencent.qgame.playerproj D/OplusACodec: OplusACodec [113]: 
2021-02-07 11:23:40.610 12552-13675/com.tencent.qgame.playerproj D/OplusACodec: getBufferChannel: New
2021-02-07 11:23:40.611 12552-13673/com.tencent.qgame.playerproj I/AnimPlayer.HardDecoder: Video MIME is video/avc
2021-02-07 11:23:40.612 12552-13673/com.tencent.qgame.playerproj D/ACodec: ACodec() ro.oplus.audio.effect.type = dolby ro.oplus.audio.dolby.type = none
2021-02-07 11:23:40.612 12552-13673/com.tencent.qgame.playerproj I/ACodec: new ACodec()
2021-02-07 11:23:40.612 12552-13673/com.tencent.qgame.playerproj D/ACodec: Now uninitialized
2021-02-07 11:23:40.612 12552-13673/com.tencent.qgame.playerproj D/OplusACodec: OplusACodec [113]: 
2021-02-07 11:23:40.612 12552-16976/com.tencent.qgame.playerproj I/OMXClient: IOmx service obtained
2021-02-07 11:23:40.612 12552-13673/com.tencent.qgame.playerproj D/OplusACodec: getBufferChannel: New
2021-02-07 11:23:40.612 12552-16976/com.tencent.qgame.playerproj I/ACodec: Successfully allocate component [OMX.ffmpeg.atrial.decoder]
2021-02-07 11:23:40.612 12552-16976/com.tencent.qgame.playerproj D/ACodec: AllocateComponent OMX.ffmpeg.atrial.decoder success
2021-02-07 11:23:40.612 12552-16976/com.tencent.qgame.playerproj D/ACodec: [OMX.ffmpeg.atrial.decoder] Now Loaded
2021-02-07 11:23:40.613 12552-16976/com.tencent.qgame.playerproj E/OplusACodec: [setFFmpegAudioFormat:L371]
2021-02-07 11:23:40.613 12552-16976/com.tencent.qgame.playerproj I/ACodec: configureCodec() mime = audio/ffmpeg
2021-02-07 11:23:40.613 12552-16976/com.tencent.qgame.playerproj D/OplusUtils: ACodec getComponentRole [92]: mime:audio/ffmpeg
2021-02-07 11:23:40.613 12552-16976/com.tencent.qgame.playerproj E/ExtendedUtils: Unsupported mime audio/ffmpeg for decoder
2021-02-07 11:23:40.614 12552-16978/com.tencent.qgame.playerproj I/OMXClient: IOmx service obtained
2021-02-07 11:23:40.614 12552-16978/com.tencent.qgame.playerproj D/OplusDualHeadPhoneEx: GetOplusDualHeadPhoneEx return exist one.
2021-02-07 11:23:40.614 12552-16978/com.tencent.qgame.playerproj D/OplusDualHeadPhoneEx: GetOplusDualHeadPhoneEx return exist one.
2021-02-07 11:23:40.614 12552-16976/com.tencent.qgame.playerproj D/ACodec: configureCodec: decoder OMX.ffmpeg.atrial.decoder output format pcm encoding converter from 2 to 4
2021-02-07 11:23:40.614 12552-16976/com.tencent.qgame.playerproj W/ExtendedACodec: Failed to get extension for extradata parameter
2021-02-07 11:23:40.614 12552-16976/com.tencent.qgame.playerproj D/ACodec: [OMX.ffmpeg.atrial.decoder] Now Loaded->Idle
2021-02-07 11:23:40.614 12552-16976/com.tencent.qgame.playerproj D/ACodec: [OMX.ffmpeg.atrial.decoder] Allocating 4 buffers of size 32768 (from 32768 using PresetByteBuffer) on input port
2021-02-07 11:23:40.616 12552-16976/com.tencent.qgame.playerproj D/ACodec: [OMX.ffmpeg.atrial.decoder] Allocating 4 buffers of size 18432 (from 18432 using PresetByteBuffer) on output port
2021-02-07 11:23:40.618 12552-16976/com.tencent.qgame.playerproj D/ACodec: [OMX.ffmpeg.atrial.decoder] Now Idle->Executing
2021-02-07 11:23:40.618 12552-16976/com.tencent.qgame.playerproj D/ACodec: [OMX.ffmpeg.atrial.decoder] Now Executing
2021-02-07 11:23:40.620 12552-13675/com.tencent.qgame.playerproj D/AudioTrack: set() streamType -1, sampleRate 44100, format 0x1, channelMask 0x1, frameCount 3536, flags #0, notificationFrames 0, sessionId 0, transferType 3, uid -1, pid -1 cbf 1
2021-02-07 11:23:40.620 12552-13675/com.tencent.qgame.playerproj D/AudioTrack: gATLogLevel = 0
2021-02-07 11:23:40.620 12552-13675/com.tencent.qgame.playerproj D/AudioTrack: set(): Building AudioTrack with attributes: usage=1 content=2 flags=0x800 tags=[]
2021-02-07 11:23:40.624 12552-16978/com.tencent.qgame.playerproj I/ACodec: Successfully allocate component [OMX.qcom.video.decoder.avc]
2021-02-07 11:23:40.624 12552-16978/com.tencent.qgame.playerproj D/ACodec: AllocateComponent OMX.qcom.video.decoder.avc success
2021-02-07 11:23:40.624 12552-16978/com.tencent.qgame.playerproj D/ACodec: [OMX.qcom.video.decoder.avc] Now Loaded
2021-02-07 11:23:40.625 12552-16977/com.tencent.qgame.playerproj D/SurfaceUtils: connecting to surface 0x7e530fb010, reason connectToSurface
2021-02-07 11:23:40.625 12552-16977/com.tencent.qgame.playerproj I/MediaCodec: [OMX.qcom.video.decoder.avc] setting surface generation to 12853263
2021-02-07 11:23:40.625 12552-16977/com.tencent.qgame.playerproj D/SurfaceUtils: disconnecting from surface 0x7e530fb010, reason connectToSurface(reconnect)
2021-02-07 11:23:40.626 12552-16977/com.tencent.qgame.playerproj D/SurfaceUtils: connecting to surface 0x7e530fb010, reason connectToSurface(reconnect)
2021-02-07 11:23:40.626 12552-16978/com.tencent.qgame.playerproj D/RefBase: RefBase: Explicit destruction, weak count = 0 (in 0x7e59658840)
2021-02-07 11:23:40.626 12552-16978/com.tencent.qgame.playerproj W/RefBase: CallStack::getCurrentInternal not linked, returning null
2021-02-07 11:23:40.626 12552-16978/com.tencent.qgame.playerproj W/RefBase: CallStack::logStackInternal not linked
2021-02-07 11:23:40.626 12552-16978/com.tencent.qgame.playerproj D/OplusACodec: [configureCodec:L812] OplusFeedbackInfo  mFeedbackID:544013252608
2021-02-07 11:23:40.626 12552-16978/com.tencent.qgame.playerproj D/IAtlas: IAtlas::init CallingPid 12552
2021-02-07 11:23:40.626 12552-16978/com.tencent.qgame.playerproj D/IAtlas: IAtlas::init this 0x7eb4c3de40
2021-02-07 11:23:40.626 12552-13675/com.tencent.qgame.playerproj D/AudioTrack: createTrack state 0 output.outputId=21
2021-02-07 11:23:40.626 12552-16978/com.tencent.qgame.playerproj I/ACodec: configureCodec() mime = video/avc
2021-02-07 11:23:40.626 12552-16978/com.tencent.qgame.playerproj D/OplusUtils: ACodec getComponentRole [92]: mime:video/avc
2021-02-07 11:23:40.627 12552-16978/com.tencent.qgame.playerproj I/ExtendedACodec: setupVideoDecoder()
2021-02-07 11:23:40.627 12552-16978/com.tencent.qgame.playerproj E/OplusACodec: [GetVideoCodingTypeFromMime:L691] mime:video/avc
2021-02-07 11:23:40.627 12552-16978/com.tencent.qgame.playerproj I/ExtendedACodec: Decoder will be in frame by frame mode
2021-02-07 11:23:40.627 12552-16978/com.tencent.qgame.playerproj W/ExtendedACodec: Failed to set frame packing format on component
2021-02-07 11:23:40.628 12552-16978/com.tencent.qgame.playerproj D/ACodec: [OMX.qcom.video.decoder.avc] input format is AMessage(what = 0x00000000) = {
      int32_t adaptive-playback = 1
      int32_t roi-on = 0
      string mime = "video/avc"
      int32_t width = 1104
      int32_t height = 1504
    }
2021-02-07 11:23:40.628 12552-16978/com.tencent.qgame.playerproj D/ACodec: [OMX.qcom.video.decoder.avc] output format is AMessage(what = 0x00000000) = {
      int32_t color-range = 2
      int32_t color-standard = 1
      int32_t color-transfer = 3
      int32_t roi-on = 0
      string mime = "video/raw"
      int32_t stride = 1152
      int32_t slice-height = 1504
      int32_t color-format = 2141391878
      Rect crop(0, 0, 1103, 1503)
      int32_t android._dataspace = 260
      Buffer hdr-static-info = {
        00000000:  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  ................
        00000010:  00 00 00 00 00 00 00 00  00                       .........
      }
      int32_t width = 1104
      int32_t height = 1504
    }
2021-02-07 11:23:40.629 12552-13675/com.tencent.qgame.playerproj W/AudioTrack: Use of stream types is deprecated for operations other than volume control
2021-02-07 11:23:40.629 12552-13675/com.tencent.qgame.playerproj W/AudioTrack: See the documentation of AudioTrack() for what to use instead with android.media.AudioAttributes to qualify your playback use case
2021-02-07 11:23:40.629 12552-13675/com.tencent.qgame.playerproj D/AudioTrack: start(1646): prior state:STATE_STOPPED output 21 stream 3 session 11985
2021-02-07 11:23:40.629 12552-16978/com.tencent.qgame.playerproj D/ACodec: [OMX.qcom.video.decoder.avc] Now Loaded->Idle
2021-02-07 11:23:40.629 12552-16978/com.tencent.qgame.playerproj D/ACodec: [OMX.qcom.video.decoder.avc] Allocating 12 buffers of size 7077888 (from 7077888 using PresetByteBuffer) on input port
2021-02-07 11:23:40.633 12552-16976/com.tencent.qgame.playerproj W/ACodec: [OMX.ffmpeg.atrial.decoder] BAD CODEC: Output format changed unexpectedly from (diff) AMessage(what = 0x00000000) = {
          int32_t pcm-encoding = 4
        } to (diff) AMessage(what = 0x00000000) = {
          int32_t pcm-encoding = 2
        }
2021-02-07 11:23:40.634 12552-16978/com.tencent.qgame.playerproj D/SurfaceUtils: set up nativeWindow 0x7e530fb010 for 1104x1504, color 0x7fa30c06, rotation 0, usage 0x20002900
2021-02-07 11:23:40.635 12552-16978/com.tencent.qgame.playerproj D/ACodec: [OMX.qcom.video.decoder.avc] Now Idle->Executing
2021-02-07 11:23:40.635 12552-16978/com.tencent.qgame.playerproj D/ACodec: [OMX.qcom.video.decoder.avc] Now Executing
2021-02-07 11:23:40.644 12552-12579/com.tencent.qgame.playerproj W/System: A resource failed to call release. 
2021-02-07 11:23:40.646 12552-16978/com.tencent.qgame.playerproj D/ACodec: [OMX.qcom.video.decoder.avc] output format is AMessage(what = 0x00000000) = {
      int32_t color-range = 2
      int32_t color-standard = 1
      int32_t color-transfer = 3
      int32_t roi-on = 0
      string mime = "video/raw"
      int32_t stride = 1152
      int32_t slice-height = 1504
      int32_t color-format = 2141391878
      Rect crop(0, 0, 1103, 1503)
      int32_t android._dataspace = 260
      Buffer hdr-static-info = {
        00000000:  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  ................
        00000010:  00 00 00 00 00 00 00 00  00                       .........
      }
      int32_t width = 1104
      int32_t height = 1504
    }
2021-02-07 11:23:40.867 12552-13674/com.tencent.qgame.playerproj I/AnimPlayer.Decoder: onVideoStart
2021-02-07 11:23:40.867 12552-13674/com.tencent.qgame.playerproj I/AnimSimpleDemoActivity: onVideoStart
2021-02-07 11:23:41.637 12552-16978/com.tencent.qgame.playerproj I/OplusFeedbackInfo: [sendFPSInfo:L314] mInputBufCnt = 20 fps, mOutputBufCnt = 18 fps, mRenderFrameCnt = 16 fps
2021-02-07 11:23:42.638 12552-16978/com.tencent.qgame.playerproj I/OplusFeedbackInfo: [sendFPSInfo:L314] mInputBufCnt = 20 fps, mOutputBufCnt = 20 fps, mRenderFrameCnt = 20 fps
2021-02-07 11:23:43.639 12552-16978/com.tencent.qgame.playerproj I/OplusFeedbackInfo: [sendFPSInfo:L314] mInputBufCnt = 20 fps, mOutputBufCnt = 20 fps, mRenderFrameCnt = 20 fps
2021-02-07 11:23:44.639 12552-16978/com.tencent.qgame.playerproj I/OplusFeedbackInfo: [sendFPSInfo:L314] mInputBufCnt = 20 fps, mOutputBufCnt = 20 fps, mRenderFrameCnt = 20 fps
2021-02-07 11:23:45.640 12552-16978/com.tencent.qgame.playerproj I/OplusFeedbackInfo: [sendFPSInfo:L314] mInputBufCnt = 20 fps, mOutputBufCnt = 20 fps, mRenderFrameCnt = 20 fps
2021-02-07 11:23:46.642 12552-16978/com.tencent.qgame.playerproj I/OplusFeedbackInfo: [sendFPSInfo:L314] mInputBufCnt = 20 fps, mOutputBufCnt = 20 fps, mRenderFrameCnt = 20 fps
2021-02-07 11:23:47.642 12552-16978/com.tencent.qgame.playerproj I/OplusFeedbackInfo: [sendFPSInfo:L314] mInputBufCnt = 20 fps, mOutputBufCnt = 20 fps, mRenderFrameCnt = 20 fps
2021-02-07 11:23:48.644 12552-16978/com.tencent.qgame.playerproj I/OplusFeedbackInfo: [sendFPSInfo:L314] mInputBufCnt = 20 fps, mOutputBufCnt = 20 fps, mRenderFrameCnt = 20 fps
2021-02-07 11:23:49.645 12552-16978/com.tencent.qgame.playerproj I/OplusFeedbackInfo: [sendFPSInfo:L314] mInputBufCnt = 20 fps, mOutputBufCnt = 20 fps, mRenderFrameCnt = 20 fps
2021-02-07 11:23:50.645 12552-16978/com.tencent.qgame.playerproj I/OplusFeedbackInfo: [sendFPSInfo:L314] mInputBufCnt = 20 fps, mOutputBufCnt = 20 fps, mRenderFrameCnt = 20 fps
2021-02-07 11:23:51.646 12552-16978/com.tencent.qgame.playerproj I/OplusFeedbackInfo: [sendFPSInfo:L314] mInputBufCnt = 20 fps, mOutputBufCnt = 20 fps, mRenderFrameCnt = 20 fps
2021-02-07 11:23:52.648 12552-16978/com.tencent.qgame.playerproj I/OplusFeedbackInfo: [sendFPSInfo:L314] mInputBufCnt = 20 fps, mOutputBufCnt = 20 fps, mRenderFrameCnt = 20 fps
2021-02-07 11:23:52.820 12552-13673/com.tencent.qgame.playerproj I/AnimPlayer.HardDecoder: release
2021-02-07 11:23:52.821 12552-16977/com.tencent.qgame.playerproj I/OplusFeedbackInfo: [sendFeedbackInfo:L278]  send:MM_FB_EventID#21001#ClientPid#12552#ReportLevel#0#isHDRVideo#false#timeUsage#12#videoBitRate#2099161#videoComponent#OMX.qcom.video.decoder.avc#videoHeight#1504#videoLevel#256#videoMime#video/avc#videoProfile#65536#videoWidth#1104
2021-02-07 11:23:52.823 12552-16978/com.tencent.qgame.playerproj D/ACodec: [OMX.qcom.video.decoder.avc] Now Executing->Idle
2021-02-07 11:23:52.850 12552-16978/com.tencent.qgame.playerproj D/ACodec: [OMX.qcom.video.decoder.avc] Now Idle->Loaded
2021-02-07 11:23:52.850 12552-16978/com.tencent.qgame.playerproj D/ACodec: [OMX.qcom.video.decoder.avc] Now Loaded
2021-02-07 11:23:52.850 12552-16977/com.tencent.qgame.playerproj D/SurfaceUtils: disconnecting from surface 0x7e530fb010, reason disconnectFromSurface
2021-02-07 11:23:52.853 12552-13673/com.tencent.qgame.playerproj I/AnimPlayer.AnimPluginManager: onRelease
2021-02-07 11:23:52.855 12552-13673/com.tencent.qgame.playerproj I/AnimPlayer.Decoder: onVideoComplete
2021-02-07 11:23:52.855 12552-13673/com.tencent.qgame.playerproj I/AnimSimpleDemoActivity: onVideoComplete
2021-02-07 11:23:52.855 12552-12552/com.tencent.qgame.playerproj I/AnimPlayer.AnimView: onSurfaceTextureDestroyed
2021-02-07 11:23:52.855 12552-13673/com.tencent.qgame.playerproj I/AnimPlayer.AnimPluginManager: onDestroy
2021-02-07 11:23:52.855 12552-12552/com.tencent.qgame.playerproj D/OplusBaseTextureView: onDetachedFromWindowInternal
2021-02-07 11:23:52.858 12552-13673/com.tencent.qgame.playerproj I/AnimPlayer.Decoder: onVideoDestroy
2021-02-07 11:23:52.858 12552-13673/com.tencent.qgame.playerproj I/AnimSimpleDemoActivity: onVideoDestroy
2021-02-07 11:23:52.858 12552-16978/com.tencent.qgame.playerproj D/ACodec: Now uninitialized
2021-02-07 11:23:52.860 12552-16977/com.tencent.qgame.playerproj D/OplusACodec: ~OplusACodec [127]: 
2021-02-07 11:23:52.860 12552-16977/com.tencent.qgame.playerproj I/ACodec: ~ACodec()
2021-02-07 11:23:52.930 12552-16976/com.tencent.qgame.playerproj D/ACodec: [OMX.ffmpeg.atrial.decoder] Now Executing->Idle
2021-02-07 11:23:52.934 12552-16976/com.tencent.qgame.playerproj D/ACodec: [OMX.ffmpeg.atrial.decoder] Now Idle->Loaded
2021-02-07 11:23:52.934 12552-16976/com.tencent.qgame.playerproj D/ACodec: [OMX.ffmpeg.atrial.decoder] Now Loaded
2021-02-07 11:23:52.936 12552-13675/com.tencent.qgame.playerproj D/AudioTrack: pause(1646): prior state:STATE_ACTIVE output 21 stream 3 session 11985
2021-02-07 11:23:52.937 12552-16976/com.tencent.qgame.playerproj D/ACodec: Now uninitialized
2021-02-07 11:23:52.937 12552-13675/com.tencent.qgame.playerproj D/AudioTrack: flush(1646): prior state:STATE_PAUSED
2021-02-07 11:23:52.938 12552-13675/com.tencent.qgame.playerproj D/AudioTrack: stop(1646): prior state:STATE_FLUSHED output 21 stream 3 session 11985
2021-02-07 11:23:52.938 12552-13675/com.tencent.qgame.playerproj D/AudioTrack: stop(1646): prior state:STATE_FLUSHED output 21 stream 3 session 11985
2021-02-07 11:23:52.938 12552-13675/com.tencent.qgame.playerproj D/AudioTrack: ~AudioTrack, releasing mStatus =0 session id 11985 from 12552 on behalf of 12552
2021-02-07 11:23:52.939 12552-13675/com.tencent.qgame.playerproj D/AudioTrack: stop(1646): prior state:STATE_FLUSHED output 21 stream 3 session 11985
2021-02-07 11:23:52.940 12552-16976/com.tencent.qgame.playerproj D/OplusACodec: ~OplusACodec [127]: 
2021-02-07 11:23:52.940 12552-16976/com.tencent.qgame.playerproj I/ACodec: ~ACodec()
NByida commented 3 years ago

手机oppo Reno5 pro+ 5G 系统 Android 11

hexleo commented 3 years ago

应该是这款手机有个解码格式不支持,但还是去播放了,我先看看多谢反馈

hexleo commented 3 years ago

你好,做了个音频解码格式的判断,能否麻烦你帮忙验证下,需要切换到这个分支:bugfix/android_audio

手头上没有找到你那台机器,没有复现问题,需要你帮忙验证下

NByida commented 3 years ago

mime :audio/ffmpeg 声音播放失败,杂音问题没有了

hexleo commented 3 years ago

Android2.0.12 版本解决此问题 MediaExtractor有兼容问题,增加解码类型判断,不认识的解码类型则不播放音频

hexleo commented 3 years ago

这个问题联系了OPPO的相关人员,得到回复如下:“Oppo R系统改动导致,后面会有修复方案”。这个问题需要等他们修复,修复后声音就能播放