tplayerdemo播放视频bug
-
刚收到的板子,使用默认的固件,屏幕用的是1080P的HDMI屏
系统启动后运行如下命令root@TinaLinux:/sys/kernel/debug/dispdbg# history 0 cd /sys/kernel/debug/dispdbg 1 echo disp0 > name; echo switch1 > command; echo 4 10 0 0 0x4 0x101 0 0 0 8 > param; echo 1 > start; 2 tplayerdemo /usr/lib/tt-data/01-1080P-HEVC-AAC-60F.mkv&
出现大段的类似错误
DEBUG : cedarc <HevcParseExtraData:3250>: ****can not find the stream type! DEBUG : cedarc <HevcParseExtraData:3250>: ****can not find the stream type! DEBUG : cedarc <HevcParseExtraData:3250>: ****can not find the stream type! DEBUG : cedarc <HevcParseExtraData:3250>: ****can not find the stream type! DEBUG : cedarc <HevcParseExtraData:3250>: ****can not find the stream type! DEBUG : cedarc <HevcParseExtraData:3250>: ****can not find the stream type! DEBUG : cedarc <HevcParseExtraData:3250>: ****can not find the stream type! DEBUG : cedarc <HevcParseExtraData:3250>: ****can not find the stream type! DEBUG : cedarc <HevcParseExtraData:3250>: ****can not find the stream type! DEBUG : cedarc <HevcParseExtraData:3250>: ****can not find the stream type! DEBUG : cedarc <HevcParseExtraData:3250>: ****can not find the stream type! DEBUG : cedarc <HevcParseExtraData:3250>: ****can not find the stream type! DEBUG : cedarc <HevcParseExtraData:3250>: ****can not find the stream type!
几秒钟后视频开始播放可以听到画面和声音
但是只播了几秒钟就卡住了,打印信息如下DEBUG : awplayer <BaseCompPostAndWait:61>: audio decoder receive cmd: start (Allwinner Audio Middle Layer),line(971) : Create Decoder!!===== DEBUG : audioDecItf <handleStart:1065>: Create libadecoder success... (Allwinner Audio Middle Layer),line(603) : AudioDec_Installaudiolib ok (Allwinner Audio Middle Layer),line(606) : audio decoder init start ... (AllwinnerAlibs),line(50) : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Audio <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< tag : audiocodec-v1.2 branch: new commit: 3ba65962c01cbf1280ddda19d843009b6ef8ce85 date : Tue Jan 8 16:25:27 2019 +0800 ---------------------------------------------------------------------- (AllwinnerAlibs),line(700) : ----Loading so success! (AllwinnerAlibs),line(902) : *************pAudioStreamInfo start****************** (AllwinnerAlibs),line(903) : eCodecFormat :id(4), name(aac low-complexy) (AllwinnerAlibs),line(904) : eSubCodecFormat :0 (AllwinnerAlibs),line(905) : nChannelNum :2 (AllwinnerAlibs),line(906) : nBitsPerSample :32 (AllwinnerAlibs),line(907) : nSampleRate :48000 (AllwinnerAlibs),line(908) : nAvgBitrate :0 (AllwinnerAlibs),line(909) : nMaxBitRate :0 (AllwinnerAlibs),line(910) : nFileSize :0 (AllwinnerAlibs),line(911) : eAudioBitstreamSource:0 (AllwinnerAlibs),line(912) : eDataEncodeType :1 (AllwinnerAlibs),line(913) : nCodecSpecificDataLen:5 (AllwinnerAlibs),line(914) : pCodecSpecificData :0x3fc806b950 (AllwinnerAlibs),line(915) : nFlags :0 (AllwinnerAlibs),line(916) : nBlockAlign :0 (AllwinnerAlibs),line(917) : *************pAudioStreamInfo end ****************** (AAC Decoder),line(36) : init successs... (Allwinner Audio Middle Layer),line(614) : AUDIO DECODE INIT OK...0 DEBUG : awplayer <BaseCompPostAndWait:61>: video render receive cmd: start DEBUG : awplayer <handleStart:640>: video render handleStart:p->eStatus = 0 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 : tsoundcontrol <TSoundDeviceSetFormat:193>: TinaSoundDeviceSetFormat(),sc->sound_status == 2 DEBUG : tsoundcontrol <TSoundDeviceSetFormat:195>: TinaSoundDeviceSetFormat() DEBUG : tsoundcontrol <TSoundDeviceSetFormat:201>: TinaSoundDeviceSetFormat()>>>sample_rate:48000,channel_num:2,sc->bytes_per_sample:4 WARNING: awplayer <callbackProcess:3674>: message 0x40a not handled. DEBUG : demuxComponent <DemuxThread:2115>: process message DEMUX_COMMAND_START. started. DEBUG : awplayer <CallbackProcess:3171>: first audio pts = 0 DEBUG : cedarc <HevcSbmFrameCheckBitStreamType:319>: result: bStreamWithStartCode[0], with[0], whitout[1] DEBUG : cedarc <HevcInitialFBM:342>: *** nExtraBufNum[6] = displayHoldNum[3] + rotateHoldNum[0] + smoothNum[3] DEBUG : cedarc <HevcInitialFBM:362>: **(one output) nFbmNum[14] = maxDPBNum[6] + maxReoderNum[2] + extraNum[6] DEBUG : cedarc <HevcInitialFBM:369>: h265 initial fbm number: 14, reference pictures: 6. reorder pictures: 2, real_w: 1920, real_h: 1080 DEBUG : cedarc <VeSetAdjustDramSpeedFlag:1796>: **** VeSetAdjustDramSpeedFlag: 0 DEBUG : cedarc <VeSetEnableAfbcFlag:1787>: **** VeSetEnableAfbcFlag: 0 DEBUG : cedarc <HevcInitialFBM:401>: *************** pHevcDec->bEnableAfbcFlag = 0 DEBUG : cedarc <HevcInitialFBM:432>: b10BitStreamFlag = 0, 0 DEBUG : fbm.c <FbmCreateBuffer:149>: FbmCreate, total fbm number: 14, decoder needed: 8, nWidth=1920, nHeight=1080, nAlignStride = 32 DEBUG : fbm.c <FbmCreateBuffer:310>: *** calcute nLower2BitBufOffset = 0(0.00), stride = 0 DEBUG : fbm.c <FbmCreateBuffer:310>: *** calcute nLower2BitBufOffset = 0(0.00), stride = 0 DEBUG : fbm.c <FbmCreateBuffer:310>: *** calcute nLower2BitBufOffset = 0(0.00), stride = 0 DEBUG : fbm.c <FbmCreateBuffer:310>: *** calcute nLower2BitBufOffset = 0(0.00), stride = 0 DEBUG : fbm.c <FbmCreateBuffer:310>: *** calcute nLower2BitBufOffset = 0(0.00), stride = 0 DEBUG : fbm.c <FbmCreateBuffer:310>: *** calcute nLower2BitBufOffset = 0(0.00), stride = 0 DEBUG : fbm.c <FbmCreateBuffer:310>: *** calcute nLower2BitBufOffset = 0(0.00), stride = 0 DEBUG : fbm.c <FbmCreateBuffer:310>: *** calcute nLower2BitBufOffset = 0(0.00), stride = 0 DEBUG : fbm.c <FbmCreateBuffer:310>: *** calcute nLower2BitBufOffset = 0(0.00), stride = 0 DEBUG : fbm.c <FbmCreateBuffer:310>: *** calcute nLower2BitBufOffset = 0(0.00), stride = 0 DEBUG : fbm.c <FbmCreateBuffer:310>: *** calcute nLower2BitBufOffset = 0(0.00), stride = 0 DEBUG : fbm.c <FbmCreateBuffer:310>: *** calcute nLower2BitBufOffset = 0(0.00), stride = 0 DEBUG : fbm.c <FbmCreateBuffer:310>: *** calcute nLower2BitBufOffset = 0(0.00), stride = 0 DEBUG : fbm.c <FbmCreateBuffer:310>: *** calcute nLower2BitBufOffset = 0(0.00), stride = 0 DEBUG : fbm.c <FbmCreateBuffer:409>: *** finish fbmCreateBuffer DEBUG : awplayer <RenderGetVideoFbmBufInfo:1468>: video buffer info: nWidth[1920],nHeight[1088],nBufferCount[14],ePixelFormat[5] DEBUG : awplayer <RenderGetVideoFbmBufInfo:1471>: video buffer info: nAlignValue[32],bProgressiveFlag[1],bIsSoftDecoderFlag[0] DEBUG : awplayer <__LayerControl:1003>: layer control cmd = 257 DEBUG : awplayer <__LayerControl:1005>: get the fbm buf info DEBUG : awplayer <__LayerControl:1007>: fbmBufInfo->bProgressiveFlag = 1 DEBUG : awplayer <__LayerControl:1013>: lc->mNumHoldByLayer = 3 DEBUG : awplayer <__LayerSetDisplayPixelFormat:599>: Layer set expected pixel format, format = 5 DEBUG : awplayer <__LayerSetDisplayBufferSize:551>: __LayerSetDisplayBufferSize:width = 1920,height = 1088 DEBUG : awplayer <__LayerSetDisplayBufferCount:892>: LayerSetBufferCount: count = 14 DEBUG : awplayer <__LayerControl:1003>: layer control cmd = 260 DEBUG : awplayer <__LayerControl:1016>: get the fbm buf info DEBUG : awplayer <__LayerControl:1022>: b10BitPicFlag = 0, nLbcLossyComMod = 0, bIsLossy = 0, bRcEn = 0 DEBUG : awplayer <__LayerGetBufferNumHoldByGpu:907>: num hold by gpu is 3 DEBUG : awplayer <SetGpuBufferToDecoder:1510>: SetGpuBufferToDecoder:nNumHoldByLayer = 3,p->nGpuBufferNum = 14 DEBUG : awplayer <setLayerBuffer:135>: setLayerBuffer:Fmt(5),(1920 1088, 0 x 0) DEBUG : awplayer <setLayerBuffer:138>: Disp(1920x1088)buf_cnt(14),ProFlag(0),SoftDecFlag(0) DEBUG : awplayer <setLayerBuffer:325>: SunxiMemPalloc buf[0]:0x3fcf101000 DEBUG : awplayer <setLayerBuffer:325>: SunxiMemPalloc buf[1]:0x3fcee04000 DEBUG : awplayer <setLayerBuffer:325>: SunxiMemPalloc buf[2]:0x3fceb07000 DEBUG : awplayer <setLayerBuffer:325>: SunxiMemPalloc buf[3]:0x3fce80a000 DEBUG : awplayer <setLayerBuffer:325>: SunxiMemPalloc buf[4]:0x3fce50d000 DEBUG : awplayer <setLayerBuffer:325>: SunxiMemPalloc buf[5]:0x3fce210000 DEBUG : awplayer <setLayerBuffer:325>: SunxiMemPalloc buf[6]:0x3fcdf13000 DEBUG : awplayer <setLayerBuffer:325>: SunxiMemPalloc buf[7]:0x3fcdc16000 DEBUG : awplayer <setLayerBuffer:325>: SunxiMemPalloc buf[8]:0x3fcd919000 DEBUG : awplayer <setLayerBuffer:325>: SunxiMemPalloc buf[9]:0x3fcd61c000 DEBUG : awplayer <setLayerBuffer:325>: SunxiMemPalloc buf[10]:0x3fcd31f000 DEBUG : awplayer <setLayerBuffer:325>: SunxiMemPalloc buf[11]:0x3fcd022000 DEBUG : awplayer <setLayerBuffer:325>: SunxiMemPalloc buf[12]:0x3fccd25000 DEBUG : awplayer <setLayerBuffer:325>: SunxiMemPalloc buf[13]:0x3fcca28000 DEBUG : awplayer <__LayerDequeueBuffer:724>: numNotHoldByLayer = 11,lc->nGpuBufferCount = 14 DEBUG : awplayer <__LayerDequeueBuffer:724>: numNotHoldByLayer = 11,lc->nGpuBufferCount = 14 DEBUG : awplayer <__LayerDequeueBuffer:724>: numNotHoldByLayer = 11,lc->nGpuBufferCount = 14 DEBUG : awplayer <__LayerDequeueBuffer:724>: numNotHoldByLayer = 11,lc->nGpuBufferCount = 14 DEBUG : awplayer <__LayerDequeueBuffer:724>: numNotHoldByLayer = 11,lc->nGpuBufferCount = 14 DEBUG : awplayer <__LayerDequeueBuffer:724>: numNotHoldByLayer = 11,lc->nGpuBufferCount = 14 DEBUG : awplayer <__LayerDequeueBuffer:724>: numNotHoldByLayer = 11,lc->nGpuBufferCount = 14 DEBUG : awplayer <__LayerDequeueBuffer:724>: numNotHoldByLayer = 11,lc->nGpuBufferCount = 14 DEBUG : awplayer <__LayerDequeueBuffer:724>: numNotHoldByLayer = 11,lc->nGpuBufferCount = 14 DEBUG : awplayer <__LayerDequeueBuffer:724>: numNotHoldByLayer = 11,lc->nGpuBufferCount = 14 DEBUG : awplayer <__LayerDequeueBuffer:724>: numNotHoldByLayer = 11,lc->nGpuBufferCount = 14 DEBUG : awplayer <__LayerDequeueBuffer:724>: numNotHoldByLayer = 11,lc->nGpuBufferCount = 14 DEBUG : awplayer <__LayerDequeueBuffer:724>: numNotHoldByLayer = 11,lc->nGpuBufferCount = 14 DEBUG : awplayer <__LayerDequeueBuffer:724>: numNotHoldByLayer = 11,lc->nGpuBufferCount = 14 ERROR : awplayer <__LayerQueueBuffer:865>: *** picNode is full when queue buffer ERROR : awplayer <__LayerQueueBuffer:865>: *** picNode is full when queue buffer DEBUG : awplayer <callbackProcess:3503>: *************decoded nWidth = 1920,nHeight = 1080******** DEBUG : tplayer <CallbackFromXPlayer:96>: video decoded width = 1920,height = 1080 *****tplayer:video decoded width = 1920,height = 1080 *****tplayerdemo:video decoded width = 1920,height = 1080real set to display rect:w = 1920,h = 1080 warning: unknown callback from Tinaplayer. INFO : awplayer <callbackProcess:3519>: xxxxxxxxxx video size : width = 1920, height = 1080 DEBUG : tplayer <CallbackFromXPlayer:85>: video width = 1920,height = 1080 *****tplayer:video width = 1920,height = 1080 warning: unknown callback from Tinaplayer. DEBUG : awplayer <CallbackProcess:3045>: first video pts = 0 DEBUG : audioRender <startSoundDevice:708>: start sound device. DEBUG : tsoundcontrol <TSoundDeviceStart:212>: TinaSoundDeviceStart(): sc->sound_status = 2 DEBUG : tsoundcontrol <setSoundDeviceParams:62>: setSoundDeviceParams() DEBUG : tsoundcontrol <setSoundDeviceParams:117>: alsa-init: chunksize set to 960 DEBUG : tsoundcontrol <setSoundDeviceParams:126>: alsa-init: fragcount=4 DEBUG : tsoundcontrol <setSoundDeviceParams:136>: setSoundDeviceParams():sc->alsa_can_pause = 0 ERROR : awplayer <__LayerQueueBuffer:865>: *** picNode is full when queue buffer WARNING: audioRender <checkSampleRate:647>: sample rate change from 48000 to 48000. WARNING: audioRender <checkSampleRate:649>: channel num change from 2 to 2. WARNING: audioRender <checkSampleRate:651>: bitPerSample num change from 16 to 16. WARNING: audioRender <checkSampleRate:653>: if need direct out put flag change from 0 to 1. WARNING: audioRender <checkSampleRate:655>: data type change from 1 to 1. DEBUG : tsoundcontrol <TSoundDeviceStop:259>: TinaSoundDeviceStop():sc->sound_status = 0 DEBUG : tsoundcontrol <TSoundDeviceSetFormat:193>: TinaSoundDeviceSetFormat(),sc->sound_status == 2 DEBUG : tsoundcontrol <TSoundDeviceSetFormat:195>: TinaSoundDeviceSetFormat() DEBUG : tsoundcontrol <TSoundDeviceSetFormat:201>: TinaSoundDeviceSetFormat()>>>sample_rate:48000,channel_num:2,sc->bytes_per_sample:4 WARNING: audioRender <checkSampleRate:674>: start sound devide again because samplaRate or channelNum change DEBUG : tsoundcontrol <TSoundDeviceStart:212>: TinaSoundDeviceStart(): sc->sound_status = 2 DEBUG : tsoundcontrol <setSoundDeviceParams:62>: setSoundDeviceParams() DEBUG : tsoundcontrol <setSoundDeviceParams:117>: alsa-init: chunksize set to 960 DEBUG : tsoundcontrol <setSoundDeviceParams:126>: alsa-init: fragcount=4 DEBUG : tsoundcontrol <setSoundDeviceParams:136>: setSoundDeviceParams():sc->alsa_can_pause = 0 ERROR : fbm.c <FbmReturnPicture:1002>: invalid frame status, a picture being returned, but bUsedByRender=0, bInValidPictureQueue=0, bAlreadyDisplayed=0. ERROR : fbm.c <FbmReturnPicture:1003>: **picture[0x3fc4002438],id[11] WARNING: cedarc <ReturnPicture:1849>: FbmReturnPicture return fail, it means the picture being returned it not one of this FBM.
-
@mumula
试一试.mp4文件。 -
@whycan 好吧
Copyright © 2024 深圳全志在线有限公司 粤ICP备2021084185号 粤公网安备44030502007680号