Page 1 of 1

[luck fox pico mini A] video recording

Posted: 2024-08-23 22:16
by alan12
I want to build video recording system with this device.
Does anyone know how to achieve this system?

Re: [luck fox pico mini A] video recording

Posted: 2024-08-24 2:05
by Crocodile
The rkipc app(<Luckfox Pico Sdk>/project/app) in the SDK can achieve audio recording, and related examples can be found in <Luckfox Pico SDK>/media/samples for reference in development.

Re: [luck fox pico mini A] video recording

Posted: 2024-08-28 13:13
by alan12
Thank you!
I can save video based on example code 640x480, 20fps.
I want to improve resolution and frame rate.
Please tell me how much room there is for improvement.

Re: [luck fox pico mini A] video recording

Posted: 2024-08-29 1:38
by Crocodile
Please refer to https://wiki.luckfox.com/Luckfox-Pico/L ... I-example and modify the `u32Width` and `u32Height` parameters in the `vi_chn_init` and `test_venc_init` functions in the example source code. If you need to adjust the frame rate, modify the channel properties of VENC:

Code: Select all

	stParam.stFrameRate.bEnable = RK_FALSE;
	stParam.stFrameRate.s32SrcFrmRateNum = 25;
	stParam.stFrameRate.s32SrcFrmRateDen = 1;
	stParam.stFrameRate.s32DstFrmRateNum = 10;
	stParam.stFrameRate.s32DstFrmRateDen = 1;
Note: If there is a binding with VPSS, you also need to modify VPSS. Due to the limited performance of the RV1103, different resolutions may yield different frame rate performances, and it may not always achieve the expected frame rate.

Re: [luck fox pico mini A] video recording

Posted: 2024-08-29 16:19
by alan12
I refered https://wiki.luckfox.com/Luckfox-Pico/L ... I-example and compiled luckfox_pico_rtsp_opencv,
but I coudnt recieve video.
when I execute this file I see only this message

Code: Select all

[root@luckfox root]# ./luckfox_rtsp_opencv
rkaiq log level ff0
ID: 0, sensor_name is m00_b_sc3336 4-0030, iqfiles is /etc/iqfiles
Is it running as expected?

Re: [luck fox pico mini A] video recording

Posted: 2024-08-30 1:04
by Crocodile
Please check if the RKLunch-stop.sh script is executed to disable the rkipc process that starts by default in the system.