您尚未登录。

#1 Re: 全志 SOC » 荔枝派zero主线内核使用cedar硬编码和RTMP推流的网络摄像机 » 2022-06-01 18:26:32

我的运行之后,提示 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

#2 Re: 全志 SOC » 荔枝派zero主线内核使用cedar硬编码和RTMP推流的网络摄像机 » 2022-06-01 18:15:33

摄像头用的是ov2640 接荔枝派zero的DVP接口 需要配置设备树的DVP引脚和i2c引脚 使用Linux的V4L2框架进行操作摄像头 需要配置内核V4L和多媒体支持 在获取图像时要配置成NV21格式给编码器 配置参考: https://whycan.com/t_2039.html
完成以上操作后 要保证有/dev/video0


请问怎么将ov2640的图像格式修改为NV21,我的ov2640默认是UYVY 格式。

#3 全志 SOC » licheepi zero使用tf卡emdebian根文件系统,只使用ttyS0 » 2019-08-07 19:26:34

helo
回复: 4

以前玩的三星2440开发板,开机上电后都是ttyS0作为终端,默认没有tty1~tty6。
licheepi zero使用tf卡emdebian根文件系统,做好了系统,一开机之后,在串口终端(/dev/ttyS0)lcd屏幕上(/dev/tty1)就提示登录,怎么去掉这些tty1~tty6,只保留ttyS0这个终端呢?
embian_01.png
embian_02.jpg

#4 Re: 全志 SOC » 请教V3S(荔枝派Zero)的矩阵键盘matrix keypad的设备树dts文件的配置 » 2019-07-27 14:51:36

是的。4.10.y 不行4.13.y可以。都是在licheepi zero自带的默认参数基础上修改的。
另外,行线都要加上下拉电阻才稳定,否则总是进入到行线的中断里面去。

#6 Re: 全志 SOC » 请教V3S(荔枝派Zero)的矩阵键盘matrix keypad的设备树dts文件的配置 » 2019-07-27 12:12:35

不按按键的时候,行线电平是0,按下时,行线电平为3.3V

#7 全志 SOC » 请教V3S(荔枝派Zero)的矩阵键盘matrix keypad的设备树dts文件的配置 » 2019-07-27 11:02:52

helo
回复: 8

我参照着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键盘的支持:

QQ20190727104525.jpg

QQ20190727104458.jpg


设备树也修改了:

QQ20190727104534.jpg

重新烧写zimage和dtb设备树文件,重新上电后,在/dev/input/也可以看到event0设备,
cat /proc/interrupts里也可以看到3根行线注册的中断源,但是cat /dev/input/event0后按下按键
没有任何反应。

kernel_1.png
kernel_2.png

用万用表测量过3根行线的电平,没有按键按下时是低电平,如果该行上有按键按下会变成高电平,
松开后又回到低电平,说明电路应该没问题的。
会是哪里的问题呢?

#8 Re: 全志 SOC » v3s matrix keypad 设备树怎么写? » 2019-07-24 18:40:22

@psst:
我现在在弄licheepi-zero的矩阵键盘,帮忙指导一下吧!
我加你的qq,或者邮箱留言

页脚

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

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