Yuzuki Lizard V851S开发板 – RTSP推流 (群友Blev提供)

基于Yuzukilizard docker 1.2版编译:V851S RTSP推流 20230115

1.进入menuconfig

默认的SDK 先编译一遍
然后再进入menuconfig 勾选下面的模块
image

image

image

#2. 修改配置
重点是这个 IOMMU
必须要进这个路径进行修改文件:/home/wells/tina-v853-open/openwrt/package/allwinner/eyesee-mpp/middleware/Config.in

注释掉这里的depends on …… 即可:

看下图
然后进入menuconfig,就会出现iommu的选项了

重新编译
输入

make

如果编译成功会在下面这个目录生成两个文件:
路径:/home/wells/tina-v853-open/tina-v853-open/out/v851s/lizard/openwrt/build_dir/target/eyesee-mpp-middleware/eyesee-mpp-middleware/sample/bin/

Tip:默认的sample_rtsp.conf 是选择eth0 (1), 然而我们是用wifi推流,因此要改为wlan0 (3)。

3.将应用程序放入SD卡中

在内存卡新建文件夹extsd
将这两个文件拉到内存卡的extsd文件内

Tip:
如果没有内存卡,可以按照下图,直接用adb 将文件推进板子mnt目录。
image
注意:要用OTG模式,等电脑识别到板子,再推文件。

4.运行RTSP应用程序

将内存卡插进板子后,挂载内存卡

mount /dev/mmcblk0p1 /mnt/

连接wifi

wifi -c ssid password

查看是否连接成功

ifconfig

查看网络是否有效(碰到过连接上wifi,获取到地址,但是内网ping不通的情况。)

ping baidu.com

进入内存卡,刚才放那两个文件的文件夹

cd /mnt/extsd

开始推流

./sample_rtsp -path sample_rtsp.conf

推流成功,出现rtsp地址。
image

进入VLC播放RTSP
输入ctl+n后再输入上面的地址即可。
image

Tip:
1 如果有提示权限问题,就执行 chmod 777 sample_rtsp
2 如果出现 devname 报错,请进入sample_rtsp.conf 在最后的 参数 0(对应th0) 更改为参数 3 (对应wlan0)

Hi.
i’ve tried to recompile but got the massage :
sample_rtsp/rtsp_server.cpp:27:10: fatal error: MediaStream.h: No such file or directory
#include “MediaStream.h”
^~~~~~~~~~~~~~~

I’m sorry that you encountered this problem. It may be that some files are missing from the sample file you downloaded. You can find the missing files at Yuzukilizard/Software/sunxi-mpp/include/rtsp at master · YuzukiHD/Yuzukilizard · GitHub

I suggest you visit here to compile Yuzukilizard/Software/sunxi-mpp at master · YuzukiHD/Yuzukilizard · GitHub

Hi Sergpenshin

Maybe we are using different compilation environment.

For me, I am using Ubuntu 18.04 with tina (5.0),linux kernel(4.9),
followed above tutorial,I got a compiled SAMPLE_RTSP module successfully.

could you let us know your compilation environment ?

Hi wells.
In the end I managed to compile sample_rtsp example. But there was another problem: when I run sample_rtsp, I get error: fatal error! vencChn[0] get frame failed! check code!

root@TinaLinux:/mnt# ./sample_rtsp -path sample_rtsp.conf
WARNING: Logging before InitGoogleLogging() is written to STDERR
I0101 00:07:30.651708  1030 dup2SeldomUsedFd.c:20]          <dup2SeldomUsedFdInit> gFdLock init
I0101 00:07:30.677710  1030 sample_rtsp.c:95]               <ParseCmdLine> sample virvi2venc path:[./sample_rtsp], arg number is [3]
I0101 00:07:30.680299  1030 confparser.c:60]                <createConfParser> load conf file sample_rtsp.conf ok!
I0101 00:07:30.680776  1030 sample_rtsp.c:292]              <loadSampleConfig> IspAndVeLinkage config: Enable=1, StreamChn=0
Committed_AS:       4088 kB
I0101 00:07:30.691137  1030 mpi_sys.c:840]                  <A[   76.511060] VE: before freq=300000000
W_MPI_SYS_SetConf> kfctmpdir is [   76.517758] VE: real freq=300000000
[/tmp]
>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Media Process Platform<<<<<<<<<<<<<<<<<<<<<<<<<<<<
modName : MPP-Platform
tag   : V1.0 Release
branch: v5-dev
commit: 4eed413532ad87725895a8cb1ba75e22fc328233
date  : 20170725
author: jenkins
iniparser: cannot open /etc/cedarx.conf
iniparser: cannot open /vendor/etc/cedarx.conf
I0101 00:07:30.712703  1030 mpi_sys.c:1280]                 <AW_MPI_SYS_Init> ISP init
[ISP]>>>>>>>>>>>>>>>>>>>> ISP VERSION INFO <<<<<<<<<<<<<<<<<<<
IPCORE: ISP600
branch: libisp-dev
commit: 14df8348718d093707641fea73eba7db962885f5
date  : Thu Jul 14 15:40:38 2022 +0800
author: <mayifei@allwinnertech.com>
--------------------------------------------------------

