Skip to main content

Buildroot - rkmedia Debugging

Navigation bar


Basic Debugging Commands​


Stop the IPC network camera This is mandatory!​

  • Important If you do not stop the camera, it stays occupied and you cannot access it
/etc/init.d/S98_lunch_init stop

Common commands for capturing frames​

## Capture 10 frames from the camera node rkispp_scale0 and save them to the 1080p.nv12 file
rkmedia_vi_get_frame_test -a /etc/iqfiles/ -w 1920 -h 1080 -d rkispp_scale0 -o /tmp/1080p.nv12 -c 10

## Record 10 frames of image data and extract the last frame for preview
dd if=/tmp/1080p.nv12 of=/tmp/1080pl.nv12 bs=3110400 skip=9

## Record a video
rkmedia_vi_venc_test -a /etc/iqfiles/ -w 1920 -h 1080 -d rkispp_scale0 -o /tmp/1080p.h264 -c 100

Try streaming manually​

## rtsp streaming
rkmedia_vi_venc_rtsp_test -a /etc/iqfiles/ -w 1920 -h 1080 -d rkispp_scale0

/oem/usr/bin/rkmedia_vi_venc_rtsp_test -a /etc/iqfiles/ -w 1920 -h 1080 -d rkispp_scale0

Open it in the VLC player:

Use the dynamic IP obtained in the previous steps Note that everyone's network environment is different, so check it via ADB

Press ctrl + N, enter rtsp://10.0.0.125:554/live/main_stream and click play to see the image captured by the device

09_vlc.png


Video latency! Special note!​

Please refer to FAQ - Video latency! Special note!


Image


AI Translation Notice

This page was translated into English by AI and is provided for reference only. The original document is written in Chinese. If there is any discrepancy, the Chinese version prevails.

本页英文内容由 AI 自动翻译生成,仅供参考;原文为中文,如有差异请以中文原文为准。

查看中文原文 / View the Chinese original →