这两天又折腾了下F1C200S在buildroot下硬解,首先感谢Aodzip大佬适配buildroot集成式开发环境,芒果大佬制作的R3,逸俊晨晖大佬的进一步适配与教程。
想要使用buildroot实现F1C200S硬解的,但没有看过逸俊晨晖教程的可以移步至:
F1C200s主线gstreamer使用openmax调用cedar硬解码
http://whycan.com/t_5824.html
(出处:哇酷开发者社区)
因为Gstreamer现buildroot中版本和逸俊晨晖大佬的有所不同,如果你也出现了OMX_COLOR_FormatYVU420Planar死活找不到定义:
请各位修改buildroot下package/gstreamer1/gst-omx/gst-omx.mk中
GST_OMX_VERSION = 1.16.0
然后删除package/gstreamer1/gst-omx/中 的hash验证文件(因为包变了,需重新填写校验码,直接删掉更简单)
接着删除原有的output/build/gst-omx-XXX 整个文件夹。
再按照逸俊晨晖大佬的操作走一遍就OK了
我使用1.16.2 怎么弄都是OMX_COLOR_FormatYVU420Planar找不到定义(反复删除过_stamp_XXX和make clean)
最后替换版本好了。。。
还有,再提供测试视频的时候,注意编码为H264,并且分辨率: 32的整数倍* 32的整数倍 偏离一个像素都可能导致错误。
播放视频稍后补上
离线
离线
由于我使用的SPI-TFT屏幕分辨率是240*240的
现在有两个问题:
第一:采用512*384的bad_apple.mp4 放出来很卡,控制台一直在打印 buffer被丢弃,而采用256*256的bad_apple.mp4却很流畅
这种现象是内存不够?还是DE不支持512*384硬件缩放到240*240,采用了软算导致卡顿?
第二 :视频大家用什么软件处理的,把1080P压缩到小一点分辨率的
离线
佬,编译的时候出错,这是啥问题
checking for arm-buildroot-linux-gnueabi-gcc... (cached) /home/book/tftpboot/buildroot-2017.08/output/host/bin/arm-buildroot-linux-gnueabi-gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether /home/book/tftpboot/buildroot-2017.08/output/host/bin/arm-buildroot-linux-gnueabi-gcc accepts -g... (cached) yes
checking for /home/book/tftpboot/buildroot-2017.08/output/host/bin/arm-buildroot-linux-gnueabi-gcc option to accept ISO C89... (cached) none needed
checking whether /home/book/tftpboot/buildroot-2017.08/output/host/bin/arm-buildroot-linux-gnueabi-gcc understands -c and -o together... (cached) yes
checking dependency style of /home/book/tftpboot/buildroot-2017.08/output/host/bin/arm-buildroot-linux-gnueabi-gcc... (cached) none
checking for /home/book/tftpboot/buildroot-2017.08/output/host/bin/arm-buildroot-linux-gnueabi-gcc option to accept ISO C99... none needed
checking for /home/book/tftpboot/buildroot-2017.08/output/host/bin/arm-buildroot-linux-gnueabi-gcc option to accept ISO Standard C... (cached) none needed
checking dependency style of /home/book/tftpboot/buildroot-2017.08/output/host/bin/arm-buildroot-linux-gnueabi-gcc... none
checking whether we are using the GNU C++ compiler... yes
checking whether /home/book/tftpboot/buildroot-2017.08/output/host/bin/arm-buildroot-linux-gnueabi-g++ accepts -g... yes
checking dependency style of /home/book/tftpboot/buildroot-2017.08/output/host/bin/arm-buildroot-linux-gnueabi-g++... none
checking how to run the C++ preprocessor... /home/book/tftpboot/buildroot-2017.08/output/host/bin/arm-buildroot-linux-gnueabi-g++ -E
checking for ld used by /home/book/tftpboot/buildroot-2017.08/output/host/bin/arm-buildroot-linux-gnueabi-g++... /home/book/tftpboot/buildroot-2017.08/output/host/bin/arm-buildroot-linux-gnueabi-ld
checking if the linker (/home/book/tftpboot/buildroot-2017.08/output/host/bin/arm-buildroot-linux-gnueabi-ld) is GNU ld... yes
checking whether the /home/book/tftpboot/buildroot-2017.08/output/host/bin/arm-buildroot-linux-gnueabi-g++ linker (/home/book/tftpboot/buildroot-2017.08/output/host/bin/arm-buildroot-linux-gnueabi-ld) supports shared libraries... yes
checking for /home/book/tftpboot/buildroot-2017.08/output/host/bin/arm-buildroot-linux-gnueabi-g++ option to produce PIC... -fPIC -DPIC
checking if /home/book/tftpboot/buildroot-2017.08/output/host/bin/arm-buildroot-linux-gnueabi-g++ PIC flag -fPIC -DPIC works... yes
checking if /home/book/tftpboot/buildroot-2017.08/output/host/bin/arm-buildroot-linux-gnueabi-g++ static flag -static works... yes
checking if /home/book/tftpboot/buildroot-2017.08/output/host/bin/arm-buildroot-linux-gnueabi-g++ supports -c -o file.o... yes
checking if /home/book/tftpboot/buildroot-2017.08/output/host/bin/arm-buildroot-linux-gnueabi-g++ supports -c -o file.o... (cached) yes
checking whether the /home/book/tftpboot/buildroot-2017.08/output/host/bin/arm-buildroot-linux-gnueabi-g++ linker (/home/book/tftpboot/buildroot-2017.08/output/host/bin/arm-buildroot-linux-gnueabi-ld) supports shared libraries... yes
checking dynamic linker characteristics... (cached) GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
configure: working c++ compiler found: yes
checking for perl... /usr/bin/perl
checking for bison... /home/book/tftpboot/buildroot-2017.08/output/host/bin/bison
checking bison version 3.0.4 >= 2.4... yes
checking for flex... /home/book/tftpboot/buildroot-2017.08/output/host/bin/flex
checking flex version >= 2.5.31... Use of uninitialized value $flex_version_major in numeric gt (>) at - line 3.
Use of uninitialized value $flex_version_major in numeric eq (==) at - line 3.
Use of uninitialized value $flex_version_major in numeric eq (==) at - line 3.
configure: error: no
package/pkg-generic.mk:217: recipe for target '/home/book/tftpboot/buildroot-2017.08/output/build/gstreamer1-1.12.2/.stamp_configured' failed
make[1]: *** [/home/book/tftpboot/buildroot-2017.08/output/build/gstreamer1-1.12.2/.stamp_configured] Error 1
Makefile:79: recipe for target '_all' failed
make: *** [_all] Error 2
离线
我把这个/home/book/tftpboot/buildroot-2017.08/output/host/bin/flex文件删了,继续make,然后神奇的能编译通过了
离线
编译通过后使用这个命令gst-launch-1.0 filesrc location=bad_apple.mp4 ! qtdemux ! h264parse ! omxh264dec ! autovideoconvert ! fbdevsink播放视频报错
c ! autovideoconvert ! fbdevsink
Setting pipeline to PAUSED ...
debug : cedarc <AwOmxComponentInit:26>:OMXCORE: aw_omx_component_init 120a80
debug : omx_vdec <__AwOmxVdecInit:1059>:++++++++++++++++++++++omx begin++++++++++++++++++
debug : omx_vdec <__AwOmxVdecInit:1060>:name = OMX.allwinner.video.decoder.avc
debug : omx_vdec_aw <OmxDecoderCreate:924>:kay: ** 0.
debug : cedarc <CdcMessageQueueCreate:47>:nMessageSize = 20
debug : cedarc <AwOmxComponentSetCallbacks:310>:OMXCORE: aw_omx_component_set_callbacks 120a80, b6699490 , 1191e0
debug : omx_vdec <__AwOmxVdecSetCallbacks:1812>:===== vdec set callbacks
Pipeline is PREROLLING ...
debug : omx_vdec <AwOmxVdecPortSetDefinitioin:192>:port:<<<<<<<<in,nBufferCountActual = 2, mBufferCntActual = 2
debug : omx_vdec <AwOmxVdecPortSetDefinitioin:192>:port:<<<<<<<<in,nBufferCountActual = 2, mBufferCntActual = 2
error : omx_vdec <AwOmxVdecPortGetFormat:288>:erro: pParamData->nIndex > m_sPortFormatType.nIndex
debug : omx_vdec <controlSetState:359>:current state:OMX_StateLoaded, target state:OMX_StateIdle
debug : omx_vdec <doStateWaitforResources2Idle:563>:bEnabled[1],[1],bPopulated[0],[0]
debug : omx_vdec <__AwOmxVdecAllocateBuffer:1693>:kay: __AwOmxVdecAllocateBuffer
debug : omx_vdec <__AwOmxVdecAllocateBuffer:1713>:kay: __AwOmxVdecAllocateBuffer 2
debug : omx_vdec_aw <__liAllocatePortBuffer:851>:kay: *** 0.
debug : omx_vdec_aw <__liAllocatePortBuffer:863>:kay: malloc
debug : omx_vdec_aw <__liAllocatePortBuffer:865>:kay: malloc2
debug : omx_vdec <__AwOmxVdecAllocateBuffer:1715>:kay: __AwOmxVdecAllocateBuffer 3
debug : omx_vdec <AwOmxVdecPortPopBuffer:393>:*******port pop buffer:<<<<<<<<in
debug : omx_vdec <__AwOmxVdecAllocateBuffer:1693>:kay: __AwOmxVdecAllocateBuffer
debug : omx_vdec <__AwOmxVdecAllocateBuffer:1713>:kay: __AwOmxVdecAllocateBuffer 2
debug : omx_vdec_aw <__liAllocatePortBuffer:851>:kay: *** 0.
debug : omx_vdec_aw <__liAllocatePortBuffer:863>:kay: malloc
debug : omx_vdec_aw <__liAllocatePortBuffer:865>:kay: malloc2
debug : omx_vdec <__AwOmxVdecAllocateBuffer:1715>:kay: __AwOmxVdecAllocateBuffer 3
debug : omx_vdec <AwOmxVdecPortPopBuffer:393>:*******port pop buffer:<<<<<<<<in
debug : omx_vdec <__AwOmxVdecAllocateBuffer:1693>:kay: __AwOmxVdecAllocateBuffer
debug : omx_vdec <__AwOmxVdecAllocateBuffer:1713>:kay: __AwOmxVdecAllocateBuffer 2
debug : omx_vdec_aw <__liAllocatePortBuffer:851>:kay: *** 0.
debug : omx_vdec_aw <__liAllocatePortBuffer:863>:kay: malloc
debug : omx_vdec_aw <__liAllocatePortBuffer:865>:kay: malloc2
debug : omx_vdec <__AwOmxVdecAllocateBuffer:1715>:kay: __AwOmxVdecAllocateBuffer 3
debug : omx_vdec <AwOmxVdecPortPopBuffer:393>:*******port pop buffer:>>>>>>>out
debug : omx_vdec <__AwOmxVdecAllocateBuffer:1693>:kay: __AwOmxVdecAllocateBuffer
debug : omx_vdec <__AwOmxVdecAllocateBuffer:1713>:kay: __AwOmxVdecAllocateBuffer 2
debug : omx_vdec_aw <__liAllocatePortBuffer:851>:kay: *** 0.
debug : omx_vdec_aw <__liAllocatePortBuffer:863>:kay: malloc
debug : omx_vdec_aw <__liAllocatePortBuffer:865>:kay: malloc2
debug : omx_vdec <__AwOmxVdecAllocateBuffer:1715>:kay: __AwOmxVdecAllocateBuffer 3
debug : omx_vdec <AwOmxVdecPortPopBuffer:393>:*******port pop buffer:>>>>>>>out
debug : omx_vdec <__AwOmxVdecAllocateBuffer:1693>:kay: __AwOmxVdecAllocateBuffer
debug : omx_vdec <__AwOmxVdecAllocateBuffer:1713>:kay: __AwOmxVdecAllocateBuffer 2
debug : omx_vdec_aw <__liAllocatePortBuffer:851>:kay: *** 0.
debug : omx_vdec_aw <__liAllocatePortBuffer:863>:kay: malloc
debug : omx_vdec_aw <__liAllocatePortBuffer:865>:kay: malloc2
debug : omx_vdec <__AwOmxVdecAllocateBuffer:1715>:kay: __AwOmxVdecAllocateBuffer 3
debug : omx_vdec <AwOmxVdecPortPopBuffer:393>:*******port pop buffer:>>>>>>>out
debug : omx_vdec <__AwOmxVdecAllocateBuffer:1693>:kay: __AwOmxVdecAllocateBuffer
debug : omx_vdec <__AwOmxVdecAllocateBuffer:1713>:kay: __AwOmxVdecAllocateBuffer 2
debug : omx_vdec_aw <__liAllocatePortBuffer:851>:kay: *** 0.
debug : omx_vdec_aw <__liAllocatePortBuffer:863>:kay: malloc
debug : omx_vdec_aw <__liAllocatePortBuffer:865>:kay: malloc2
debug : omx_vdec <__AwOmxVdecAllocateBuffer:1715>:kay: __AwOmxVdecAllocateBuffer 3
debug : omx_vdec <AwOmxVdecPortPopBuffer:393>:*******port pop buffer:>>>>>>>out
debug : omx_vdec <doStateWaitforResources2Idle:563>:bEnabled[1],[1],bPopulated[1],[1]
debug : omx_vdec <controlSetState:380>:Transit current state:OMX_StateLoaded --> target state:OMX_StateIdle --OK!
debug : omx_vdec <controlSetState:359>:current state:OMX_StateIdle, target state:OMX_StateExecuting
debug : omx_vdec <controlSetState:380>:Transit current state:OMX_StateIdle --> target state:OMX_StateExecuting --OK!
debug : omx_vdec_aw <liDealWithInitData:153>:fatal error! pInBufHdr is NULL, check code!
debug : omx_vdec_aw <liDealWithInitData:153>:fatal error! pInBufHdr is NULL, check code!
debug : omx_vdec_aw <liDealWithInitData:172>:++++++++++++++++pCtx->mCodecSpecificDataLen[0]
debug : omx_vdec_aw <__liPrepare:461>:decoder prepare
warning: cedarc <AddVDPlugin:1538>: 1117 get local path: /usr/lib/
warning: cedarc <AddVDPlugin:1548>: 1117 load so: /usr/lib/libawmpeg4base.so
warning: cedarc <AddVDPluginSingle:1498>: Invalid plugin, CedarPluginVDInit not found.
warning: cedarc <AddVDPlugin:1548>: 1117 load so: /usr/lib/libawmpeg2.so
debug : cedarc <AddVDPluginSingle:1501>: vdecoder open lib: /usr/lib/libawmpeg2.so
warning: cedarc <VDecoderRegister:127>: register codec: '102:mpeg2' success.
warning: cedarc <VDecoderRegister:127>: register codec: '103:mpeg2' success.
warning: cedarc <AddVDPlugin:1548>: 1117 load so: /usr/lib/libawh264.so
debug : cedarc <AddVDPluginSingle:1501>: vdecoder open lib: /usr/lib/libawh264.so
warning: cedarc <VDecoderRegister:127>: register codec: '115:h264' success.
warning: cedarc <AddVDPlugin:1548>: 1117 load so: /usr/lib/libawh265.so
debug : cedarc <AddVDPluginSingle:1501>: vdecoder open lib: /usr/lib/libawh265.so
warning: cedarc <VDecoderRegister:127>: register codec: '116:h265' success.
warning: cedarc <AddVDPlugin:1548>: 1117 load so: /usr/lib/libawmpeg4h263.so
debug : cedarc <AddVDPluginSingle:1501>: vdecoder open lib: /usr/lib/libawmpeg4h263.so
warning: cedarc <VDecoderRegister:127>: register codec: '104:mpeg4H263' success.
warning: cedarc <VDecoderRegister:127>: register codec: '10b:mpeg4H263' success.
warning: cedarc <VDecoderRegister:127>: register codec: '10d:mpeg4H263' success.
warning: cedarc <AddVDPlugin:1548>: 1117 load so: /usr/lib/libawavs.so
debug : cedarc <AddVDPluginSingle:1501>: vdecoder open lib: /usr/lib/libawavs.so
warning: cedarc <VDecoderRegister:127>: register codec: '117:avs' success.
warning: cedarc <AddVDPlugin:1548>: 1117 load so: /usr/lib/libawvp9Hw.so
debug : cedarc <AddVDPluginSingle:1501>: vdecoder open lib: /usr/lib/libawvp9Hw.so
warning: cedarc <VDecoderRegister:127>: register codec: '113:Vp9Hw' success.
warning: cedarc <AddVDPlugin:1548>: 1117 load so: /usr/lib/libawmjpeg.so
debug : cedarc <AddVDPluginSingle:1501>: vdecoder open lib: /usr/lib/libawmjpeg.so
warning: cedarc <VDecoderRegister:127>: register codec: '101:mjpeg' success.
warning: cedarc <AddVDPlugin:1548>: 1117 load so: /usr/lib/libawvp8.so
debug : cedarc <AddVDPluginSingle:1501>: vdecoder open lib: /usr/lib/libawvp8.so
warning: cedarc <VDecoderRegister:127>: register codec: '112:vp8' success.
warning: cedarc <AddVDPlugin:1548>: 1117 load so: /usr/lib/libawwmv3.so
debug : cedarc <AddVDPluginSingle:1501>: vdecoder open lib: /usr/lib/libawwmv3.so
warning: cedarc <VDecoderRegister:127>: register codec: '110:vc1' success.
warning: cedarc <AddVDPlugin:1548>: 1117 load so: /usr/lib/libawmpeg4normal.so
debug : cedarc <AddVDPluginSingle:1501>: vdecoder open lib: /usr/lib/libawmpeg4normal.so
warning: cedarc <VDecoderRegister:127>: register codec: '10a:mpeg4Normal' success.
warning: cedarc <VDecoderRegister:127>: register codec: '10c:mpeg4Normal' success.
warning: cedarc <VDecoderRegister:127>: register codec: '108:mpeg4Normal' success.
warning: cedarc <VDecoderRegister:127>: register codec: '109:mpeg4Normal' success.
warning: cedarc <AddVDPlugin:1548>: 1117 load so: /usr/lib/libawmjpegplus.so
debug : cedarc <AddVDPluginSingle:1501>: vdecoder open lib: /usr/lib/libawmjpegplus.so
warning: cedarc <VDecoderRegister:127>: register codec: '101:mjpegplus' success.
warning: cedarc <AddVDPlugin:1548>: 1117 load so: /usr/lib/libawmpeg4dx.so
debug : cedarc <AddVDPluginSingle:1501>: vdecoder open lib: /usr/lib/libawmpeg4dx.so
warning: cedarc <VDecoderRegister:127>: register codec: '105:mpeg4dx' success.
warning: cedarc <VDecoderRegister:127>: register codec: '106:mpeg4dx' success.
warning: cedarc <VDecoderRegister:127>: register codec: '107:mpeg4dx' success.
warning: cedarc <VDecoderRegister:127>: register codec: '10e:mpeg4dx' success.
warning: cedarc <VDecoderRegister:127>: register codec: '10f:mpeg4dx' success.
warning: cedarc <AddVDPlugin:1548>: 1117 load so: /usr/lib/libawmpeg4vp6.so
debug : cedarc <AddVDPluginSingle:1501>: vdecoder open lib: /usr/lib/libawmpeg4vp6.so
warning: cedarc <VDecoderRegister:127>: register codec: '111:Mpeg4Vp6' success.
debug : cedarc <LogVersionInfo:40>:
>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Cedar Codec <<<<<<<<<<<<<<<<<<<<<<<<<<<<
tag : CedarC-v1.1.9
branch: master
commit: 1951abe1456450ea48bfd446e801861a1354e93c
date : Wed May 30 18:59:36 2018 +0800
author: jenkins8080
patch :
----------------------------------------------------------------------
debug : cedarc <CreateVideoDecoder:215>:CreateVideoDecoder ****
debug : ionAlloc <__GetIonMemOpsS:985>:*** get __GetIonMemOpsS ***
debug : ionAlloc <ion_alloc_open:134>:begin ion_alloc_open
debug : cedarc <VeSetSpeed:1559>: *** set ve freq to 300 Mhz ***
debug : cedarc <VeInitialize:1198>: ve init ok
debug : ionAlloc <ion_alloc_open:175>:** phy offset = 40000000
debug : cedarc <VeRelease:1253>: ve release ok
debug : cedarc <InitializeVideoDecoder:344>:*** pVconfig->nVeFreq = 0
debug : ionAlloc <__GetIonMemOpsS:985>:*** get __GetIonMemOpsS ***
debug : ionAlloc <ion_alloc_open:134>:begin ion_alloc_open
warning: cedarc <InitializeVideoDecoder:428>:warning: the nDeInterlaceHoldingFrameBufferNum is 0
warning: cedarc <InitializeVideoDecoder:434>:warning: the nDisplayHoldingFrameBufferNum is 0
debug : cedarc <DecideStreamBufferSize:1943>:nBufferSize=2097152
debug : cedarc <VeSetSpeed:1559>: *** set ve freq to 300 Mhz ***
debug : cedarc <VeInitialize:1198>: ve init ok
debug : cedarc <VideoEngineCreate:388>: *** pEngine->nIcVeVersion = 1663, decIpVersion = 0
debug : cedarc <CreateSpecificDecoder:1209>: Create decoder '115:h264'
debug : cedarc <VideoEngineCreate:481>: **************eCtlAfcbMode = 0
debug : cedarc <GetSbmInterface:1705>:*********GetSbmInterface, nType=4
debug : cedarc <GetSbmInterfaceFrame:1663>:******* sbm-type: Frame*******
debug : cedarc <SbmFrameInit:178>:************pSbm->sbmInterface.bUseNewVeMemoryProgram=0
debug : cedarc <CdcMessageQueueCreate:47>:nMessageSize = 20
debug : omx_vdec <onMessageReceived:778>:********start***********
debug : omx_thread <createThread:123>:+++++ self->mThread: 2997388400
debug : omx_thread <OmxThread_Run:151>:thread submit start to run!
debug : omx_thread <createThread:123>:+++++ self->mThread: 2988999792
debug : omx_thread <OmxThread_Run:151>:thread decode start to run!
debug : omx_thread <createThread:123>:+++++ self->mThread: 2980611184
debug : omx_thread <OmxThread_Run:151>:thread drain start to run!
debug : cedarc <AvcSbmFrameCheckBitStreamType:320>:result: bStreamWithStartCode[1], with[1], whitout[0]
debug : cedarc <H264DecVuiParameters:300>: nFrameRate=60
debug : cedarc <H264DecodePictureScanType:2688>: here3:hCtx->bProgressice=1
debug : fbm.c <FbmCreateBuffer:133>:FbmCreate, total fbm number: 4, decoder needed: 4, nWidth=480, nHeight=272 nAlignStride = 16
debug : fbm.c <FbmCreateBuffer:226>:** call allocate pic buf, i = 0, maxNum = 4
debug : fbm.c <FbmCreateBuffer:226>:** call allocate pic buf, i = 1, maxNum = 4
debug : fbm.c <FbmCreateBuffer:226>:** call allocate pic buf, i = 2, maxNum = 4
debug : fbm.c <FbmCreateBuffer:226>:** call allocate pic buf, i = 3, maxNum = 4
debug : fbm.c <FbmCreateBuffer:379>:*** finish fbmCreateBuffer
warning: cedarc <H264MallocBuffer:1235>: h264 scale down fbm buffer number need double check!
debug : fbm.c <FbmCreateBuffer:133>:FbmCreate, total fbm number: 8, decoder needed: 4, nWidth=480, nHeight=272 nAlignStride = 16
debug : fbm.c <FbmCreateBuffer:226>:** call allocate pic buf, i = 0, maxNum = 8
debug : fbm.c <FbmAllocatePictureBuffer:1410>:pPicture->bEnableAfbcFlag = 0
debug : fbm.c <FbmCreateBuffer:226>:** call allocate pic buf, i = 1, maxNum = 8
debug : fbm.c <FbmAllocatePictureBuffer:1410>:pPicture->bEnableAfbcFlag = 0
debug : fbm.c <FbmCreateBuffer:226>:** call allocate pic buf, i = 2, maxNum = 8
debug : fbm.c <FbmAllocatePictureBuffer:1410>:pPicture->bEnableAfbcFlag = 0
debug : fbm.c <FbmCreateBuffer:226>:** call allocate pic buf, i = 3, maxNum = 8
debug : fbm.c <FbmAllocatePictureBuffer:1410>:pPicture->bEnableAfbcFlag = 0
debug : fbm.c <FbmCreateBuffer:226>:** call allocate pic buf, i = 4, maxNum = 8
debug : fbm.c <FbmAllocatePictureBuffer:1410>:pPicture->bEnableAfbcFlag = 0
debug : fbm.c <FbmCreateBuffer:226>:** call allocate pic buf, i = 5, maxNum = 8
debug : fbm.c <FbmAllocatePictureBuffer:1410>:pPicture->bEnableAfbcFlag = 0
debug : fbm.c <FbmCreateBuffer:226>:** call allocate pic buf, i = 6, maxNum = 8
debug : fbm.c <FbmAllocatePictureBuffer:1410>:pPicture->bEnableAfbcFlag = 0
debug : fbm.c <FbmCreateBuffer:226>:** call allocate pic buf, i = 7, maxNum = 8
debug : fbm.c <FbmAllocatePictureBuffer:1410>:pPicture->bEnableAfbcFlag = 0
debug : fbm.c <FbmCreateBuffer:379>:*** finish fbmCreateBuffer
debug : omx_vdec_aw <liCheckResolutionChange:211>:gqy********l:0, t:0, w:480, h:272
warning: omx_vdec_aw <liCheckResolutionChange:248>: port setting changed -- old info : widht = 176, height = 144, mVideoRect: 0, 0, 480, 272
warning: omx_vdec_aw <liCheckResolutionChange:253>: port setting changed -- new info : widht = 480, height = 272, mVideoRect: 0, 0, 480, 272
debug : omx_vdec <decoderCallbackProcess:844>:*******AW_OMX_CB_PORT_CHANGE
debug : omx_thread <OmxThread_suspend:220>:++++++++++suspend, drain
debug : omx_thread <loopEntryWrapper:38>:post stop run sem drain
debug : omx_thread <OmxThread_suspend:223>:++++++++wait stop-run sem done: drain
debug : omx_vdec <control[ 125.509759] random: crng init done
StopPort:431>:gqy****stop port****, portIdx:1
debug : omx_vdec <AwOmxVdecPortFreeBuffer:455>:port:>>>>>>>out, pBufferHdr:0x121020
debug : omx_vdec <AwOmxVdecPortFreeBuffer:455>:port:>>>>>>>out, pBufferHdr:0x121070
debug : omx_vdec <AwOmxVdecPortFreeBuffer:455>:port:>>>>>>>out, pBufferHdr:0x1210c0
debug : omx_vdec <AwOmxVdecPortFreeBuffer:455>:port:>>>>>>>out, pBufferHdr:0x121110
debug : omx_vdec <controlRestartPort:500>: restart port command. portIdx:1,m_state:OMX_StateExecuting
debug : omx_vdec <__AwOmxVdecAllocateBuffer:1693>:kay: __AwOmxVdecAllocateBuffer
debug : omx_vdec <__AwOmxVdecAllocateBuffer:1713>:kay: __AwOmxVdecAllocateBuffer 2
debug : omx_vdec_aw <__liAllocatePortBuffer:851>:kay: *** 0.
debug : omx_vdec_aw <__liAllocatePortBuffer:863>:kay: malloc
debug : omx_vdec_aw <__liAllocatePortBuffer:865>:kay: malloc2
debug : omx_vdec <__AwOmxVdecAllocateBuffer:1715>:kay: __AwOmxVdecAllocateBuffer 3
debug : omx_vdec <AwOmxVdecPortPopBuffer:393>:*******port pop buffer:>>>>>>>out
debug : omx_vdec <__AwOmxVdecAllocateBuffer:1693>:kay: __AwOmxVdecAllocateBuffer
debug : omx_vdec <__AwOmxVdecAllocateBuffer:1713>:kay: __AwOmxVdecAllocateBuffer 2
debug : omx_vdec_aw <__liAllocatePortBuffer:851>:kay: *** 0.
debug : omx_vdec_aw <__liAllocatePortBuffer:863>:kay: malloc
debug : omx_vdec_aw <__liAllocatePortBuffer:865>:kay: malloc2
debug : omx_vdec <__AwOmxVdecAllocateBuffer:1715>:kay: __AwOmxVdecAllocateBuffer 3
debug : omx_vdec <AwOmxVdecPortPopBuffer:393>:*******port pop buffer:>>>>>>>out
debug : omx_vdec <__AwOmxVdecAllocateBuffer:1693>:kay: __AwOmxVdecAllocateBuffer
debug : omx_vdec <__AwOmxVdecAllocateBuffer:1713>:kay: __AwOmxVdecAllocateBuffer 2
debug : omx_vdec_aw <__liAllocatePortBuffer:851>:kay: *** 0.
debug : omx_vdec_aw <__liAllocatePortBuffer:863>:kay: malloc
debug : omx_vdec_aw <__liAllocatePortBuffer:865>:kay: malloc2
debug : omx_vdec <__AwOmxVdecAllocateBuffer:1715>:kay: __AwOmxVdecAllocateBuffer 3
debug : omx_vdec <AwOmxVdecPortPopBuffer:393>:*******port pop buffer:>>>>>>>out
debug : omx_vdec <__AwOmxVdecAllocateBuffer:1693>:kay: __AwOmxVdecAllocateBuffer
debug : omx_vdec <__AwOmxVdecAllocateBuffer:1713>:kay: __AwOmxVdecAllocateBuffer 2
debug : omx_vdec_aw <__liAllocatePortBuffer:851>:kay: *** 0.
debug : omx_vdec_aw <__liAllocatePortBuffer:863>:kay: malloc
debug : omx_vdec_aw <__liAllocatePortBuffer:865>:kay: malloc2
debug : omx_vdec <__AwOmxVdecAllocateBuffer:1715>:kay: __AwOmxVdecAllocateBuffer 3
debug : omx_vdec <AwOmxVdecPortPopBuffer:393>:*******port pop buffer:>>>>>>>out
debug : omx_thread <OmxThread_resume:246>:++++++++++resume, drain
**
ERROR:gstomxbufferpool.c:419:gst_omx_buffer_pool_alloc_buffer: code should not be reached
Aborted
这个错误ERROR:gstomxbufferpool.c:419:gst_omx_buffer_pool_alloc_buffer: code should not be reached
Aborted,不太懂是哪的问题
离线
我按照教程又改了改,执行播放视频的命令然后又报下面的错误
c ! autovideoconvert ! fbdevsink
Setting pipeline to PAUSED ...
debug : cedarc <AwOmxComponentInit:26>:OMXCORE: aw_omx_component_init 120a80
debug : omx_vdec <__AwOmxVdecInit:1059>:++++++++++++++++++++++omx begin++++++++++++++++++
debug : omx_vdec <__AwOmxVdecInit:1060>:name = OMX.allwinner.video.decoder.avc
debug : omx_vdec_aw <OmxDecoderCreate:992>:kay: ** 0.
debug : cedarc <CdcMessageQueueCreate:47>:nMessageSize = 20
debug : cedarc <AwOmxComponentSetCallbacks:310>:OMXCORE: aw_omx_component_set_callbacks 120a80, b667a490 , 1191e0
debug : omx_vdec <__AwOmxVdecSetCallbacks:1812>:===== vdec set callbacks
Pipeline is PREROLLING ...
debug : omx_vdec <AwOmxVdecPortSetDefinitioin:192>:port:<<<<<<<<in,nBufferCountActual = 2, mBufferCntActual = 2
debug : omx_vdec <AwOmxVdecPortSetDefinitioin:192>:port:<<<<<<<<in,nBufferCountActual = 2, mBufferCntActual = 2
error : omx_vdec <AwOmxVdecPortGetFormat:288>:erro: pParamData->nIndex > m_sPortFormatType.nIndex
debug : omx_vdec <controlSetState:359>:current state:OMX_StateLoaded, target state:OMX_StateIdle
debug : omx_vdec <doStateWaitforResources2Idle:563>:bEnabled[1],[1],bPopulated[0],[0]
debug : omx_vdec <__AwOmxVdecAllocateBuffer:1693>:kay: __AwOmxVdecAllocateBuffer
debug : omx_vdec <__AwOmxVdecAllocateBuffer:1713>:kay: __AwOmxVdecAllocateBuffer 2
debug : omx_vdec_aw <__liAllocatePortBuffer:919>:kay: *** 33.
debug : omx_vdec_aw <__liAllocatePortBuffer:931>:kay: malloc
debug : omx_vdec_aw <__liAllocatePortBuffer:933>:kay: malloc2
debug : omx_vdec <__AwOmxVdecAllocateBuffer:1715>:kay: __AwOmxVdecAllocateBuffer 3
debug : omx_vdec <AwOmxVdecPortPopBuffer:393>:*******port pop buffer:<<<<<<<<in
debug : omx_vdec <__AwOmxVdecAllocateBuffer:1693>:kay: __AwOmxVdecAllocateBuffer
debug : omx_vdec <__AwOmxVdecAllocateBuffer:1713>:kay: __AwOmxVdecAllocateBuffer 2
debug : omx_vdec_aw <__liAllocatePortBuffer:919>:kay: *** 0.
debug : omx_vdec_aw <__liAllocatePortBuffer:931>:kay: malloc
debug : omx_vdec_aw <__liAllocatePortBuffer:933>:kay: malloc2
debug : omx_vdec <__AwOmxVdecAllocateBuffer:1715>:kay: __AwOmxVdecAllocateBuffer 3
debug : omx_vdec <AwOmxVdecPortPopBuffer:393>:*******port pop buffer:<<<<<<<<in
debug : omx_vdec <__AwOmxVdecAllocateBuffer:1693>:kay: __AwOmxVdecAllocateBuffer
debug : omx_vdec <__AwOmxVdecAllocateBuffer:1713>:kay: __AwOmxVdecAllocateBuffer 2
debug : omx_vdec_aw <__liAllocatePortBuffer:919>:kay: *** 0.
debug : omx_vdec_aw <__liAllocatePortBuffer:931>:kay: malloc
debug : omx_vdec_aw <__liAllocatePortBuffer:933>:kay: malloc2
debug : omx_vdec <__AwOmxVdecAllocateBuffer:1715>:kay: __AwOmxVdecAllocateBuffer 3
debug : omx_vdec <AwOmxVdecPortPopBuffer:393>:*******port pop buffer:>>>>>>>out
debug : omx_vdec <__AwOmxVdecAllocateBuffer:1693>:kay: __AwOmxVdecAllocateBuffer
debug : omx_vdec <__AwOmxVdecAllocateBuffer:1713>:kay: __AwOmxVdecAllocateBuffer 2
debug : omx_vdec_aw <__liAllocatePortBuffer:919>:kay: *** 0.
debug : omx_vdec_aw <__liAllocatePortBuffer:931>:kay: malloc
debug : omx_vdec_aw <__liAllocatePortBuffer:933>:kay: malloc2
debug : omx_vdec <__AwOmxVdecAllocateBuffer:1715>:kay: __AwOmxVdecAllocateBuffer 3
debug : omx_vdec <AwOmxVdecPortPopBuffer:393>:*******port pop buffer:>>>>>>>out
debug : omx_vdec <__AwOmxVdecAllocateBuffer:1693>:kay: __AwOmxVdecAllocateBuffer
debug : omx_vdec <__AwOmxVdecAllocateBuffer:1713>:kay: __AwOmxVdecAllocateBuffer 2
debug : omx_vdec_aw <__liAllocatePortBuffer:919>:kay: *** 0.
debug : omx_vdec_aw <__liAllocatePortBuffer:931>:kay: malloc
debug : omx_vdec_aw <__liAllocatePortBuffer:933>:kay: malloc2
debug : omx_vdec <__AwOmxVdecAllocateBuffer:1715>:kay: __AwOmxVdecAllocateBuffer 3
debug : omx_vdec <AwOmxVdecPortPopBuffer:393>:*******port pop buffer:>>>>>>>out
debug : omx_vdec <__AwOmxVdecAllocateBuffer:1693>:kay: __AwOmxVdecAllocateBuffer
debug : omx_vdec <__AwOmxVdecAllocateBuffer:1713>:kay: __AwOmxVdecAllocateBuffer 2
debug : omx_vdec_aw <__liAllocatePortBuffer:919>:kay: *** 0.
debug : omx_vdec_aw <__liAllocatePortBuffer:931>:kay: malloc
debug : omx_vdec_aw <__liAllocatePortBuffer:933>:kay: malloc2
debug : omx_vdec <__AwOmxVdecAllocateBuffer:1715>:kay: __AwOmxVdecAllocateBuffer 3
debug : omx_vdec <AwOmxVdecPortPopBuffer:393>:*******port pop buffer:>>>>>>>out
debug : omx_vdec <doStateWaitforResources2Idle:563>:bEnabled[1],[1],bPopulated[1],[1]
debug : omx_vdec <controlSetState:380>:Transit current state:OMX_StateLoaded --> target state:OMX_StateIdle --OK!
debug : omx_vdec <controlSetState:359>:current state:OMX_StateIdle, target state:OMX_StateExecuting
debug : omx_vdec <controlSetState:380>:Transit current state:OMX_StateIdle --> target state:OMX_StateExecuting --OK!
Caught SIGSEGV
exec gdb failed: No such file or directory
Spinning. Please run 'gdb gst-launch-1.0 174' to continue debugging, Ctrl-C to quit, or Ctrl-\ to dump core.
离线