I0101 00:07:30.713672  1030 mpi_sys.c:1282]                 <AW_MPI_SYS_Init> ISP init done
INFO   : cedarc <VeInitialize:1185>: *** ic_version = 0x1302000023010,
I0101 00:07:30.734337  1030 hwdisplay.c:84]                 <hw_display_init>
I0101 00:07:30.734595  1030 hwdisplay.c:993]                <hwd_init> (hwd_init 993)
I0101 00:07:30.734808  1030 hwdisplay.c:1048]               <hwd_init> ret[0][2,0]ch[0]lyl[0] init: enable[0], screenwin[0,0, 0x0], zorder[0], alpha[mode:0, value:0]
I0101 00:07:30.738925  1030 alsa_interface.c:701]           <alsaOpenMixer> open mixer:hw:0
I0101 00:07:30.823111  1030 alsa_interface.c:736]           <alsaOpenMixer> alsa_elem:ADC1 ADC2 swap
I0101 00:07:30.823324  1030 alsa_interface.c:736]           <alsaOpenMixer> alsa_elem:ADC1 volume
I0101 00:07:30.823427  1030 alsa_interface.c:736]           <alsaOpenMixer> alsa_elem:ADC2 volume
I0101 00:07:30.823508  1030 alsa_interface.c:736]           <alsaOpenMixer> alsa_elem:ADCDRC
I0101 00:07:30.823584  1030 alsa_interface.c:736]           <alsaOpenMixer> alsa_elem:ADCHPF
I0101 00:07:30.823657  1030 alsa_interface.c:736]           <alsaOpenMixer> alsa_elem:DAC volume
I0101 00:07:30.823727  1030 alsa_interface.c:736]           <alsaOpenMixer> alsa_elem:DACDRC
I0101 00:07:30.823795  1030 alsa_interface.c:736]           <alsaOpenMixer> alsa_elem:DACHPF
I0101 00:07:30.823862  1030 alsa_interface.c:736]           <alsaOpenMixer> alsa_elem:LINEIN
I0101 00:07:30.823935  1030 alsa_interface.c:736]           <alsaOpenMixer> alsa_elem:LINEINL gain volume
I0101 00:07:30.824171  1030 alsa_interface.c:736]           <alsaOpenMixer> alsa_elem:LINEINR gain volume
I0101 00:07:30.824295  1030 alsa_interface.c:736]           <alsaOpenMixer> alsa_elem:LINEOUT
I0101 00:07:30.824598  1030 alsa_interface.c:736]           <alsaOpenMixer> alsa_elem:LINEOUT Output Select
I0101 00:07:30.824882  1030 alsa_interface.c:736]           <alsaOpenMixer> alsa_elem:LINEOUT volume
I0101 00:07:30.825078  1030 alsa_interface.c:756]           <alsaOpenMixer> set playback vol_val to value: 27
I0101 00:07:30.825188  1030 alsa_interface.c:736]           <alsaOpenMixer> alsa_elem:MIC1
I0101 00:07:30.825411  1030 alsa_interface.c:736]           <alsaOpenMixer> alsa_elem:MIC1 Input Select
I0101 00:07:30.825529  1030 alsa_interface.c:736]           <alsaOpenMixer> alsa_elem:MIC1 gain volume
I0101 00:07:30.825618  1030 alsa_interface.c:736]           <alsaOpenMixer> alsa_elem:MIC2
I0101 00:07:30.825698  1030 alsa_interface.c:736]           <alsaOpenMixer> alsa_elem:MIC2 Input Select
I0101 00:07:30.825774  1030 alsa_interface.c:736]           <alsaOpenMixer> alsa_elem:MIC2 gain volume
I0101 00:07:30.825846  1030 alsa_interface.c:736]           <alsaOpenMixer> alsa_elem:SPK
I0101 00:07:30.826088  1030 alsa_interface.c:736]           <alsaOpenMixer> alsa_elem:digital volume
I0101 00:07:30.826204  1030 alsa_interface.c:736]           <alsaOpenMixer> alsa_elem:rx sync mode
I0101 00:07:30.826293  1030 alsa_interface.c:736]           <alsaOpenMixer> alsa_elem:tx hub mode
E0101 00:07:30.826389  1030 alsa_interface.c:970]           <alsaMixerSetAudioCodecHubMode> aec_elem_audio_codec_hub_mode:tx hub mode-1
E0101 00:07:30.826518  1030 alsa_interface.c:853]           <alsaMixerSetCapPlaySyncMode> aec_elem_sync_mode_switch:rx sync mode-1
I0101 00:07:30.826638  1030 alsa_interface.c:701]           <alsaOpenMixer> open mixer:hw:1
I0101 00:07:30.827539  1030 alsa_interface.c:736]           <alsaOpenMixer> alsa_elem:loopback debug
I0101 00:07:30.827712  1030 alsa_interface.c:736]           <alsaOpenMixer> alsa_elem:rx sync mode
I0101 00:07:30.827824  1030 alsa_interface.c:736]           <alsaOpenMixer> alsa_elem:tx hub mode
E0101 00:07:30.827917  1030 alsa_interface.c:993]           <alsaMixerSetDAudio0HubMode> aec_elem_daudio0_hub_mode:tx hub mode-1
E0101 00:07:30.828066  1030 alsa_interface.c:1016]          <alsaMixerSetDAudio0LoopBackEn> aec_elem_daudio0_loopback_en:loopback debug-1
E0101 00:07:30.828214  1030 alsa_interface.c:853]           <alsaMixerSetCapPlaySyncMode> aec_elem_sync_mode_switch:rx sync mode-1
I0101 00:07:30.828348  1030 sample_rtsp.c:490]              <configMainStream> main vipp0 ve_online_en:1, dma_buf_num:2, venc ch0 OnlineEnable:1, OnlineShareBufNum:2
I0101 00:07:30.828444  1030 sample_rtsp.c:517]              <configMainStream> main EncppSharpAttenCoefPer: 100%
I0101 00:07:30.828522  1030 sample_rtsp.c:527]              <configMainStream> main vbvThreshSize: 147450, vbvBufSize: 933882
[ISP]video device name is vin_video0
[ISP]open video device[0], detect isp0 success!
I0101 00:07:31.160279  1030 media_debug.c:45]               <getDictByConfPath> MPP_DEDIA_DEBUG_FILE_PATH=(null)
I0101 00:07:31.160840  1030 videoInputHw.c:942]             <videoInputHw_SetChnAttr> ViCh[0] update width:1920(1920), height:1080(1088)
I0101 00:07:31.160999  1030 videoInputHw.c:957]             <videoInputHw_SetChnAttr> ViCh[0] LBC pix:0x3132434c, line_tar_bits[0]:9216, line_tar_bits[1]:13824
I0101 00:07:31.161826  1030 videoInputHw.c:977]             <videoInputHw_SetChnAttr> bs_len:61440, frm_bit:11520
[ISP]video0 fd[10] ve_online_en=[   77.201400] [VIN]ve_online open, buffer_num is 2
1, dma_buf_num=2
open /dev/sunxi_soc_info failed![ISP]open isp device[0] success!
[ISP_WARN]sdcard is not mounted!!!
[ISP]prefer isp config: [gc2053_mipi], 1920x1088, 20, 0, 0
[ISP]find gc2053_mipi_1920_1088_20_0 [gc2053_mipi_isp600_20220511_164617_vlc4_day] isp config
[ISP]create isp0[   77.259044] [VIN]video0:buffer count is invalid, set to 2
 server thread!
   77.307974] VE: before freq=300000000Component.c:1160]
