czx 发表于 2021-11-26 14:46:02

799959745 发表于 2021-11-26 14:05
vlc 能看到画面吗??或者直接输入网址能网页预览吗?

都不能

czx 发表于 2021-11-26 15:05:15

用网盘上的AIo-Rv1126RV1109-J04IPC20210904_1333固件可以吗

799959745 发表于 2021-11-27 08:41:15

不可以,因为不是专用固件。我找个时间看一下能不能复现你的问题。

799959745 发表于 2021-11-29 09:48:52

我这边跑程序并没有复现你说的问题。
建议:
如果存在文件:/etc/init.d/S99_xhlpr,则把内容修改成如下文本:
#!/bin/sh

case "$1" in
start)
#    /usr/share/xhlpr_app/start_xhlpr_app.sh
    ;;
stop)
    killall xhlpr_service
    killall xhlpr_client
    killall rockx_client
    killall xhlpr_http
    killall ff_provide_ip
    ;;
*)
    echo "Usage: $0 {start|stop}"
    exit 1
    ;;
esac
exit 0或者开机之后执行:/etc/init.d/S99_xhlpr stop 来关掉开机执行的程序。

修改文件 /etc/init.d/S99_rockx把 /usr/share/firefly_rockx_demo/start_rockx_app.sh 这行的注释取消掉。重启开机默认执行 rockx 程序。
忽略上面我说的修改 IP 地址的操作。IP 地址不需要修改。识别分辨率我也试着修改过,能启动程序。
在浏览器上输入设备 IP 地址。正常应该能看到预览画面。

czx 发表于 2021-11-30 17:00:00

799959745 发表于 2021-11-29 09:48
我这边跑程序并没有复现你说的问题。
建议:
如果存在文件:/etc/init.d/S99_xhlpr,则把内容修改成如下 ...

你好,没有/etc/init.d/S99_xhlpr这个文件,/etc/init.d目录下是这些

# cd /etc/init.d/
# ls
S01logging                   S45connman       S65_rtcsync
S05avahi-setup.sh            S49_ffswichmodeS80dnsmasq
S10atomic_commit.sh          S49alsa          S98_lunch_init
S10udev                      S50avahi-daemonS99_auto_reboot
S20urandom                   S50dropbear      S99_bootcontrol
S21mountall.sh               S50fcgiwrap      S99_firefly
S22config_env                S50nginx         S99_rockx
S30dbus                      S50usbdevice   S99input-event-daemon
S36load_rv1109_wifi_modulesS51n4            rcK
S40network                   S60NPU_init      rcS

czx 发表于 2021-11-30 17:51:10

还有前面说的,编译镜像文件,在SDK下执行./build.sh buildroot编译,sdk/rockdev/rootfs.img这个文件没有更新,查看这个文件的生成时间还是之前的,不是我编译的时间,也就是执行./build.sh buildroot编译,没有报错,最终rootfs.img也没有更新。直接用./build.sh编译才更新

czx 发表于 2021-11-30 18:18:20

修改文件 /etc/init.d/S99_rockx把 /usr/share/firefly_rockx_demo/start_rockx_app.sh 这行的注释取消掉。重启开机默认执行 rockx 程序。
按照这步操作后,直接就有报错了
启动时部分log如下
:RKAIQ: model(rkisp0): isp_info(0): isp-subdev entity name: /dev/v4l-subdev5
:RKAIQ: parsing /dev/media2
:RKAIQ: model(rkispp0): ispp_info(0): ispp-subdev entity name: /dev/v4l-subdev0
:#V4l2Stream: camraID:0, Device:rkispp_scale1
:camera_id: 0, chn: rkispp_scale1
:camera_id: 0, chn: rkispp_scale1, idx: 0
:#V4l2Stream: camera id:0, VideoNode:/dev/video20
[   12.259722] rkispp0: scale1:0x0 out of range:
[   12.259722][wUsing mplane plugin for capturei
dth max:1280 ratio max:8 min:2]
[   12.259839] rkispp0: scale1:0x0 out of range:
[   12.259839]
[   12.259878] rkispp0: scale1:0x0 out of range:
[   12.259878]
[   12.259899] rkispp0: scale1:0x0 out of range:
[   12.259899]
:#V4L2Ct[x: open /dev/video20, fd 6
   12.259917] rkispp0: scale1:0x:Opened DRM device /dev/dri/card0: dr0iver rockchip version 2.0.0 o.
