Xiaomi Smart Yi - grab snapshot (HI3518, sensor OV9712)

hostmit

n3wb
Joined
Sep 6, 2016
Messages
4
Reaction score
0
Hello! I've got Xiaomi Smart Yi (HI3518, sensor OV9712).

I need a way to grab a snapshot directly from sensor (while camera provides only rtsp stream, grabbing first frame with FFMPEG gives us 3+ sec delay)

The cam running linux

# uname -a
Linux (none) 3.0.8 #1 Wed Apr 30 16:56:49 CST 2014 armv5tejl GNU/Linux

Hardware HI3518, sensor OV9712
dmesg:
http://hostmit.net/ss/text/dmesg.log
filetree :
http://hostmit.net/ss/text/filetree.txt

There is SDK avaliable for that cam, Hi3518_SDK_V1.0.7.0.tgz, with a lot of C samples. Can anyone please point me in right direction, where do I look for something that can be used for getting a snapshot/photo from camera.
Maybe someone already tried that?

Thanks.
 
Joined
Aug 3, 2015
Messages
3,822
Reaction score
12,274
Location
Charlotte
Search the Top-201 thread for ffmpeg and VLC commands to grab a snapshot from the RTSP video stream. Look at page 33 for a Python script by Roy Cormier, then near the bottom of the page the 'snap' command that generates a snapshot on the camera's /tmp.
 

hostmit

n3wb
Joined
Sep 6, 2016
Messages
4
Reaction score
0
Thanks for your help, but I dont have alarm binary within my camera :(

# alarm
-sh: alarm: not found


# find / -iname "*alarm*"
/dev/mqueue/ipc_alarmmng
/dev/alarm
/dev/.udev/db/devices@virtual@misc@alarm
/sys/devices/virtual/misc/alarm
/sys/bus/platform/drivers/alarm
/sys/class/misc/alarm
/sys/module/alarm
/sys/module/alarm_dev
/proc/irq/2/RTC Alarm
================================

As I looked through the SDK, looks like Hi3518_SDK_V1.0.7.0/mpp2/sample/venc/sample_venc.c is what I need.
However, when I try to run it (or any other sample), I do get error

# ./sample_venc 2
[SAMPLE_COMM_SYS_Init]-318: HI_MPI_VB_Init failed!
[SAMPLE_VENC_720P_Snap]-593: system init failed with -1!
program exit abnormally!

Does anyone familiar with that?
 
Top