aodzip / libcedarc

Allwinner CedarX userspace library ( Not Official )
38 stars 34 forks source link

Yi Y20GA is an IP camera with QG2101A chip #3

Open ricardojlrufino opened 3 years ago

ricardojlrufino commented 3 years ago

Running demo, i get:

root@yi-cam-01:/tmp/sd/my# ./EncoderTest -i /dev/video0 -o /tmp/img.jpg -n 1 -s 1080 -d 1080
error  : cedarc <main:1287>:TEST POINT 0.1
error  : cedarc <main:1311>:TEST POINT 0.2
error  : cedarc <main:1336>:TEST POINT 0.3
debug  : cedarc <ParseArgument:279>: get input file: /dev/video0 
debug  : cedarc <ParseArgument:290>: get output file: /tmp/img.jpg 
debug  : cedarc <ParseArgument:294>: get src_size: 1080p 
debug  : cedarc <ParseArgument:330>: get dst_size: 1080p 
error  : cedarc <main:1406>:TEST POINT 0.4
debug  : ionAlloc <__GetIonMemOpsS:985>:*** get __GetIonMemOpsS ***
error  : cedarc <main:1417>:TEST POINT 0.5
debug  : ionAlloc <ion_alloc_open:134>:begin ion_alloc_open 

error  : cedarc <initVELocks:163>: check (i < VLPL_size) failed:IC not support. '0x2111000021210'
Assertion failed: 0 (veAw/veAw.c: initVELocks: 163)
Aborted (core dumped)

This config file is shipped with the IPCAM cat /etc/cedarx.conf (default file)


########### paramter (ref to tulip_cedarx.conf)############
[paramter]
start_play_cache_video_frame_num = 30
start_play_cache_size = 128            # KB
cache_buffer_size = 20480              # KB
cache_buffer_size_live = 20480         # KB
start_play_cache_time = 5              # Second
max_start_play_chache_size = 153600    # KB
max_cache_buffer_size = 204800         # KB

# see comment in player.cpp
av_sync_duration = 0              # millisecond

# picture num for modules
pic_4list_num = 3
pic_4di_num = 0
pic_4rotate_num = 0
pic_4smooth_num = 0
# picture format: mb32/nv21/nv12/nv
# deinterlace format
deinterlace_fmt = nv12

# video decoder output picture format
vd_output_fmt = nv21

# gpu align stride values: 16/32
# mali 400mp2 32bit
gpu_align_bitwidth = 32

# if value 1 : send 3-frames black-pic to GPU
# SP: switch Program
#black_pic_4_SP = 0

# compensate for av vsync
compensate_vsync = 4

# log will output if level >= log_level
#VERBOSE = 2,
#DEBUG = 3,
#INFO = 4,
#WARNING = 5,
#ERROR = 6,
log_level = 3

########### plugin ##############
# 1. audio decoder plugin

# 2. video decoder plugin

[vdecoder-0]
comment = h264_vdecoder
id = vdecoder.h264
lib = libawh264.so
init = CedarPluginVDInit

[vdecoder-1]
comment = h265_vdecoder
id = vdecoder.h265
lib = libawh265.so
init = CedarPluginVDInit

[vdecoder-2]
comment = mjpegplus_vdecoder
id = vdecoder.mjpegplus
lib = libawmjpegplus.so
init = CedarPluginVDInit

# 3. external plugin

#[plugin-0]
#comment = rtp_plugin
#id = rtp
#lib = librtp.so
ricardojlrufino commented 3 years ago

lsmod

Module                  Size  Used by
sensor_power            4768  0 
vin_v4l2              106741  0 
sp2305_mipi_y20         5656  0 
cpld_periph             4949  1 
8189fs                720077  0 
vin_io                 15462  3 vin_v4l2,sp2305_mipi_y20
videobuf2_v4l2          7641  1 vin_v4l2
videobuf2_dma_contig     7198  1 vin_v4l2
videobuf2_memops         948  1 videobuf2_dma_contig
videobuf2_core         16920  2 vin_v4l2,videobuf2_v4l2
sun8iw19_snddaudio      4001  0 
sun8iw19_sndcodec       3198  0 
sun8iw19_codec         15126  3 
snd_soc_sunxi_daudio     9759  3 sun8iw19_codec
snd_soc_sunxi           6165  2 sun8iw19_codec,snd_soc_sunxi_daudio
regmap_mmio             2201  2 sun8iw19_codec,snd_soc_sunxi_daudio

cat /proc/cpuinfo

processor       : 0
model name      : ARMv7 Processor rev 5 (v7l)
BogoMIPS        : 48.00
Features        : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae 
CPU implementer : 0x41
CPU architecture: 7
CPU variant     : 0x0
CPU part        : 0xc07
CPU revision    : 5

Hardware        : sun8iw19
Revision        : 0000
Serial          : 0000000000000000