您尚未登录。

#1 全志 SOC » 歪朵拉R3 F1C1200s 利用/dev/fb0刷新屏幕感觉速度也不快是哪里做错了嘛 » 2023-03-16 20:31:24

mrcong
回复: 0

歪朵拉R3 F1C1200s 利用/dev/fb0刷新屏幕感觉速度也不快是哪里做错了嘛

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <pthread.h>

#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <sys/ioctl.h>
#include <unistd.h>


//bool define
#define TRUE 1
#define FALSE 0

/* lcd 操作相关 头文件 */
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <linux/fb.h>
#include <sys/ioctl.h>
#include <unistd.h>
#include <string.h>
#include <sys/mman.h>
#include <termios.h>

#include <fcntl.h>



#ifndef DWORD
typedef unsigned long  DWORD;
#endif /* !DWORD */

#ifndef WORD
typedef unsigned short WORD;
#endif /* !WORD */



static int fb_fd = -1;
static unsigned char *fb_mem;
static int px_width;
static int line_width;
static int screen_width;
static int lcd_width;
static int lcd_height;
static struct fb_var_screeninfo var;


static int lcd_fb_display_px(WORD color, int x, int y)
{
	WORD *pen16;
	unsigned char r, g, b;
	r = ((color >> 10) & 0x1f);
	g = ((color >> 5) & 0x3f);
	b = (color & 0x1f);

	color = r<<11|g<<6|b;
	pen16 = (WORD *)(fb_mem + y*line_width + x*px_width);
	*pen16 = color;
	return 0;
}


static int lcd_fb_init()
{
	//如果使用 mmap 打开方式 必须是 读写方式
	fb_fd = open("/dev/fb0", O_RDWR);
	if(-1 == fb_fd)
	{
		printf("cat't open /dev/fb0 \n");
		return -1;
	}
	//获取屏幕参数
	if(-1 == ioctl(fb_fd, FBIOGET_VSCREENINFO, &var))
	{
		close(fb_fd);
		printf("cat't ioctl /dev/fb0 \n");
		return -1;
	}
	
	//计算参数
	px_width     = var.bits_per_pixel /8;
	line_width   = var.xres * px_width;
	screen_width = var.yres * line_width;
	lcd_width    = var.xres;
	lcd_height   = var.yres;
	
	printf("fb width:%d height:%d pixel:%d \n", lcd_width, lcd_height,px_width*8);

	fb_mem = (unsigned char *)mmap(NULL, screen_width, PROT_READ | PROT_WRITE, MAP_SHARED, fb_fd, 0);
	if(fb_mem == (void *)-1)
	{
		close(fb_fd);
		printf("cat't mmap /dev/fb0 \n");
		return -1;
	}
	//清屏
	memset(fb_mem, 0 , screen_width);
	return 0;
}



int main( int argc, char **argv )
{
	lcd_fb_init();
	
	//主循环中处理输入事件 声音播放
	int x,y =0;
	int color = 100;
	while(1)
	{
		for(color=0;color<65535;color++){
			for(x=0;x<800;x++){
			for(y=0;y<480;y++){
				lcd_fb_display_px(color,x,y);
			}
		}
		color+=10;
		}
		
		
	}
	return(0);
}

#3 Re: 全志 SOC » F1C200s主线gstreamer使用openmax调用cedar硬解码 » 2023-03-13 22:13:34

800*480 播放不了 200*240可以播放但是泛绿。切速度也不快。是哪里没有搞好。

gst-launch-1.0 filesrc location=b_200x120.mp4 ! qtdemux ! h264parse ! omxh264d
ec ! autovideoconvert ! fbdevsink
Setting pipeline to PAUSED ...
debug  : cedarc <AwOmxComponentInit:26>:OMXCORE: aw_omx_component_init 133da0