60C<VideoViComponentInit> VideoV[   77.314952] VE: real freq=300000000
irvi component Init! thread_id[0xb6889d50]
I0101 00:07:31.509229  1030 VideoEnc_Component.c:704[   77.328301] VE: before freq=300000000
2]                                                          <VideoEncComponentI[   77.334152] VE: real freq=300000000
nit> create VideoEnc threadId:0xb6866d50
I0101 00:07:31.509516  1030 VideoEnc_Component.c:2663]      <VideoEncSetChnAttr> vencChn[0] enable online!
I0101 00:07:31.509650  1030 VideoEnc_Component.c:5422]      <VideoEncSendCommand> set VencChn[0] Comp StateIdle
I0101 00:07:31.509840  1036 videoInputHw.c:4787]            <VideoInputHw_CapThread> loop VideoInputHw_CapThread vipp_id = 0, buf_num=2.
I0101 00:07:31.510058  1038 media_debug.c:45]               <getDictByConfPath> MPP_DEDIA_DEBUG_FILE_PATH=(null)
I0101 00:07:31.510327  1038 VideoEnc_Component.c:1110]      <CedarvEncInit> VencChn[0] Create VeType=265
iniparser: cannot open /tmp/libcedarc_dynamic_log_level
INFO   : cedarc <cdc_log_set_level:43>: Set log level to 5 from /vendor/etc/cedarc.conf
WARNING: cedarc <LogVersionInfo:44>:
>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Cedar Codec <<<<<<<<<<<<<<<<<<<<<<<<<<<<
tag   :
branch: tina-v853-dev
commit: ee230a47e5a2392ec315795121c2d112492fac1c
date  : Fri Jul 22 10:37:50 2022 +0800
author: wuguanjian
change-id : I28fe0c31c718f097d61ad6bdbcb4cb5df0bd3575
release_author : lichaopdc
patch :
----------------------------------------------------------------------

