页次: 1
我的运行之后,提示 error : venc <av_rtmp_send:235>:av_interleaved_write_frame failed ret = -104 错误:
# ./ipc_cedarc_venc 800x600 /dev/video0 rtmp://192.168.19.105/live/home
warning: venc <pix_arg_get:149>:pix_arg_get 800x600
warning: venc <main:58>:video dev :/dev/video0
warning: venc <main:59>:rtmp url :rtmp://192.168.19.105/live/home
warning: venc <videodev_init:67>:ioctl VIDIOC_G_FMT ret = 0
warning: venc <main:68>:videodev_init succ
Output #0, flv, to 'rtmp://192.168.19.105/live/home':
Stream #0:0: Video: h264 (libopenh264), nv21, 800x600, q=2-31, 2097 kb/s, 1k tbn
debug : omx_thread <createThread:123>:+++++ self->mThread: 3031700544
debug : omx_thread <OmxThread_Run:151>:thread venc start to run!
debug : omx_thread <createThread:123>:+++++ self->mThread: 3023307840
debug : omx_thread <OmxThread_Run:151>:thread rtmp start to run!
debug : ionAlloc <__GetIonMemOpsS:986>:*** get __GetIonMemOpsS ***
debug : ionAlloc <ion_alloc_open:135>:begin ion_alloc_open
debug : cedarc <VeSetSpeed:1559>: *** set ve freq to 360 Mhz ***
debug : cedarc <VeInitialize:1198>: ve init ok
debug : ionAlloc <ion_alloc_open:176>:** phy offset = 40000000
debug : cedarc <VeRelease:1253>: ve release ok
debug : cedarc <LogVersionInfo:40>:
>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Cedar Codec <<<<<<<<<<<<<<<<<<<<<<<<<<<<
tag : createBranch_customize_sylix
branch: CedarC-v1.1.9
commit: 4a182bd42c931bea2f77b0ff9a531d233df8541e
date : Thu May 25 15:34:03 2017 +0800
author: jenkins8080
patch :
----------------------------------------------------------------------
debug : cedarc <VeSetSpeed:1559>: *** set ve freq to 360 Mhz ***
debug : cedarc <VeInitialize:1198>: ve init ok
debug : ionAlloc <__GetIonMemOpsS:986>:*** get __GetIonMemOpsS ***
debug : ionAlloc <ion_alloc_open:135>:begin ion_alloc_open
debug : cedarc <VideoEncInit:195>: (f:VideoEncInit, l:195)
debug : cedarc <VideoEncInit:210>: (f:VideoEncInit, l:210)
debug : cedarc <BitStreamCreate:102>: BitStreamCreate OK
debug : cedarc <VeRelease:1253>: ve release ok
debug : ionAlloc <__GetIonMemOpsS:986>:*** get __GetIonMemOpsS ***
debug : ionAlloc <ion_alloc_open:135>:begin ion_alloc_open
debug : cedarc <VeSetSpeed:1559>: *** set ve freq to 360 Mhz ***
debug : cedarc <VeInitialize:1198>: ve init ok
debug : ionAlloc <ion_alloc_open:176>:** phy offset = 40000000
debug : cedarc <VeRelease:1253>: ve release ok
debug : cedarc <LogVersionInfo:40>:
>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Cedar Codec <<<<<<<<<<<<<<<<<<<<<<<<<<<<
tag : createBranch_customize_sylix
branch: CedarC-v1.1.9
commit: 4a182bd42c931bea2f77b0ff9a531d233df8541e
date : Thu May 25 15:34:03 2017 +0800
author: jenkins8080
patch :
----------------------------------------------------------------------
debug : cedarc <VeSetSpeed:1559>: *** set ve freq to 360 Mhz ***
debug : cedarc <VeInitialize:1198>: ve init ok
debug : ionAlloc <__GetIonMemOpsS:986>:*** get __GetIonMemOpsS ***
debug : ionAlloc <ion_alloc_open:135>:begin ion_alloc_open
error : cedarc <H264SetParameter:3365>: IcVersion 1681 don't support this eGopMode:-1225615132
debug : cedarc <VideoEncInit:195>: (f:VideoEncInit, l:195)
debug : cedarc <VideoEncInit:210>: (f:VideoEncInit, l:210)
debug : cedarc <BitStreamCreate:102>: BitStreamCreate OK
debug : cedarc <VeRelease:1253>: ve release ok
error : venc <av_rtmp_send:235>:av_interleaved_write_frame failed ret = -104
debug : ionAlloc <__GetIonMemOpsS:986>:*** get __GetIonMemOpsS ***
debug : ionAlloc <ion_alloc_open:135>:begin ion_alloc_open
debug : cedarc <VeSetSpeed:1559>: *** set ve freq to 360 Mhz ***
debug : cedarc <VeInitialize:1198>: ve init ok
debug : ionAlloc <ion_alloc_open:176>:** phy offset = 40000000
debug : cedarc <VeRelease:1253>: ve release ok
debug : cedarc <LogVersionInfo:40>:
>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Cedar Codec <<<<<<<<<<<<<<<<<<<<<<<<<<<<
tag : createBranch_customize_sylix
branch: CedarC-v1.1.9
commit: 4a182bd42c931bea2f77b0ff9a531d233df8541e
date : Thu May 25 15:34:03 2017 +0800
author: jenkins8080
patch :
----------------------------------------------------------------------
debug : cedarc <VeSetSpeed:1559>: *** set ve freq to 360 Mhz ***
debug : cedarc <VeInitialize:1198>: ve init ok
debug : ionAlloc <__GetIonMemOpsS:986>:*** get __GetIonMemOpsS ***
debug : ionAlloc <ion_alloc_open:135>:begin ion_alloc_open
error : cedarc <H264SetParameter:3365>: IcVersion 1681 don't support this eGopMode:-1225615132
debug : cedarc <VideoEncInit:195>: (f:VideoEncInit, l:195)
debug : cedarc <VideoEncInit:210>: (f:VideoEncInit, l:210)
debug : cedarc <BitStreamCreate:102>: BitStreamCreate OK
debug : cedarc <VeRelease:1253>: ve release ok
error : venc <av_rtmp_send:235>:av_interleaved_write_frame failed ret = -104
debug : ionAlloc <__GetIonMemOpsS:986>:*** get __GetIonMemOpsS ***
debug : ionAlloc <ion_alloc_open:135>:begin ion_alloc_open
debug : cedarc <VeSetSpeed:1559>: *** set ve freq to 360 Mhz ***
debug : cedarc <VeInitialize:1198>: ve init ok
debug : ionAlloc <ion_alloc_open:176>:** phy offset = 40000000
debug : cedarc <VeRelease:1253>: ve release ok
debug : cedarc <LogVersionInfo:40>:
>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Cedar Codec <<<<<<<<<<<<<<<<<<<<<<<<<<<<
tag : createBranch_customize_sylix
branch: CedarC-v1.1.9
commit: 4a182bd42c931bea2f77b0ff9a531d233df8541e
date : Thu May 25 15:34:03 2017 +0800
author: jenkins8080
patch :
----------------------------------------------------------------------
debug : cedarc <VeSetSpeed:1559>: *** set ve freq to 360 Mhz ***
debug : cedarc <VeInitialize:1198>: ve init ok
debug : ionAlloc <__GetIonMemOpsS:986>:*** get __GetIonMemOpsS ***
debug : ionAlloc <ion_alloc_open:135>:begin ion_alloc_open
error : cedarc <H264SetParameter:3365>: IcVersion 1681 don't support this eGopMode:-1225615132
debug : cedarc <VideoEncInit:195>: (f:VideoEncInit, l:195)
debug : cedarc <VideoEncInit:210>: (f:VideoEncInit, l:210)
debug : cedarc <BitStreamCreate:102>: BitStreamCreate OK
debug : cedarc <VeRelease:1253>: ve release ok
error : venc <av_rtmp_send:235>:av_interleaved_write_frame failed ret = -104
debug : ionAlloc <__GetIonMemOpsS:986>:*** get __GetIonMemOpsS ***
debug : ionAlloc <ion_alloc_open:135>:begin ion_alloc_open
debug : cedarc <VeSetSpeed:1559>: *** set ve freq to 360 Mhz ***
debug : cedarc <VeInitialize:1198>: ve init ok
debug : ionAlloc <ion_alloc_open:176>:** phy offset = 40000000
debug : cedarc <VeRelease:1253>: ve release ok
debug : cedarc <LogVersionInfo:40>:
>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Cedar Codec <<<<<<<<<<<<<<<<<<<<<<<<<<<<
tag : createBranch_customize_sylix
branch: CedarC-v1.1.9
commit: 4a182bd42c931bea2f77b0ff9a531d233df8541e
date : Thu May 25 15:34:03 2017 +0800
author: jenkins8080
patch :
----------------------------------------------------------^Cbranch: CedarC-v1.1.9
commit: 4a182bd42c931bea2f77b0ff9a531d233df8541e
date : Thu May 25 15:34:03 2017 +0800
author: jenkins8080
patch :
----------------------------------------------------------------------
warning: venc <sigint_handler:108>:exit sig
debug : omx_thread <OmxDestroyThread:335>:running destroy
debug : cedarc <VeSetSpeed:1559>: *** set ve freq to 360 Mhz ***
debug : cedarc <VeInitialize:1198>: ve init ok
debug : ionAlloc <__GetIonMemOpsS:986>:*** get __GetIonMemOpsS ***
debug : ionAlloc <ion_alloc_open:135>:begin ion_alloc_open
error : cedarc <H264SetParameter:3365>: IcVersion 1681 don't support this eGopMode:-1225615132
debug : cedarc <VideoEncInit:195>: (f:VideoEncInit, l:195)
debug : cedarc <VideoEncInit:210>: (f:VideoEncInit, l:210)
debug : omx_thread <loopEntryWrapper:72>:exit thread rtmp truely!!!
debug : omx_thread <OmxDestroyThread:335>:running destroy
debug : cedarc <BitStreamCreate:102>: BitStreamCreate OK
debug : cedarc <VeRelease:1253>: ve release ok
debug : omx_thread <loopEntryWrapper:72>:exit thread venc truely!!!
[flv @ 0x41270] Failed to update header with correct duration.
[flv @ 0x41270] Failed to update header with correct filesize.
warning: venc <main:99>:exit succ
摄像头用的是ov2640 接荔枝派zero的DVP接口 需要配置设备树的DVP引脚和i2c引脚 使用Linux的V4L2框架进行操作摄像头 需要配置内核V4L和多媒体支持 在获取图像时要配置成NV21格式给编码器 配置参考: https://whycan.com/t_2039.html
完成以上操作后 要保证有/dev/video0
请问怎么将ov2640的图像格式修改为NV21,我的ov2640默认是UYVY 格式。
我参照着psst的《v3s matrix keypad 设备树怎么写?》的帖子,
做了一下自己的矩阵键盘驱动,内核是linux-zero-4.10.y。
我现在 把licheepi zero上面加了1个3x4的矩阵键盘,行线使用PB2,PB3,PB4 三个引脚,
列线使用PE2,PE3,PE10,PE11四个引脚。
列线用的是 原来的RGB_LCD上面的引脚,LCD现在我弄成SPI接口的LCD了,
所以RGB上面的引脚都可以用。
然后我在内核里面配置了matrix键盘的支持:
设备树也修改了:
重新烧写zimage和dtb设备树文件,重新上电后,在/dev/input/也可以看到event0设备,
cat /proc/interrupts里也可以看到3根行线注册的中断源,但是cat /dev/input/event0后按下按键
没有任何反应。
用万用表测量过3根行线的电平,没有按键按下时是低电平,如果该行上有按键按下会变成高电平,
松开后又回到低电平,说明电路应该没问题的。
会是哪里的问题呢?
页次: 1