debug  : omx_vdec <__AwOmxVdecInit:1059>:++++++++++++++++++++++omx begin++++++++++++++++++
debug  : omx_vdec <__AwOmxVdecInit:1060>:name = OMX.allwinner.video.decoder.avc
debug  : omx_vdec_aw <OmxDecoderCreate:953>:kay: ** 0.
debug  : cedarc <CdcMessageQueueCreate:47>:nMessageSize = 20
debug  : cedarc <AwOmxComponentSetCallbacks:310>:OMXCORE: aw_omx_component_set_callbacks 133da0, b6635504 , 107898

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:880>:kay: *** 0.
debug  : omx_vdec_aw <__liAllocatePortBuffer:892>:kay: malloc
debug  : omx_vdec_aw <__liAllocatePortBuffer:894>: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:880>:kay: *** 0.
debug  : omx_vdec_aw <__liAllocatePortBuffer:892>:kay: malloc
debug  : omx_vdec_aw <__liAllocatePortBuffer:894>: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:880>:kay: *** 0.
debug  : omx_vdec_aw <__liAllocatePortBuffer:892>:kay: malloc
debug  : omx_vdec_aw <__liAllocatePortBuffer:894>: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:880>:kay: *** 0.
debug  : omx_vdec_aw <__liAllocatePortBuffer:892>:kay: malloc
debug  : omx_vdec_aw <__liAllocatePortBuffer:894>: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:880>:kay: *** 0.
debug  : omx_vdec_aw <__liAllocatePortBuffer:892>:kay: malloc
debug  : omx_vdec_aw <__liAllocatePortBuffer:894>: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:880>:kay: *** 0.
debug  : omx_vdec_aw <__liAllocatePortBuffer:892>:kay: malloc
debug  : omx_vdec_aw <__liAllocatePortBuffer:894>: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:156>:fatal error! pInBufHdr is NULL, check code!
debug  : omx_vdec_aw <liDealWithInitData:175>:++++++++++++++++pCtx->mCodecSpecificDataLen[0]
debug  : omx_vdec_aw <__liPrepare:464>:decoder prepare
warning: cedarc <AddVDPlugin:1538>: 1117 get local path: /usr/lib/
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/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/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/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/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/libawmpeg4base.so 
warning: cedarc <AddVDPluginSingle:1498>: Invalid plugin, CedarPluginVDInit not found.
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/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/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/libawmpeg4vp6.so 
debug  : cedarc <AddVDPluginSingle:1501>: vdecoder open lib: /usr/lib/libawmpeg4vp6.so
warning: cedarc <VDecoderRegister:127>: register codec: '111:Mpeg4Vp6' 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/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/libawwmv3.so 
debug  : cedarc <AddVDPluginSingle:1501>: vdecoder open lib: /usr/lib/libawwmv3.so
warning: cedarc <VDecoderRegister:127>: register codec: '110:vc1' 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: 2995909728
debug  : omx_thread <OmxThread_Run:151>:thread submit start to run!
debug  : omx_thread <createThread:123>:+++++ self->mThread: 2987517024
debug  : omx_thread <OmxThread_Run:151>:thread decode start to run!
debug  : omx_thread <createThread:123>:+++++ self->mThread: 2979124320
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=30
debug  : cedarc <H264DecodePictureScanType:2688>: here3:hCtx->bProgressice=1