ut of range:
[   12.259917]
:RK_MPI_VI_EnableChn: Enable VI:rkispp_scale1, 2688x1520 End...
:RK_MPI_RGA_CreateChn: Enable RGA, Rect<0,0,2688,1520> Start...
:RK_MPI_RGA_CreateChn: Enable RGA, Rect<0,0,2688,1520> Start...
:FilterFlow:rkrga: Enable BufferPool! memtype:hw_mem, memcnt:2
:RK_MPI_RGA_CreateChn: Enable RGA, Rect<0,0,2688,1520> End...
#Bind RK_ID_VI to RK_ID_RGA....
:RK_MPI_SYS_Bind: Bind Mode:Chn to Mode:Chn...
:FilterFlow:rkrga: Enable BufferPool! memtype:hw_mem, memcnt:2
:RK_MPI_RGA_CreateChn: Enable RGA, Rect<0,0,2688,1520> End...
#Bind RK_ID_VI to RK_ID_RGA....
:RK_MPI_SYS_Bind: Bind Mode:Chn to Mode:Chn...
:FilterFlow:rkrga: buffer_pool get null buffer!
:FilterFlow:rkrga: buffer_pool get null buffer!
:FilterFlow:rkrga: buffer_pool get null buffer!
:FilterFlow:rkrga: buffer_pool get null buffer!
:FilterFlow:rkrga: buffer_pool get null buffer!
:FilterFlow:rkrga: buffer_pool get null buffer!
:FilterFlow:rkrga: buffer_pool get null buffer!
:FilterFlow:rkrga: buffer_pool get null buffer!
:FilterFlow:rkrga: buffer_pool get null buffer!
:FilterFlow:rkrga: buffer_pool get null buffer!
:FilterFlow:rkrga: buffer_pool get null buffer!
:FilterFlow:rkrga: buffer_pool get null buffer!
:FilterFlow:rkrga: buffer_pool get null buffer!
:FilterFlow:rkrga: buffer_pool get null buffer!
:FilterFlow:rkrga: buffer_pool get null buffer!
:FilterFlow:rkrga: buffer_pool get null buffer!
:FilterFlow:rkrga: buffer_pool get null buffer!
:FilterFlow:rkrga: buffer_pool get null buffer!
:FilterFlow:rkrga: buffer_pool get null buffer!
:FilterFlow:rkrga: buffer_pool get null buffer!
:FilterFlow:rkrga: buffer_pool get null buffer!
Starting input-event-daemon: input-event-daemon: Start parsing /etc/input-event-daemon.conf...
input-event-daemon: Adding device: /dev/input/event0...
input-event-daemon: Adding device: /dev/input/event1...
input-event-daemon: Adding device: /dev/input/event2...
input-event-daemon: Start listening on 3 devices...
done
ffmpeg version 4.1.3 Copyright (c) 2000-2019 the FFmpeg developers
built with gcc 8.3.0 (GNU Toolchain for the A-profile Architecture 8.3-2019.03 (arm-rel-8.36)
configuration: --enable-cross-compile --cross-prefix=/home/chenzx/ffy_1126/Linux_SDk/rv1126_rv1109_linux_release_20210306/buildroot/output/firefly_rv1126_rv1109_xhlpr/host/bin/arm-linux-gnueabihf- --sysroot=/home/chenzx/ffy_1126/Linux_SDk/rv1126_rv1109_linux_release_20210306/buildroot/output/firefly_rv1126_rv1109_xhlpr/host/arm-buildroot-linux-gnueabihf/sysroot --host-cc=/usr/bin/gcc --arch=arm --target-os=linux --disable-stripping --pkg-config=/home/chenzx/ffy_1126/Linux_SDk/rv1126_rv1109_linux_release_20210306/buildroot/output/firefly_rv1126_rv1109_xhlpr/host/bin/pkg-config --disable-static --enable-shared --prefix=/usr --enable-avfilter --enable-version3 --enable-logging --enable-optimizations --disable-extra-warnings --enable-avdevice --enable-avcodec --enable-avformat --enable-network --disable-gray --enable-swscale-alpha --enable-dct --enable-fft --enable-mdct --enable-rdft --disable-crystalhd --disable-dxva2 --enable-runtime-cpudetect --disable-hardcoded-tables --disable-mipsdsp --disable-mipsdspr2 --disable-msa --enable-hwaccels --disable-cuda --disable-cuvid --disable-nvenc --disable-avisynth --disable-frei0r --disable-libopencore-amrnb --disable-libopencore-amrwb --disable-libdc1394 --disable-libgsm --disable-libilbc --disable-libvo-amrwbenc --disable-symver --disable-doc --disable-gpl --enable-nonfree --disable-debug --disable-small --enable-ffmpeg --disable-ffplay --enable-avresample --disable-ffprobe --disable-postproc --enable-swscale --enable-librga --disable-encoders --enable-encoder=mp2 --enable-encoder=adpcm_g726 --enable-encoder=pcm_alaw --enable-encoder=pcm_mulaw --enable-encoder=rawvideo --enable-encoder=mjpeg --enable-encoder=mpeg2video --enable-encoder=aac --enable-encoder=h264 --disable-decoders --enable-decoder=pcm_alaw --enable-decoder=pcm_mulaw --enable-decoder=rawvideo --enable-decoder=mjpeg --enable-decoder=mpeg2video --enable-decoder=aac --enable-decoder=h264 --disable-muxers --enable-muxer=pcm_alaw --enable-muxer=pcm_mulaw --enable-muxer=g722 --enable-muxer=g726 --enable-muxer=adts --enable-muxer=rawvideo --enable-muxer=mjpeg --enable-muxer=mp4 --enable-muxer=mov --enable-muxer=rtp --enable-muxer=flv --enable-muxer=f4v --enable-muxer=mpegts --enable-muxer=matroska --enable-muxer=avi --enable-muxer=rtsp --enable-muxer=mpeg1system --enable-muxer=h264 --disable-demuxers --enable-demuxer=pcm_alaw --enable-demuxer=pcm_mulaw --enable-demuxer=g722 --enable-demuxer=g726 --enable-demuxer=rawvideo --enable-demuxer=mpegts --enable-demuxer=mov --enable-demuxer=flv --enable-demuxer=matroska --enable-demuxer=avi --enable-demuxer=rtsp --enable-demuxer=h264 --disable-parsers --enable-parser=aac --enable-parser=h264 --disable-bsfs --enable-bsf=aac_adtstoasc --enable-bsf=h264_metadata --enable-bsf=h264_mp4toannexb --enable-bsf=h264_redundant_pps --enable-bsf=hevc_metadata --enable-bsf=hevc_mp4toannexb --enable-bsf=dump_extradata --enable-bsf=remove_extradata --disable-protocols --enable-protocol=file --enable-protocol=rtp --enable-protocol=srtp --enable-protocol=rtmp --enable-protocol=rtmps --enable-protocol=http --enable-protocol=https --disable-filters --enable-filter=scale --enable-indevs --enable-alsa --enable-outdevs --enable-pthreads --enable-zlib --enable-bzlib --enable-libfdk-aac --disable-libcdio --disable-gnutls --enable-openssl --enable-libdrm --disable-libopenh264 --disable-vaapi --disable-vdpau --enable-rkmpp --enable-libdrm --disable-decoder=h264_v4l2m2m --disable-decoder=vp8_v4l2m2m --disable-decoder=mpeg2_v4l2m2m --disable-decoder=mpeg4_v4l2m2m --disable-encoder=h264_v4l2m2m --disable-encoder=vp8_v4l2m2m --disable-encoder=mpeg2_v4l2m2m --disable-encoder=mpeg4_v4l2m2m --disable-mmal --disable-omx --disable-omx-rpi --disable-libopencv --disable-libopus --disable-libvpx --disable-libass --disable-libbluray --disable-libmfx --disable-librtmp --disable-libmp3lame --disable-libmodplug --disable-libspeex --disable-libtheora --disable-libwavpack --disable-iconv --enable-libfreetype --enable-fontconfig --disable-libopenjpeg --disable-libx264 --disable-libx265 --disable-x86asm --disable-mmx --disable-sse --disable-sse2 --disable-sse3 --disable-ssse3 --disable-sse4 --disable-sse42 --disable-avx --disable-avx2 --enable-armv6 --enable-vfp --enable-neon --disable-altivec --extra-libs=-latomic --enable-pic --cpu=cortex-a7
:FilterFlow:rkrga: buffer_pool get null buffer!
#
#   libavutil      56. 22.100 / 56. 22.100
libavcodec   58. 35.100 / 58. 35.100
libavformat    58. 20.100 / 58. 20.100
libavdevice    58.5.100 / 58.5.100
libavfilter   7. 40.101 /7. 40.101
libavresample   4.0.0 /4.0.0
libswscale      5.3.100 /5.3.100
libswresample   3.3.100 /3.3.100
new rtsp client 127.0.0.1:39064 comming
:FilterFlow:rkrga: buffer_pool get null buffer!

OPTIONS rtsp://127.0.0.1:8554/H264_stream_0 RTSP/1.0
CSeq: 1
User-Agent: Lavf58.20.100



RTSP/1.0 200 OK
CSeq: 1
Date: Fri Aug4 09:00:16 2017
Public: OPTIONS, DESCRIBE, SETUP, PLAY, PAUSE, TEARDOWN
Server: rtsp_demo

:FilterFlow:rkrga: buffer_pool get null buffer!

DESCRIBE rtsp://127.0.0.1:8554/H264_stream_0 RTSP/1.0
Accept: application/sdp
CSeq: 2
User-Agent: Lavf58.20.100



RTSP/1.0 200 OK
CSeq: 2
Date: Fri Aug4 09:00:16 2017
Server: rtsp_demo
Content-Type: application/sdp
Content-Length: 329

v=0
o=- 0 0 IN IP4 0.0.0.0
s=rtsp_demo
t=0 0
a=control:rtsp://127.0.0.1:8554/H264_stream_0
a=range:npt=0-
m=video 0 RTP/AVP 96
c=IN IP4 0.0.0.0
a=rtpmap:96 H264/90000
a=fmtp:96 packetization-mode=1;sprop-parameter-sets=Z03AKI2NUDwBEvLCAAADAAIAAAMAZR4RCNQ=,aM48gA==
a=control:rtsp://127.0.0.1:8554/H264_stream_0/track1
:FilterFlow:rkrga: buffer_pool get null buffer!

SETUP rtsp://127.0.0.1:8554/H264_stream_0/track1 RTSP/1.0
Transport: RTP/AVP/TCP;unicast;interleaved=0-1
CSeq: 3
User-Agent: Lavf58.20.100


new rtp over tcp for video ssrc:22345678 peer_addr:127.0.0.1 interleaved:0-1

RTSP/1.0 200 OK
CSeq: 3
Date: Fri Aug4 09:00:16 2017
Session: 12345678
Transport: RTP/AVP/TCP;ssrc=22345678;interleaved=0-1
Server: rtsp_demo

:FilterFlow:rkrga: buffer_pool get null buffer!

PLAY rtsp://127.0.0.1:8554/H264_stream_0 RTSP/1.0
Range: npt=0.000-
CSeq: 4
User-Agent: Lavf58.20.100
Session: 12345678



RTSP/1.0 200 OK
CSeq: 4
Date: Fri Aug4 09:00:16 2017
Session: 12345678
Server: rtsp_demo

:FilterFlow:rkrga: buffer_pool get null buffer!
:FilterFlow:rkrga: buffer_pool get null buffer!
:FilterFlow:rkrga: buffer_pool get null buffer!
:FilterFlow:rkrga: buffer_pool get null buffer!
:FilterFlow:rkrga: buffer_pool get null buffer!
:FilterFlow:rkrga: buffer_pool get null buffer!
:FilterFlow:rkrga: buffer_pool get null buffer!
:FilterFlow:rkrga: buffer_pool get null buffer!
:FilterFlow:rkrga: buffer_pool get null buffer!
:FilterFlow:rkrga: buffer_pool get null buffer!
:FilterFlow:rkrga: buffer_pool get null buffer!
30 Nov 18:14:48 ntpdate: step time server 119.28.183.184 offset 136458870.708679 sec
:FilterFlow:rkrga: buffer_pool get null buffer!
:FilterFlow:rkrga: buffer_pool get null buffer!
:FilterFlow:rkrga: buffer_pool get null buffer!
:FilterFlow:rkrga: buffer_pool get null buffer!
:FilterFlow:rkrga: buffer_pool get null buffer!
:FilterFlow:rkrga: buffer_pool get null buffer!
:FilterFlow:rkrga: buffer_pool get null buffer!
:FilterFlow:rkrga: buffer_pool get null buffer!
:FilterFlow:rkrga: buffer_pool get null buffer!
:FilterFlow:rkrga: buffer_pool get null buffer!
:FilterFlow:rkrga: buffer_pool get null buffer!
:FilterFlow:rkrga: buffer_pool get null buffer!
:FilterFlow:rkrga: buffer_pool get null buffer!
:FilterFlow:rkrga: buffer_pool get null buffer!
:FilterFlow:rkrga: buffer_pool get null buffer!
:FilterFlow:rkrga: buffer_pool get null buffer!
Input #0, rtsp, from 'rtsp://127.0.0.1:8554/H264_stream_0':
Metadata:
    title         : rtsp_demo
Duration: N/A, start: 0.719944, bitrate: N/A
    Stream #0:0: Video: h264 (Main), yuv420p(yuv420p) (progressive), 1920x1080, 25 fps, 25 tbr, 90k tbn, 50 tbc
:FilterFlow:rkrga: buffer_pool get null buffer!
:FilterFlow:rkrga: buffer_pool get null buffer!
:FilterFlow:rkrga: buffer_pool get null buffer!
Output #0, flv, to 'rtmp://127.0.0.1/live/mainstream':
Metadata:
    title         : rtsp_demo
    encoder         : Lavf58.20.100
    Stream #0:0: Video: h264 (Main) ( / 0x0007), yuv420p(yuv420p) (progressive), 1920x1080, q=2-31, 25 fps, 25 tbr, 1k tbn, 90k tbc
Stream mapping:
Stream #0:0 -> #0:0 (copy)
Press to stop, [?] for help
:FilterFlow:rkrga: buffer_pool get null buffer!
:FilterFlow:rkrga: buffer_pool get null buffer!
:FilterFlow:rkrga: buffer_pool get null buffer!
:FilterFlow:rkrga: buffer_pool get null buffer!
:FilterFlow:rkrga: buffer_pool get null buffer!
:FilterFlow:rkrga: buffer_pool get null buffer!
:FilterFlow:rkrga: buffer_pool get null buffer!
:FilterFlow:rkrga: buffer_pool get null buffer!1480.7kbits/s speed= 4.3x
:FilterFlow:rkrga: buffer_pool get null buffer!
:FilterFlow:rkrga: buffer_pool get null buffer!
:FilterFlow:rkrga: buffer_pool get null buffer!
:FilterFlow:rkrga: buffer_pool get null buffer!
:FilterFlow:rkrga: buffer_pool get null buffer!
:FilterFlow:rkrga: buffer_pool get null buffer!1291.5kbits/s speed=2.63x
:FilterFlow:rkrga: buffer_pool get null buffer!
:FilterFlow:rkrga: buffer_pool get null buffer!
:FilterFlow:rkrga: buffer_pool get null buffer!
:FilterFlow:rkrga: buffer_pool get null buffer!
:FilterFlow:rkrga: buffer_pool get null buffer!
:FilterFlow:rkrga: buffer_pool get null buffer!1225.8kbits/s speed=2.13x
:FilterFlow:rkrga: buffer_pool get null buffer!
:FilterFlow:rkrga: buffer_pool get null buffer!
:FilterFlow:rkrga: buffer_pool get null buffer!
:FilterFlow:rkrga: buffer_pool get null buffer!
:FilterFlow:rkrga: buffer_pool get null buffer!
:FilterFlow:rkrga: buffer_pool get null buffer!
:FilterFlow:rkrga: buffer_pool get null buffer!
:FilterFlow:rkrga: buffer_pool get null buffer!
:FilterFlow:rkrga: buffer_pool get null buffer!1212.6kbits/s speed=1.84x
:FilterFlow:rkrga: buffer_pool get null buffer!
:FilterFlow:rkrga: buffer_pool get null buffer!
:FilterFlow:rkrga: buffer_pool get null buffer!
:FilterFlow:rkrga: buffer_pool get null buffer!1413.5kbits/s speed=1.66x
:FilterFlow:rkrga: buffer_pool get null buffer!
:FilterFlow:rkrga: buffer_pool get null buffer!
:FilterFlow:rkrga: buffer_pool get null buffer!
:FilterFlow:rkrga: buffer_pool get null buffer!
:FilterFlow:rkrga: buffer_pool get null buffer!
:FilterFlow:rkrga: buffer_pool get null buffer!
:FilterFlow:rkrga: buffer_pool get null buffer!1302.5kbits/s speed=1.55x
:FilterFlow:rkrga: buffer_pool get null buffer!
:FilterFlow:rkrga: buffer_pool get null buffer!
:FilterFlow:rkrga: buffer_pool get null buffer!
:FilterFlow:rkrga: buffer_pool get null buffer!
:FilterFlow:rkrga: buffer_pool get null buffer!1217.2kbits/s speed=1.48x
:FilterFlow:rkrga: buffer_pool get null buffer!
:FilterFlow:rkrga: buffer_pool get null buffer!
:FilterFlow:rkrga: buffer_pool get null buffer!
:FilterFlow:rkrga: buffer_pool get null buffer!
:FilterFlow:rkrga: buffer_pool get null buffer!
:FilterFlow:rkrga: buffer_pool get null buffer!
:FilterFlow:rkrga: buffer_pool get null buffer!
:FilterFlow:rkrga: buffer_pool get null buffer!
:Mode:Chn drop buffer, Please get buffer in time!s/s speed=1.41x
:FilterFlow:rkrga: buffer_pool get null buffer!
:FilterFlow:rkrga: buffer_pool get null buffer!
:FilterFlow:rkrga: buffer_pool get null buffer!
:FilterFlow:rkrga: buffer_pool get null buffer!
:FilterFlow:rkrga: buffer_pool get null buffer!
:FilterFlow:rkrga: buffer_pool get null buffer!1320.2kbits/s speed=1.37x
:FilterFlow:rkrga: buffer_pool get null buffer!
:FilterFlow:rkrga: buffer_pool get null buffer!
:FilterFlow:rkrga: buffer_pool get null buffer!
:FilterFlow:rkrga: buffer_pool get null buffer!
:FilterFlow:rkrga: buffer_pool get null buffer!
:FilterFlow:rkrga: buffer_pool get null buffer!1253.2kbits/s speed=1.33x
:FilterFlow:rkrga: buffer_pool get null buffer!
:FilterFlow:rkrga: buffer_pool get null buffer!
:FilterFlow:rkrga: buffer_pool get null buffer!
:FilterFlow:rkrga: buffer_pool get null buffer!
:FilterFlow:rkrga: buffer_pool get null buffer!
:FilterFlow:rkrga: buffer_pool get null buffer!1200.6kbits/s speed= 1.3x
:FilterFlow:rkrga: buffer_pool get null buffer!
:FilterFlow:rkrga: buffer_pool get null buffer!

czx 发表于 2021-11-30 18:21:48

或者说这个:FilterFlow:rkrga: buffer_pool get null buffer!打印能不能关掉啊,怎么关掉,这个会影响rockx的demo测试吗

czx 发表于 2021-11-30 18:40:13

czx 发表于 2021-11-26 14:46
都不能

网址能看到摄像头画面了

799959745 发表于 2021-12-1 08:52:56

出现那个错误是因为 AI 识别的时间过长导致RGA通道无法及时获取到对应通道的信息。你把识别分辨率调回之前的720x576,报错就会少很多。
要彻底关掉这个错误打印可以注册一个回调函数。回调函数把buffer零拷贝出来,不要在回调函数做AI识别等耗时操作。在别的函数处理这个buffer。具体相关函数参照sdk/docs/Socs/RV1126_RV1109/Multimedia/Rockchip_Developer_Guide_Linux_RKMedia_CN.pdf。
页: 1 [2] 3
查看完整版本: 编译RV1126 基于 rockx 实现的 isp 摄像头动态识别 demo遇到的问题