导航

    全志在线开发者论坛

    • 注册
    • 登录
    • 搜索
    • 版块
    • 话题
    • 在线文档
    • 社区主页

    a40i使用xplayerdemo播放视频问题

    GUI
    1
    1
    1374
    正在加载更多帖子
    • 从旧到新
    • 从新到旧
    • 最多赞同
    回复
    • 在新帖中回复
    登录后回复
    此主题已被删除。只有拥有主题管理权限的用户可以查看。
    • L
      one001 LV 4 最后由 编辑

      Snipaste_2022-11-08_18-51-00.png
      按照上面的步骤进行视频播放,执行play的时候打印信息如下,然后屏幕没画面显示,是运行环境有问题吗?
      ++++ video width: 1280, height: 720
      DEBUG : awplayer CallbackForAwPlayer:439: info : preared
      info: prepare ok.
      preparing...

      demoPlayer# play
      DEBUG : awplayer XPlayerStart:771: start
      DEBUG : awplayer XPlayerThread:2140: process message XPLAYER_COMMAND_START.
      DEBUG : awplayer PlayerStart:731: player start
      DEBUG : awplayer BaseCompPostAndWait:61: video decoder receive cmd: start
      debug : cedarc SbmFrameReset:583: ** wait for reset sem
      debug : cedarc ProcessThread:1586: *** post reset sem
      debug : cedarc SbmFrameReset:585: ** wait for reset sem ok
      debug : cedarc SbmFrameReset:590: SbmFrameReset finish
      DEBUG : awplayer BaseCompPostAndWait:61: audio decoder receive cmd: start
      debug : cedarc H264ProcessExtraData2:579: H264ProcessNaluUnit, bNeedFindSPS = 0, bNeedFindPPS = 0
      (Allwinner Audio Middle Layer),line(958) : Create Decoder!!=====
      DEBUG : audioDecItf handleStart:1065: Create libadecoder success...
      (Allwinner Audio Middle Layer),line(592) : AudioDec_Installaudiolib ok
      (Allwinner Audio Middle Layer),line(595) : audio decoder init start ...
      (AllwinnerAlibs),line(626) : libaw_aacdec.so open, use dlopen!
      (AllwinnerAlibs),line(660) : Khan----Loading 'libaw_aacdec.so' success!
      (AllwinnerAlibs),line(858) : pAudioStreamInfo start*****
      (AllwinnerAlibs),line(859) : eCodecFormat :id(4), name(aac low-complexy)
      (AllwinnerAlibs),line(860) : eSubCodecFormat :0
      (AllwinnerAlibs),line(861) : nChannelNum :2
      (AllwinnerAlibs),line(862) : nBitsPerSample :16
      (AllwinnerAlibs),line(863) : nSampleRate :48000
      (AllwinnerAlibs),line(864) : nAvgBitrate :40565
      (AllwinnerAlibs),line(865) : nMaxBitRate :40565
      (AllwinnerAlibs),line(866) : nFileSize :0
      (AllwinnerAlibs),line(867) : eAudioBitstreamSource:0
      (AllwinnerAlibs),line(868) : eDataEncodeType :0
      (AllwinnerAlibs),line(869) : nCodecSpecificDataLen:5
      (AllwinnerAlibs),line(870) : pCodecSpecificData :0xf1b0c8
      (AllwinnerAlibs),line(871) : nFlags :0
      (AllwinnerAlibs),line(872) : nBlockAlign :0
      (AllwinnerAlibs),line(873) : *************pAudioStreamInfo end ******************
      (AAC Decoder),line(36) : init successs...
      (Allwinner Audio Middle Layer),line(603) : AUDIO DECODE INIT OK...0
      DEBUG : awplayer BaseCompPostAndWait:61: subtitle decoder receive cmd: start
      debug : subInternal SubInternalInit:129: ***internal sub_type = 0x201, nCodecSpecificDataLen = 35
      DEBUG : awplayer BaseCompPostAndWait:61: video render receive cmd: start
      DEBUG : awplayer BaseCompPostAndWait:61: audio render receive cmd: start
      INFO : audioRender handleStart:295: audio render process start message.
      DEBUG : audioRender initSoundDevice:478: init sound device.
      DEBUG : audioRender initSoundDevice:486: set sound devide param, sample rate = 48000, channel num = 2.
      DEBUG : awplayer BaseCompPostAndWait:61: subtitle render receive cmd: start
      DEBUG : TinaSoundControl TinaSoundDeviceSetFormat:338: TinaSoundDeviceSetFormat(),sc->sound_status == 2
      DEBUG : TinaSoundControl TinaSoundDeviceSetFormat:340: TinaSoundDeviceSetFormat()
      01-01 00:01:16.381 (W) TinaSoundDeviceSetFormat()>>>sample_rate:48000,channel_num:2,sc->bytes_per_sample:4
      WARNING: awplayer callbackProcess:3491: message 0x40a not handled.
      DEBUG : demuxComponent DemuxThread:2034: process message DEMUX_COMMAND_START.
      playing.

      demoPlayer# debug : cedarc AvcSbmFrameCheckBitStreamType:320: result: bStreamWithStartCode[0], with[0], whitout[1]
      debug : cedarc H264DecodePictureScanType:2688: here3:hCtx->bProgressice=1

      debug : fbm.c FbmCreateBuffer:133: FbmCreate, total fbm number: 10, decoder needed: 3, nWidth=1280, nHeight=720 nAlignStride = 32
      debug : fbm.c FbmCreateBuffer:280: *** calcute nLower2BitBufOffset = 0(0.00), stride = 0
      debug : fbm.c FbmCreateBuffer:280: *** calcute nLower2BitBufOffset = 0(0.00), stride = 0
      debug : fbm.c FbmCreateBuffer:280: *** calcute nLower2BitBufOffset = 0(0.00), stride = 0
      debug : fbm.c FbmCreateBuffer:280: *** calcute nLower2BitBufOffset = 0(0.00), stride = 0
      debug : fbm.c FbmCreateBuffer:280: *** calcute nLower2BitBufOffset = 0(0.00), stride = 0
      debug : fbm.c FbmCreateBuffer:280: *** calcute nLower2BitBufOffset = 0(0.00), stride = 0
      debug : fbm.c FbmCreateBuffer:280: *** calcute nLower2BitBufOffset = 0(0.00), stride = 0
      debug : fbm.c FbmCreateBuffer:280: *** calcute nLower2BitBufOffset = 0(0.00), stride = 0
      DEBUG : awplayer CallbackProcess:2909: first audio pts = 0
      debug : fbm.c FbmCreateBuffer:280: *** calcute nLower2BitBufOffset = 0(0.00), stride = 0
      debug : fbm.c FbmCreateBuffer:280: *** calcute nLower2BitBufOffset = 0(0.00), stride = 0
      debug : fbm.c FbmCreateBuffer:379: *** finish fbmCreateBuffer
      DEBUG : awplayer RenderGetVideoFbmBufInfo:1410: video buffer info: nWidth[1280],nHeight[736],nBufferCount[10],ePixelFormat[5]
      DEBUG : awplayer RenderGetVideoFbmBufInfo:1413: video buffer info: nAlignValue[32],bProgressiveFlag[1],bIsSoftDecoderFlag[0]
      LayerSetHdrInfo,no impliment in linux
      VERBOSE: awplayer <__LayerSetDisplayPixelFormat:832>: Layer set expected pixel format, format = 5
      VERBOSE: awplayer <__LayerSetDisplayBufferSize:715>: __LayerSetDisplayBufferSize, displayWidth = 1280, displayHeight = 736
      VERBOSE: awplayer <__LayerSetVideoWithTwoStreamFlag:1216>: LayerSetIsTwoVideoStreamFlag, flag = 0
      VERBOSE: awplayer <__LayerSetIsSoftDecoderFlag:1232>: LayerSetIsSoftDecoderFlag, flag = 0
      VERBOSE: awplayer <__LayerSetDisplayBufferCount:1141>: LayerSetBufferCount: count = 10
      DEBUG : awplayer setLayerBuffer:119: setLayerBuffer src: PixelFormat(5), nW(1280), nH(736), leftoff(0), topoff(0)
      DEBUG : awplayer setLayerBuffer:123: setLayerBuffer disp: dispW(1280), dispH(736), buffercount(10), bProtectFlag(0), bIsSoftDecoderFlag(0)
      01-01 00:01:16.721 (E) getChipSerail-167
      VERBOSE: awplayer setLayerBuffer:153: 1111init chwd sucess !

      DEBUG : awplayer setLayerBuffer:191: === init id:0 pVirBuf: 0xb09c8000
      DEBUG : awplayer setLayerBuffer:191: === init id:1 pVirBuf: 0xb086f000
      DEBUG : awplayer setLayerBuffer:191: === init id:2 pVirBuf: 0xb0716000
      DEBUG : awplayer setLayerBuffer:191: === init id:3 pVirBuf: 0xb05bd000
      DEBUG : awplayer setLayerBuffer:191: === init id:4 pVirBuf: 0xb0464000
      DEBUG : awplayer setLayerBuffer:191: === init id:5 pVirBuf: 0xb030b000
      DEBUG : awplayer setLayerBuffer:191: === init id:6 pVirBuf: 0xb01b2000
      DEBUG : awplayer setLayerBuffer:191: === init id:7 pVirBuf: 0xb0059000
      DEBUG : awplayer setLayerBuffer:191: === init id:8 pVirBuf: 0xaff00000
      DEBUG : awplayer setLayerBuffer:191: === init id:9 pVirBuf: 0xafda7000
      INFO : awplayer callbackProcess:3350: xxxxxxxxxx video size : width = 1280, height = 720
      ++++ video width: 1280, height: 720
      info: start to show pictures.
      VERBOSE: awplayer <__LayerSetDisplayRegion:798>: __LayerSetDisplayRegion, leftOffset = 0, topOffset = 0, displayWidth = 1280, displayHeight = 720
      DEBUG : awplayer CallbackProcess:2784: first video pts = 0
      DEBUG : audioRender startSoundDevice:703: start sound device.
      TinaSoundDeviceStart(): sc->sound_status = 2
      openSoundDevice() in plug:softvol-music style
      DEBUG : TinaSoundControl TinaSoundDeviceStart:390: after openSoundDevice() ret = 0
      DEBUG : TinaSoundControl setSoundDeviceParams:162: setSoundDeviceParams()
      01-01 00:01:16.754 (E) getChipSerail-167
      DEBUG : awplayer QueueBufferToShow:1304: video pts(0.000)
      01-01 00:01:16.755 (E) getChipSerail-167
      DEBUG : TinaSoundControl setSoundDeviceParams:218: alsa-init: chunksize set to 1024
      DEBUG : TinaSoundControl setSoundDeviceParams:226: alsa-init: fragcount=8
      DEBUG : TinaSoundControl setSoundDeviceParams:236: setSoundDeviceParams():sc->alsa_can_pause = 0
      set PCM music volume : left:255, right:255
      WARNING: audioRender checkSampleRate:642: sample rate change from 48000 to 48000.
      WARNING: audioRender checkSampleRate:644: channel num change from 2 to 2.
      WARNING: audioRender checkSampleRate:646: bitPerSample num change from 16 to 16.
      WARNING: audioRender checkSampleRate:648: if need direct out put flag change from 0 to 1.
      WARNING: audioRender checkSampleRate:650: data type change from 1 to 1.
      TinaSoundDeviceStop():sc->sound_status = 0
      set PCM music volume : left:255, right:255
      close tina mixer...
      DEBUG : TinaSoundControl closeSoundDevice:143: closeSoundDevice()
      DEBUG : TinaSoundControl closeSoundDevice:153: alsa-uninit: pcm closed
      DEBUG : TinaSoundControl TinaSoundDeviceSetFormat:338: TinaSoundDeviceSetFormat(),sc->sound_status == 2
      DEBUG : TinaSoundControl TinaSoundDeviceSetFormat:340: TinaSoundDeviceSetFormat()
      01-01 00:01:16.762 (W) TinaSoundDeviceSetFormat()>>>sample_rate:48000,channel_num:2,sc->bytes_per_sample:4
      WARNING: audioRender checkSampleRate:669: start sound devide again because samplaRate or channelNum change
      TinaSoundDeviceStart(): sc->sound_status = 2
      openSoundDevice() in plug:softvol-music style
      01-01 00:01:16.787 (E) getChipSerail-167
      DEBUG : awplayer <__SubCtrlShow:41>: subtitle show. , id: 0
      DEBUG : awplayer SubCallbackProcess:235: subtitle available.
      01-01 00:01:17.095 (E) getChipSerail-167
      ERROR : awplayer ProcessVideoSync:1264: need to drop this frame
      ERROR : awplayer ProcessVideoSync:1264: need to drop this frame
      ERROR : awplayer ProcessVideoSync:1264: need to drop this frame
      ERROR : awplayer ProcessVideoSync:1264: need to drop this frame
      DEBUG : TinaSoundControl TinaSoundDeviceStart:390: after openSoundDevice() ret = 0
      DEBUG : TinaSoundControl setSoundDeviceParams:162: setSoundDeviceParams()
      ERROR : awplayer ProcessVideoSync:1264: need to drop this frame
      DEBUG : TinaSoundControl setSoundDeviceParams:218: alsa-init: chunksize set to 1024
      DEBUG : TinaSoundControl setSoundDeviceParams:226: alsa-init: fragcount=8
      DEBUG : TinaSoundControl setSoundDeviceParams:236: setSoundDeviceParams():sc->alsa_can_pause = 0
      set PCM music volume : left:255, right:255
      WARNING: awplayer CallbackProcess:3657: reset the timer to 0.040, time difference is -0.315
      01-01 00:01:17.186 (E) getChipSerail-167
      01-01 00:01:17.186 (E) getChipSerail-167
      01-01 00:01:17.267 (E) getChipSerail-167
      01-01 00:01:17.267 (E) getChipSerail-167
      01-01 00:01:17.348 (E) getChipSerail-167
      01-01 00:01:17.348 (E) getChipSerail-167
      01-01 00:01:17.429 (E) getChipSerail-167
      01-01 00:01:17.429 (E) getChipSerail-167
      01-01 00:01:17.503 (E) getChipSerail-167
      01-01 00:01:17.503 (E) getChipSerail-167
      01-01 00:01:17.543 (E) getChipSerail-167
      01-01 00:01:17.543 (E) getChipSerail-167
      01-01 00:01:17.583 (E) getChipSerail-167
      01-01 00:01:17.583 (E) getChipSerail-167
      01-01 00:01:17.623 (E) getChipSerail-167
      01-01 00:01:17.623 (E) getChipSerail-167
      01-01 00:01:17.663 (E) getChipSerail-167
      01-01 00:01:17.663 (E) getChipSerail-167
      01-01 00:01:17.703 (E) getChipSerail-167
      01-01 00:01:17.703 (E) getChipSerail-167
      01-01 00:01:17.743 (E) getChipSerail-167
      01-01 00:01:17.743 (E) getChipSerail-167
      01-01 00:01:17.782 (E) getChipSerail-167
      01-01 00:01:17.783 (E) getChipSerail-167
      01-01 00:01:17.822 (E) getChipSerail-167
      01-01 00:01:17.823 (E) getChipSerail-167
      程序一直打印这个信息,知道视频播完,但是一直没有画面显示。

      1 条回复 最后回复 回复 引用 分享 0
      • 1 / 1
      • First post
        Last post

      Copyright © 2024 深圳全志在线有限公司 粤ICP备2021084185号 粤公网安备44030502007680号

      行为准则 | 用户协议 | 隐私权政策