I0101 00:07:31.549682  1030 VideoEnc_Component.c:3961]      <VideoEncSetFrameRate> vencChn[0] set new framerate:20
I0101 00:07:31.549916  1030 sample_rtsp.c:1244]             <setVenc2Dnr3Dnr> VencChn[0] enable and set 2DFilter param
I0101 00:07:31.550035  1030 sample_rtsp.c:1257]             <setVenc2Dnr3Dnr> VencChn[0] enable and set 3DFilter param
I0101 00:07:31.550131  1030 sample_rtsp.c:1275]             <setVencSuperFrameCfg> VencChn[0] SuperFrm Mode:0, IfrmSize:1638400 bits, PfrmSize:546133 bits
I0101 00:07:31.550240  1030 VideoEnc_Component.c:6284]      <VideoEncComponentTunnelRequest> set inputPortTunnelFlag = TRUE
I0101 00:07:31.550363  1030 sample_rtsp.c:638]              <configSubStream> vipp[4] crop en:1 X:0 Y:0 W:1888 H:1072
I0101 00:07:31.550454  1030 sample_rtsp.c:651]              <configSubStream> sub EncppSharpAttenCoefPer: 33%
I0101 00:07:31.550533  1030 sample_rtsp.c:661]              <configSubStream> sub vbvThreshSize: 24000, vbvBufSize: 152000
[ISP]video device name is vin_video4
[ISP]open video device[4], detect isp0 success!
I0101 00:07:31.550897  1030 media_debug.c:45]               <getDictByConfPath> MPP_DEDIA_DEBUG_FILE_PATH=(null)
I0101 00:07:31.551151  1030 videoInputHw.c:942]             <videoInputHw_SetChnAttr> ViCh[4] update width:640(640), height:360(368)
I0101 00:07:31[   77.557037] VE: before freq=300000000
.551265  1030 videoInputHw.c:957[   77.564098] VE: real freq=300000000
]                                                           <videoInputHw_SetChnAttr> ViCh[4] LBC pix:0x3132434c, line_tar_bits[0]:3072, line_tar_bits[1]:4608
I0101 00:07:31.551685  1030 videoInputHw.c:977] [   77.581688] VE: before freq=300000000
                                                            <videoInputHw_SetChnAt[   77.588627] VE: real freq=300000000
tr> bs_len:20480, frm_bit:3840
I0101 00:07:31.754989  1030 videoInputHw.c:1254]            <videoInputHw_SetCrop> vipp[4] set crop X:0, Y:0, Width:1888, Height:1072
I0101 00:07:31.757969  1030 VideoVirVi_Component.c:1160]    <VideoViComponentInit> VideoVirvi component Init! thread_id[0xb679cd50]
I0101 00:07:31.758928  1030 VideoEnc_Component.c:7042]      <VideoEncComponentInit> create VideoEnc threadId:0xb6779d50
I0101 00:07:31.759148  1030 VideoEnc_Component.c:5422]      <VideoEncSendCommand> set VencChn[1] Comp StateIdle
I0101 00:07:31.759365  1039 videoInputHw.c:4787]            <VideoInputHw_CapThread> loop VideoInputHw_CapThread vipp_id = 4, buf_num=3.
I0101 00:07:31.759614  1041 media_debug.c:45]               <getDictByConfPath> MPP_DEDIA_DEBUG_FILE_PATH=(null)
I0101 00:07:31.759869  1041 VideoEnc_Component.c:1110]      <CedarvEncInit> VencChn[1] Create VeType=96
iniparser: cannot open /tmp/libcedarc_dynamic_log_level
open /dev/sunxi_soc_info failed!WARNING: cedarc <LogVersionInfo:44>:
>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Cedar Codec <<<<<<<<<<<<<<<<<<<<<<<<<<<<
tag   :
branch: tina-v853-dev
commit: ee230a47e5a2392ec315795121c2d112492fac1c
date  : Fri Jul 22 10:37:50 2022 +0800
author: wuguanjian
change-id : I28fe0c31c718f097d61ad6bdbcb4cb5df0bd3575
release_author : lichaopdc
patch :
----------------------------------------------------------------------