debug  : fbm.c <FbmCreateBuffer:133>:FbmCreate, total fbm number: 8, decoder needed: 5,  nWidth=208, nHeight=128 nAlignStride = 16
debug  : fbm.c <FbmCreateBuffer:226>:** call allocate pic buf, i = 0, maxNum = 8
debug  : fbm.c <FbmCreateBuffer:226>:** call allocate pic buf, i = 1, maxNum = 8
debug  : fbm.c <FbmCreateBuffer:226>:** call allocate pic buf, i = 2, maxNum = 8
debug  : fbm.c <FbmCreateBuffer:226>:** call allocate pic buf, i = 3, maxNum = 8
debug  : fbm.c <FbmCreateBuffer:226>:** call allocate pic buf, i = 4, maxNum = 8
debug  : fbm.c <FbmCreateBuffer:226>:** call allocate pic buf, i = 5, maxNum = 8
debug  : fbm.c <FbmCreateBuffer:226>:** call allocate pic buf, i = 6, maxNum = 8
debug  : fbm.c <FbmCreateBuffer:226>:** call allocate pic buf, i = 7, maxNum = 8
debug  : fbm.c <FbmCreateBuffer:379>:*** finish fbmCreateBuffer
debug  : omx_vdec_aw <liCheckResolutionChange:214>:gqy********l:0, t:0, w:200, h:120
warning: omx_vdec_aw <liCheckResolutionChange:251>: port setting changed -- old info : widht = 176, height = 144, mVideoRect: 0, 0, 200, 120 
warning: omx_vdec_aw <liCheckResolutionChange:256>: port setting changed -- new info : widht = 224, height = 128, mVideoRect: 0, 0, 200, 120 
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 <controlStopPort:431>:gqy****stop port****, portIdx:1
debug  : omx_vdec <AwOmxVdecPortFreeBuffer:455>:port:>>>>>>>out, pBufferHdr:0x8d3d8
debug  : omx_vdec <AwOmxVdecPortFreeBuffer:455>:port:>>>>>>>out, pBufferHdr:0x8d428
debug  : omx_vdec <AwOmxVdecPortFreeBuffer:455>:port:>>>>>>>out, pBufferHdr:0x8d478
debug  : omx_vdec <AwOmxVdecPortFreeBuffer:455>:port:>>>>>>>out, pBufferHdr:0x8d4c8
debug  : omx_vdec <controlRestartPort:500>: restart port command. portIdx:1,m_state:OMX_StateExecuting
debug  : omx_vdec <__AwOmxVdecUseBuffer:1661>:PortIndex[1], nSizeBytes[43008], pBuffer[0xb4812050]
debug  : omx_vdec <__AwOmxVdecUseBuffer:1682>:pPortDef[1]->bEnabled=0, m_state=OMX_StateExecuting, can allocate_buffer.
debug  : omx_vdec <AwOmxVdecPortPopBuffer:393>:*******port pop buffer:>>>>>>>out
debug  : omx_vdec <__AwOmxVdecUseBuffer:1661>:PortIndex[1], nSizeBytes[43008], pBuffer[0xb481f050]
debug  : omx_vdec <__AwOmxVdecUseBuffer:1682>:pPortDef[1]->bEnabled=0, m_state=OMX_StateExecuting, can allocate_buffer.
debug  : omx_vdec <AwOmxVdecPortPopBuffer:393>:*******port pop buffer:>>>>>>>out
debug  : omx_vdec <__AwOmxVdecUseBuffer:1661>:PortIndex[1], nSizeBytes[43008], pBuffer[0xb48298b0]
debug  : omx_vdec <__AwOmxVdecUseBuffer:1682>:pPortDef[1]->bEnabled=0, m_state=OMX_StateExecuting, can allocate_buffer.
debug  : omx_vdec <AwOmxVdecPortPopBuffer:393>:*******port pop buffer:>>>>>>>out
debug  : omx_vdec <__AwOmxVdecUseBuffer:1661>:PortIndex[1], nSizeBytes[43008], pBuffer[0xb4834110]
debug  : omx_vdec <__AwOmxVdecUseBuffer:1682>:pPortDef[1]->bEnabled=0, m_state=OMX_StateExecuting, can allocate_buffer.
debug  : omx_vdec <AwOmxVdecPortPopBuffer:393>:*******port pop buffer:>>>>>>>out
debug  : omx_thread <OmxThread_resume:246>:++++++++++resume, drain
Caught SIGSEGV
exec gdb failed: No such file or directory
Spinning.  Please run 'gdb gst-launch-1.0 169' to continue debugging, Ctrl-C to quit, or Ctrl-\ to dump core.
Pipeline is PREROLLED ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
^Chandling interrupt.
Interrupt: Stopping pipeline ...
Execution ended after 0:00:03.397877084
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
debug  : omx_thread <OmxThread_suspend:220>:++++++++++suspend, drain
^C
# ^C
# mplayer b_800x480.mp4 
Creating config file: /root/.mplayer/config
MPlayer 1.1-8.4.0 (C) 2000-2012 MPlayer Team

Playing b_800x480.mp4.
libavformat version 54.6.100 (internal)
libavformat file format detected.
[lavf] stream 0: video (h264), -vid 0
[lavf] stream 1: audio (aac), -aid 0, -alang und
VIDEO:  [H264]  800x480  24bpp  30.000 fps  728.6 kbps (88.9 kbyte/s)
Clip info:
 major_brand: isom
 minor_version: 512
 compatible_brands: isomiso2avc1mp41
 encoder: Lavf58.42.100
 description: Packed by Bilibili XCoder v2.0.2
Load subtitles in ./
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
libavcodec version 54.23.100 (internal)
Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
==========================================================================
==========================================================================
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 44100 Hz, 2 ch, s16le, 128.3 kbit/9.09% (ratio: 16037->176400)
Selected audio codec: [ffaac] afm: ffmpeg (FFmpeg AAC (MPEG-2/MPEG-4 Audio))
==========================================================================
AO: [oss] 44100Hz 2ch s16le (2 bytes per sample)
Starting playback...
Unsupported PixelFormat 61
Unsupported PixelFormat 53
Unsupported PixelFormat 81
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
[swscaler @ 0x9593e0]No accelerated colorspace conversion found from yuv420p to bgra.
[swscaler @ 0x9593e0]using unscaled yuv420p -> bgra special converter
VO: [fbdev] 800x480 => 854x480 BGRA 
framebuffer too small for double-buffering, disabling
A:   3.8 V:   0.2 A-V:  3.554 ct:  0.005   0/  0 ??% ??% ??,?% 8 0              


