Skip to main content

rkmedia 使用


预备工作

停止 IPC 网络摄像头

/etc/init.d/S98_lunch_init stop

取帧率Mobile

## 从摄像头节点 rkispp_scale0 抓取 10 帧图片并保存为 1080p.nv12 文件
rkmedia_vi_get_frame_test -a /etc/iqfiles/ -w 1920 -h 1080 -d rkispp_scale0 -o /tmp/1080p.nv12 -c 10

## 录取 10 帧图像数据,截取最后一帧来预览
dd if=/tmp/1080p.nv12 of=/tmp/1080pl.nv12 bs=3110400 skip=9

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

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

VLC 播放器访问

ctrl + N 输入rtsp://10.0.0.254/live/main_stream 点击播放即可看到设备的取像画面

09_vlc.png