[ISP_ERR]isp_stat_process_buffer, line: 268,AEWB: stats error, skipping buffer.
I0101 00:07:31.781457  1030 VideoEnc_Component.c:3961]      <VideoEncSetFrameRate> vencChn[1] set new framerate:20
I0101 00:07:31.781702  1030 sample_rtsp.c:1244]             <setVenc2Dnr3Dnr> VencChn[1] enable and set 2DFilter param
I0101 00:07:31.781827  1030 sample_rtsp.c:1257]             <setVenc2Dnr3Dnr> VencChn[1] enable and set 3DFilter param
I0101 00:07:31.781924  1030 sample_rtsp.c:1275]             <setVencSuperFrameCfg> VencChn[1] SuperFrm Mode:0, IfrmSize:266666 bits, PfrmSize:88888 bits
I0101 00:07:31.782041  1030 VideoEnc_Component.c:6284]      <VideoEncComponentTunnelRequest> set inputPortTunnelFlag = TRUE
I0101 00:07:31.782179  1030 sample_rtsp.c:772]              <configSubLapseStream> subLapse EncppSharpAttenCoefPer: 33%
I0101 00:07:31.782277  1030 sample_rtsp.c:782]              <configSubLapseStream> SubLapse vbvThreshSize: 24000, vbvBufSize: 152000
I0101 00:07:31.782692  1030 VideoVirVi_Component.c:1160]    <VideoViComponentInit> VideoVirvi component Init! thread_id[0xb6756d50]
I0101 00:07:31.783620  1030 VideoEnc_Component.c:7042]      <VideoEncComponentInit> create VideoEnc threadId:0xb6733d50
I0101 00:07:31.783836  1030 VideoEnc_Component.c:5422]      <VideoEncSendCommand> set VencChn[2] Comp StateIdle
I0101 00:07:31.784219  1043 media_debug.c:45]               <getDictByConfPath> MPP_DEDIA_DEBUG_FILE_PATH=(null)
I0101 00:07:31.784520  1043 VideoEnc_Component.c:1110]      <CedarvEncInit> VencChn[2] Create VeType=96
iniparser: cannot open /tmp/libcedarc_dynamic_log_level
WARNING: cedarc <LogVersionInfo:44>:
>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Cedar Codec <<<<<<<<<<<<<<<<<<<<<<<<<<<<
tag   :
branch: tina-v853-dev
commit: ee230a47e5a2392ec315795121c2d112492fac1c
date  : Fri Jul 22 10:37:50 2022 +0800
author: wuguanjian
change-id : I28fe0c31c718f097d61ad6bdbcb4cb5df0bd3575
release_author : lichaopdc
patch :
----------------------------------------------------------------------