MPlayer interrupted by signal 2 in module: filter video
A:   4.3 V:   0.2 A-V:  4.086 ct:  0.005   0/  0 ??% ??% ??,?% 9 0              

#4 Re: 全志 SOC » F1C200s主线gstreamer使用openmax调用cedar硬解码 » 2023-03-13 21:29:07

# gst-launch-1.0 filesrc location=b_800x480.mp4 ! qtdemux ! h264parse ! omxh264d
ec ! autovideoconvert ! fbdevsink
Setting pipeline to PAUSED ...
OMX-Cannot open OpenMAX registry file /root/.omxregister
OMX-A Component loader constructor fails. Exiting
ERROR: Pipeline doesn't want to pause.
ERROR: from element /GstPipeline:pipeline0/GstOMXH264Dec-omxh264dec:omxh264dec-omxh264dec0: Could not initialize supporting library.
Additional debug info:
../gst-libs/gst/video/gstvideodecoder.c(2517): gst_video_decoder_change_state (): /GstPipeline:pipeline0/GstOMXH264Dec-omxh264dec:omxh264dec-omxh264dec0:
Failed to open decoder
Setting pipeline to NULL ...
Freeing pipeline ...

#5 全志 SOC » 新买的荔枝派zero无法烧录求解 » 2022-02-15 20:11:54

mrcong
回复: 2

尝试了ubuntu虚拟机和win主机 执行烧录命令都是 usb_bulk_send() ERROR -7: Operation timed out
已经更换了flash 问题依旧。

_20220215201123.jpg

执行 sunxi-fel uboot u-boot-sunxi-with-spl.bin
有反应 串口有正常的 uboot 数据输出。

#6 Re: 全志 SOC » widora tiny200(f1c200s) 添加 esp8089 sdio 驱动 » 2022-02-12 11:22:11

# insmod esp8089.ko esp_reset_gpio=0
[  271.333123]
[  271.333123] ***** EAGLE DRIVER VER:bdf5087c3deb*****
[  271.333123]
[  271.341335] ESP8089 reset via GPIO 0
[  271.558251] esp_sdio_dummy_probe enter
[  271.777743] esp_sdio_init power up OK
[  271.818335] Set sdio block size 512 failed: -110)
[  271.823500] first error exit
[  271.826466] eagle_sdio: probe of mmc0:0001:1 failed with error -110

#7 Re: 全志 SOC » widora tiny200(f1c200s) 添加 esp8089 sdio 驱动 » 2022-02-12 11:20:36

需要修改其他地方嘛比如引脚 设备树啥的

用的r3板子 buildroot 编译

# insmod esp8089.ko
[   20.003590] esp8089: loading out-of-tree module taints kernel.
[   20.017004]
[   20.017004] ***** EAGLE DRIVER VER:bdf5087c3deb*****
[   20.017004]
[   20.025248] ESP8089 reset via GPIO 0
[   20.248319] esp_sdio_dummy_probe enter
[   20.467811] esp_sdio_init power up OK
[   20.959063] esp_host:bdf5087c3deb
[   20.959063] esp_target: e826c2b3c9fd 57 18202
[   20.959063]
[   20.968550] esp_readwrite_file: file /system/lib/modules/test_results filp_open error
[   20.976691] first normal exit
[   20.980270] esp_sdio_remove enter
[   20.995587] sif_disable_irq release irq failed
[   21.118282] eagle_sdio: probe of mmc0:0001:1 failed with error -110
# [   21.768498] mmc0: card 0001 removed
[   21.830210] mmc0: queuing unknown CIS tuple 0x01 (3 bytes)
[   21.844191] mmc0: queuing unknown CIS tuple 0x1a (5 bytes)
[   21.853254] mmc0: queuing unknown CIS tuple 0x1b (8 bytes)
[   21.862748] mmc0: queuing unknown CIS tuple 0x80 (1 bytes)
[   21.868485] mmc0: queuing unknown CIS tuple 0x81 (1 bytes)
[   21.874074] mmc0: queuing unknown CIS tuple 0x82 (1 bytes)
[   21.880906] mmc0: new high speed SDIO card at address 0001
[   22.291326] esp_host:bdf5087c3deb
[   22.291326] esp_target: e826c2b3c9fd 57 18202
[   22.291326]
[   31.847797] vcc3v0: disabling
[   31.850806] vcc5v0: disabling

页脚

工信部备案:粤ICP备20025096号 Powered by FluxBB

感谢为中文互联网持续输出优质内容的各位老铁们。 QQ: 516333132, 微信(wechat): whycan_cn (哇酷网/挖坑网/填坑网) service@whycan.cn