I0101 00:07:31.799049  1030 VideoEnc_Component.c:3961]      <VideoEncSetFrameRate> vencChn[2] set new framerate:20
I0101 00:07:31.799257  1030 sample_rtsp.c:1464]             <main> Lapse set TimeLapse 1000000 us
I0101 00:07:31.799384  1030 VideoEnc_Component.c:4036]      <VideoEncSetTimeLapse> SetTimeLapse: captureIntervalUs=1000000.000000, dstFrameIntervalUs=50000.000000, recType=1
I0101 00:07:31.799493  1030 sample_rtsp.c:1244]             <setVenc2Dnr3Dnr> VencChn[2] enable and set 2DFilter param
I0101 00:07:31.799584  1030 sample_rtsp.c:1257]             <setVenc2Dnr3Dnr> VencChn[2] enable and set 3DFilter param
I0101 00:07:31.799669  1030 sample_rtsp.c:1275]             <setVencSuperFrameCfg> VencChn[2] SuperFrm Mode:0, IfrmSize:266666 bits, PfrmSize:88888 bits
I0101 00:07:32.131591  1030 VideoEnc_Component.c:6284]      <VideoEncComponentTunnelRequest> set inputPortTunnelFlag = TRUE
[ISP_WARN]gc2053_mipi get sensor_temp failed: Invalid argument (22).
I0101 00:07:32.133689  1030 VideoEnc_Component.c:5418]      <VideoEncSendCommand> set VencChn[0] Comp StateExecuting
I0101 00:07:32.133983  1038 media_debug.c:45]               <getDictByConfPath> MPP_DEDIA_DEBUG_FILE_PATH=(null)
I0101 00:07:32.134416  1038 VideoEnc_Component.c:788]       <setVbvBufferConfig> user set stream buffer size[933882]bytes
I0101 00:07:32.134570  1038 VideoEnc_Component.c:798]       <setVbvBufferConfig> user set threshSize[147450]bytes
I0101 00:07:32.134675  1038 VideoEnc_Component.c:825]       <setVbvBufferConfig> bit rate is 1536Kb, set encode vbv size 933888, frame length threshold 147450
I0101 00:07:32.134785  1038 VideoEnc_Component.c:1930]      <CedarvVideoEncInit> veChn[0], EncppEnable=1
I0101 00:07:32.134877  1038 VideoEnc_Component.c:1936]      <CedarvVideoEncInit> DropFrameNum: 0
I0101 00:07:32.134956  1038 VideoEnc_Component.c:1946]      <CedarvVideoEncInit> GDC enable: 0
I0101 00:07:32.135042  1038 VideoEnc_Component.c:2011]      <CedarvVideoEncInit> Online Mode=1, Channel=1, ShareBufNum=2, OnlineEnableFlag=1
I0101 00:07:32.135118  1038 VideoEnc_Component.c:2038]      <CedarvVideoEncInit> rec_lbc_mode=1
[ISP_ERR]isp_sync_debug_info, line: 747,VIDIOC_VIN_ISP_GET_INFO error!
I0101 00:07:32.165899  1038 VideoEnc_Component.c:2059]      <CedarvVideoEncInit> Venc Init success
I0101 00:07:32.166132  1038 VideoEnc_Component.c:2068]      <CedarvVideoEncInit> Venc SetCallbacks success
I0101 00:07:32.166314  1038 VideoEnc_Component.c:2078]      <CedarvVideoEncInit> Venc Start success
I0101 00:07:32.166576  1038 VideoEnc_Component.c:2121]      <CedarvVideoEncInit> set Color2Grey [0], in Venchn[0]
I0101 00:07:32.166719  1038 VideoEnc_Component.c:2128]      <CedarvVideoEncInit> vencChn[0] had init!
I0101 00:07:32.166825  1038 VideoEnc_Component.c:8042]      <ComponentThread> VencChn[0]: idle/pause[0x2]->executing ...
wlan0 ip:192.168.43.210
                                *********************************************************************************************************
                                *               AW RTSP LIB VERSION:                            *
                                *               BUILD BY WHO:                                                                           *
                                *               BUILD TIME:                                             *
                                *********************************************************************************************************
============================================================
   rtsp://192.168.43.210:8554/ch0
============================================================
I0101 00:07:32.168219  1030 VideoEnc_Component.c:5418]      <VideoEncSendCommand> set VencChn[1] Comp StateExecuting
I0101 00:07:32.168500  1041 media_debug.c:45]               <getDictByConfPath> MPP_DEDIA_DEBUG_FILE_PATH=(null)
I0101 00:07:32.168834  1041 VideoEnc_Component.c:788]       <setVbvBufferConfig> user set stream buffer size[152000]bytes
I0101 00:07:32.168966  1041 VideoEnc_Component.c:798]       <setVbvBufferConfig> user set threshSize[24000]bytes
I0101 00:07:32.169068  1041 VideoEnc_Component.c:825]       <setVbvBufferConfig> bit rate is 250Kb, set encode vbv size 152576, frame length threshold 24000
I0101 00:07:32.169181  1041 VideoEnc_Component.c:1930]      <CedarvVideoEncInit> veChn[1], EncppEnable=1
I0101 00:07:32.169272  1041 VideoEnc_Component.c:1936]      <CedarvVideoEncInit> DropFrameNum: 0
I0101 00:07:32.169354  1041 VideoEnc_Component.c:1946]      <CedarvVideoEncInit> GDC enable: 0
I0101 00:07:32.169442  1041 VideoEnc_Component.c:2011]      <CedarvVideoEncInit> Online Mode=1, Channel=0, ShareBufNum=0, OnlineEnableFlag=0
I0101 00:07:32.169520  1041 VideoEnc_Component.c:2038]      <CedarvVideoEncInit> rec_lbc_mode=1
WARNING: cedarc <LDC_K_Adjust:45>: calib_w&h[0 x 0] is valid, force setup to 1920x1080
[ISP_ERR]isp_sync_debug_info, line: 747,VIDIOC_VIN_ISP_GET_INFO error!
[ISP_ERR]isp_sync_debug_info, line: 747,VIDIOC_VIN_ISP_GET_INFO error!
I0101 00:07:32.276325  1039 videoInputHw.c:4882]            <VideoInputHw_CapThread> vipp[4] drop 10 frames done!
[ISP]video device name is vin_video12
[ISP]open video device[12], detect isp0 success!
I0101 00:07:32.326668  1040 VideoEnc_Component.c:6308]      <VideoEncEmptyThisBuffer> send frame when venc state[0x2] is not executing
I0101 00:07:32.326909  1040 VideoEnc_Component.c:6383]      <VideoEncEmptyThisBuffer> VencChn[1]: first video frame pts[78122322]us,tm1[78122879]us, vSize[640x368], frmId[1,12]
open /dev/sunxi_soc_info failed![ISP]---------   LDCI Video12 Init OK   ---------
[ISP]--------- LDCI Video12 Streamon OK ---------
[ISP_ERR]isp_sync_debug_info, line: 747,VIDIOC_VIN_ISP_GET_INFO error!
[ISP_ERR]isp_sync_debug_info, line: 747,VIDIOC_VIN_ISP_GET_INFO error!
[ISP_ERR]isp_sync_debug_info, line: 747,VIDIOC_VIN_ISP_GET_INFO error!
[ISP_ERR]isp_sync_debug_info, line: 747,VIDIOC_VIN_ISP_GET_INFO error!
[ISP_ERR]isp_sync_debug_info, line: 747,VIDIOC_VIN_ISP_GET_INFO error!
[ISP_ERR]isp_sync_debug_info, line: 747,VIDIOC_VIN_ISP_GET_INFO error!
[ISP_ERR]isp_sync_debug_info, line: 747,VIDIOC_VIN_ISP_GET_INFO error!
[ISP_ERR]isp_sync_debug_info, line: 747,VIDIOC_VIN_ISP_GET_INFO error!
[ISP_ERR]isp_sync_debug_info, line: 747,VIDIOC_VIN_ISP_GET_INFO error!
[ISP_ERR]isp_sync_debug_info, line: 747,VIDIOC_VIN_ISP_GET_INFO error!
[ISP_ERR]isp_sync_debug_info, line: 747,VIDIOC_VIN_ISP_GET_INFO error!
[ISP_ERR]isp_sync_debug_info, line: 747,VIDIOC_VIN_ISP_GET_INFO error!
W0101 00:07:33.180080  1045 sample_rtsp.c:1216]             <getVencStreamThread> fatal error! vencChn[0] get frame failed! check code!
[ISP_ERR]isp_sync_debug_info, line: 747,VIDIOC_VIN_ISP_GET_INFO error!
[ISP_ERR]isp_sync_debug_info, line: 747,VIDIOC_VIN_ISP_GET_INFO error!
[ISP_ERR]isp_sync_debug_info, line: 747,VIDIOC_VIN_ISP_GET_INFO error!
[ISP_ERR]isp_sync_debug_info, line: 747,VIDIOC_VIN_ISP_GET_INFO error!
[ISP_ERR]isp_sync_debug_info, line: 747,VIDIOC_VIN_ISP_GET_INFO error!
[ISP_ERR]isp_sync_debug_info, line: 747,VIDIOC_VIN_ISP_GET_INFO error!
[ISP_ERR]isp_sync_debug_info, line: 747,VIDIOC_VIN_ISP_GET_INFO error!
[ISP_ERR]isp_sync_debug_info, line: 747,VIDIOC_VIN_ISP_GET_INFO error!
[ISP_ERR]isp_sync_debug_info, line: 747,VIDIOC_VIN_ISP_GET_INFO error!
[ISP_ERR]isp_sync_debug_info, line: 747,VIDIOC_VIN_ISP_GET_INFO error!
[ISP_ERR]isp_sync_debug_info, line: 747,VIDIOC_VIN_ISP_GET_INFO error!
[ISP_ERR]isp_sync_debug_info, line: 747,VIDIOC_VIN_ISP_GET_INFO error!
[ISP_ERR]isp_sync_debug_info, line: 747,VIDIOC_VIN_ISP_GET_INFO error!
[ISP_ERR]isp_sync_debug_info, line: 747,VIDIOC_VIN_ISP_GET_INFO error!
[ISP_ERR]isp_sync_debug_info, line: 747,VIDIOC_VIN_ISP_GET_INFO error!
[ISP_ERR]isp_sync_debug_info, line: 747,VIDIOC_VIN_ISP_GET_INFO error!
[ISP_ERR]isp_sync_debug_info, line: 747,VIDIOC_VIN_ISP_GET_INFO error!
[ISP_ERR]isp_sync_debug_info, line: 747,VIDIOC_VIN_ISP_GET_INFO error!
[ISP_ERR]isp_sync_debug_info, line: 747,VIDIOC_VIN_ISP_GET_INFO error!
[ISP_ERR]isp_sync_debug_info, line: 747,VIDIOC_VIN_ISP_GET_INFO error!
W0101 00:07:34.180485  1045 sample_rtsp.c:1216]             <getVencStreamThread> fatal error! vencChn[0] get frame failed! check code!
[ISP_ERR]isp_sync_debug_info, line: 747,VIDIOC_VIN_ISP_GET_INFO error!
[ISP_ERR]isp_sync_debug_info, line: 747,VIDIOC_VIN_ISP_GET_INFO error!
[ISP_ERR]isp_sync_debug_info, line: 747,VIDIOC_VIN_ISP_GET_INFO error!
I0101 00:07:34.327179  1040 VideoVirVi_Component.c:1354]    <Vi_ComponentThread> virvi[4-0] has no frame input?
[ISP_ERR]video_wait_buffer, line: 488,video4 select timeout!
W0101 00:07:34.327568  1039 videoInputHw.c:4945]            <VideoInputHw_CapThread> vipp[4] get frame fail! frameBufId[1] is not release
W0101 00:07:34.327719  1039 videoInputHw.c:4949]            <VideoInputHw_CapThread> vipp[4] get frame fail! [1]frames are not release
[ISP_ERR]isp_sync_debug_info, line: 747,VIDIOC_VIN_ISP_GET_INFO error!
[ISP_ERR]isp_sync_debug_info, line: 747,VIDIOC_VIN_ISP_GET_INFO error!
[ISP_ERR]isp_sync_debug_info, line: 747,VIDIOC_VIN_ISP_GET_INFO error!
[ISP_ERR]isp_sync_debug_info, line: 747,VIDIOC_VIN_ISP_GET_INFO error!
[ISP_ERR]isp_sync_debug_info, line: 747,VIDIOC_VIN_ISP_GET_INFO error!
[ISP_ERR]isp_sync_debug_info, line: 747,VIDIOC_VIN_ISP_GET_INFO error!
[ISP_ERR]isp_sync_debug_info, line: 747,VIDIOC_VIN_ISP_GET_INFO error!
[ISP_ERR]isp_sync_debug_info, line: 747,VIDIOC_VIN_ISP_GET_INFO error!
[ISP_ERR]isp_sync_debug_info, line: 747,VIDIOC_VIN_ISP_GET_INFO error!
[ISP_ERR]isp_sync_debug_info, line: 747,VIDIOC_VIN_ISP_GET_INFO error!
[ISP_ERR]isp_sync_debug_info, line: 747,VIDIOC_VIN_ISP_GET_INFO error!
[ISP_ERR]isp_sync_debug_info, line: 747,VIDIOC_VIN_ISP_GET_INFO error!
[ISP_ERR]isp_sync_debug_info, line: 747,VIDIOC_VIN_ISP_GET_INFO error!
[ISP_ERR]isp_sync_debug_info, line: 747,VIDIOC_VIN_ISP_GET_INFO error!
[ISP_ERR]isp_sync_debug_info, line: 747,VIDIOC_VIN_ISP_GET_INFO error!
[ISP_ERR]isp_sync_debug_info, line: 747,VIDIOC_VIN_ISP_GET_INFO error!
[ISP_ERR]isp_sync_debug_info, line: 747,VIDIOC_VIN_ISP_GET_INFO error!
W0101 00:07:35.180979  1045 sample_rtsp.c:1216]             <getVencStreamThread> fatal error! vencChn[0] get frame failed! check code!
[ISP_ERR]isp_sync_debug_info, line: 747,VIDIOC_VIN_ISP_GET_INFO error!
[ISP_ERR]isp_sync_debug_info, line: 747,VIDIOC_VIN_ISP_GET_INFO error!

Although I modified the sample_rtsp.conf to connect to wlan0 and i connect WiFi fine.
I don’t understand what caused this error, would be thanks for any advice

Hi Sergpenshin

Checked above log,but can’t find any clue.
(The code seems to be woking fine.)

One question:
Before you excute command ./sample_rtsp -path sample_rtsp.conf,
have you tested camera(GC2053) if it is working properly?

Below link is a tutorial for camera test.

Looking forward to your reply.

这个RTSP推流demo可以推流到公网IP吗?比如我想推流到阿里云的公网服务器上


这是内存不够吗?


第二次运行报错不一样。

遇到同样的问题? 有rtsp推流成功的吗?用的哪个版本编译的固件?