czx 发表于 2021-11-19 12:01:54

编译RV1126 基于 rockx 实现的 isp 摄像头动态识别 demo遇到的问题

参考帖子https://dev.t-firefly.com/thread-104655-1-1.html
执行步骤
1、更新SDK。在rv1126_rv1109_linux_release_20210306目录下执行.repo/repo/repo sync -c --no-tags指令更新SDK源码。
首次更新时没有报错,后续再执行相同指令更新时,有如下报错信息
info: A new version of repo is available


warning: project 'repo' branch 'stable' is not signed
warning: Skipped upgrade to unverified version
Syncing work tree: 100% (80/80), done.

error: app/firefly_rkmedia_demo/: contains uncommitted changes
error: app/firefly_rkmedia_uvc/: contains uncommitted changes


不知道有没有影响
2、查看xml对应版本,执行ls .repo/manifests/rv1126_rv1109_linux_release.xml -l,得到下面信息
.repo/manifests/rv1126_rv1109_linux_release.xml -> rv1126_rv1109_linux/rv1126_rv1109_linux_20211022.xml

3、执行./build.sh device/rockchip/rv1126_rv1109/aio-rv1126-xhlpr.mk,得到下面信息
processing board option: device/rockchip/rv1126_rv1109/aio-rv1126-xhlpr.mk
processing option: device/rockchip/rv1126_rv1109/aio-rv1126-xhlpr.mk

4、进行源码编译,依次执行
cd app/firefly_rockx_demo
cmake .
得到信息
CMake Error at CMakeLists.txt:33 (find_package):
Could not find a configuration file for package "MiniLogger" that is
compatible with requested version "".

The following configuration files were considered but not accepted:

    /home/chenzx/rv_01/rv1126_rv1109/buildroot/output/rockchip_rv1126_rv1109/build/minilogger/MiniLoggerConfig.cmake, version: 1.0.0 (32bit)



-- Configuring incomplete, errors occurred!
See also "/home/chenzx/ffy_1126/Linux_SDk/rv1126_rv1109_linux_release_20210306/app/firefly_rockx_demo/CMakeFiles/CMakeOutput.log".

CMakeOutput.log内容如下
The system is: Linux - 4.15.0-142-generic - x86_64
Compiling the C compiler identification source file "CMakeCCompilerId.c" succeeded.
Compiler: /usr/bin/cc
Build flags:
Id flags:

The output was:
0


Compilation of the C compiler identification source "CMakeCCompilerId.c" produced "a.out"

The C compiler identification is GNU, found in "/home/chenzx/ffy_1126/Linux_SDk/rv1126_rv1109_linux_release_20210306/app/firefly_rockx_demo/CMakeFiles/3.11.3/CompilerIdC/a.out"

Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" succeeded.
Compiler: /usr/bin/c++
Build flags:
Id flags:

The output was:
0


Compilation of the CXX compiler identification source "CMakeCXXCompilerId.cpp" produced "a.out"

The CXX compiler identification is GNU, found in "/home/chenzx/ffy_1126/Linux_SDk/rv1126_rv1109_linux_release_20210306/app/firefly_rockx_demo/CMakeFiles/3.11.3/CompilerIdCXX/a.out"

Determining if the C compiler works passed with the following output:
Change Dir: /home/chenzx/ffy_1126/Linux_SDk/rv1126_rv1109_linux_release_20210306/app/firefly_rockx_demo/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTC_06c1b/fast"
/usr/bin/make -f CMakeFiles/cmTC_06c1b.dir/build.make CMakeFiles/cmTC_06c1b.dir/build
make: Entering directory '/home/chenzx/ffy_1126/Linux_SDk/rv1126_rv1109_linux_release_20210306/app/firefly_rockx_demo/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_06c1b.dir/testCCompiler.c.o
/usr/bin/cc    -o CMakeFiles/cmTC_06c1b.dir/testCCompiler.c.o   -c /home/chenzx/ffy_1126/Linux_SDk/rv1126_rv1109_linux_release_20210306/app/firefly_rockx_demo/CMakeFiles/CMakeTmp/testCCompiler.c
Linking C executable cmTC_06c1b
/usr/local/bin/cmake -E cmake_link_script CMakeFiles/cmTC_06c1b.dir/link.txt --verbose=1
/usr/bin/cc      -rdynamic CMakeFiles/cmTC_06c1b.dir/testCCompiler.c.o-o cmTC_06c1b
make: Leaving directory '/home/chenzx/ffy_1126/Linux_SDk/rv1126_rv1109_linux_release_20210306/app/firefly_rockx_demo/CMakeFiles/CMakeTmp'


现在就卡在这了,求大佬解惑{:4_104:}

799959745 发表于 2021-11-19 14:17:20

请详细阅读编译准备说明。
你需要按照操作去修改 sdk/buildroot/configs/firefly_rv1126_rv1109_xhlpr_defconfig 文件。
然后回到 sdk 根目录执行 ./build.sh buildroot 。它会自动去编译 firefly_rockx_demo。接下来编译完成之后就只需要把生成的文件系统镜像烧录到板子就可以了。
文件系统镜像目录:sdk/rockdev/rootfs.img

799959745 发表于 2021-11-19 14:37:34

有关 buildroot 系统的资料与教程可以看一下:https://wiki.t-firefly.com/zh_CN/Firefly-RK3399/buildroot_develop.html。有详细的介绍。

czx 发表于 2021-11-19 16:59:24

编译完启动系统了,执行/usr/share/firefly_rockx_demo/start_rockx_app.sh启动车牌识别,
一直报错:FilterFlow:rkrga: buffer_pool get null buffer!

799959745 发表于 2021-11-22 09:24:30

czx 发表于 2021-11-19 16:59
编译完启动系统了,执行/usr/share/firefly_rockx_demo/start_rockx_app.sh启动车牌识别,
一直报错

提供一下具体运行 log 或相关错误截图。光一条 log 怎么给你分析呢?

czx 发表于 2021-11-22 10:05:07

开机后执行运行指令/usr/share/firefly_rockx_demo/start_rockx_app.sh,log信息如下
#
# /usr/share/firefly_rockx_demo/start_rockx_app.sh
media get entity by name: rkcif-lvds-subdev is null
media get entity by name: rkcif-lite-lvds-subdev is null
media get entity by name: rkisp-mpfbc-subdev is null
media get entity by name: rkisp_dmapath is null
media get entity by name: rockchip-mipi-dphy-rx is null
Rga built version:1.04 c54e142+2021-11-19 14:59:15
mode = s
iq_file_path = /oem/etc/iqfiles.
activation_conf_path = .
licSever_path = .
video_node = rkispp_scale0.
http_path = .
VideoType = 6.
EnImageType = 4.
EnVideoWidth = 1920.
EnVideoHeight = 1080.
InImageType = 4.
OutImageType = 18.
InVideoWidth = 1920.
InVideoHeight = 1080.
OutVideoWidth = 1920.
OutVideoHeight = 1080.
#CameraIdx: 0

#Rkaiq XML DirPath: /oem/etc/iqfiles
#bMultictx: 0

ID: 0, sensor_name is m01_f_os04a10 1-0036, iqfiles is /oem/etc/iqfiles
clk_mipicsi_out2io_fracdiv p_rate(297000000) is low than rate(24000000)*20, use integer or half-div
os04a10 1-0036: sensor mode: 0
rk_aiq_uapi_sysctl_init/prepare succeed
rkcif_mipi_lvds: Allocate dummy buffer, size: 0x00532000
rockchip-mipi-csi2 ffb10000.mipi-csi2: stream on, src_sd: e714e54f, sd_name:rockchip-mipi-dphy-rx
rockchip-mipi-csi2 ffb10000.mipi-csi2: stream ON
rockchip-mipi-dphy-rx ff4b0000.csi-dphy: stream on:1
rockchip-mipi-dphy-rx: data_rate_mbps 720
rockchip-mipi-dphy-rx ff4b0000.csi-dphy: stream on:1
rk_aiq_uapi_sysctl_start succeed
SAMPLE_COMM_ISP_SetFrameRate start 25
SAMPLE_COMM_ISP_SetFrameRate 25
##RKMEDIA Log level: 2
:text is all=2
:module is all, log_level is 2
:RK_MPI_VI_EnableChn: Enable VI:rkispp_scale0, 1920x1080 Start...
:RKAIQ: parsing /dev/media0
media get entity by name: rkcif-lvds-subdev is null
media get entity by name: rkcif-lite-lvds-subdev is null
:RKAIQ: parsing /dev/media1
media get entity by name: rkisp-mpfbc-subdev is null
media get entity by name: rkisp_dmapath is null
media get entity by name: rockchip-mipi-dphy-rx is null
: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_scale0
:camera_id: 0, chn: rkispp_scale0
:camera_id: 0, chn: rkispp_scale0, idx: 0
:#V4l2Stream: camera id:0, VideoNode:/dev/video19
rkispp0: scale0:0x0 out of range:
[wUsing mplane plugin for capture
idth max:3264 ratio max:8 min:1]
rkispp0: scale0:0x0 out of range:

rkispp0: scale0:0x0 out of range:

rkispp0: scale0:0x0 out of range:
:#V4L2Ct2x: open /dev/video19, fd 92
9.202743]       :Opened DRM device /dev/dri/card0: droiver rockchip version 2.0.0.
max:8 min:1]
rkispp0: scale0:0x0 out of range:

:XCAM ERROR Isp20PollThread.cpp:1425: skip num4, skip seq 0, dest seq 4
:RK_MPI_VI_EnableChn: Enable VI:rkispp_scale0, 1920x1080 End...
rtsp server demo starting on port 8554
add session path: /H264_stream_0
:RK_MPI_RGA_CreateChn: Enable RGA, Rect<0,0,1920,1080> Start...
:FilterFlow:rkrga: Enable BufferPool! memtype:hw_mem, memcnt:2
:XCAM ERROR Isp20PollThread.cpp:1425: skip num3, skip seq 1, dest seq 4
:RK_MPI_RGA_CreateChn: Enable RGA, Rect<0,0,1920,1080> End...
#Bind RK_ID_VI to RK_ID_RGA....
:RK_MPI_SYS_Bind: Bind Mode:Chn to Mode:Chn...
:XCAM ERROR Isp20PollThread.cpp:1425: skip num2, skip seq 2, dest seq 4
:XCAM ERROR Isp20PollThread.cpp:1425: skip num1, skip seq 3, dest seq 4
:RK_MPI_RGA_CreateChn: Enable RGA, Rect<0,0,1920,1080> Start...
:FilterFlow:rkrga: Enable BufferPool! memtype:hw_mem, memcnt:2
:RK_MPI_RGA_CreateChn: Enable RGA, Rect<0,0,1920,1080> End...
:RK_MPI_VENC_CreateChn: Enable VENC, Type:6 Start...
mpp: mpp_rt: NOT found ion allocator
mpp: mpp_rt: found drm allocator
mpp: mpp_info: mpp version: 92a7c2a author: daijh          2021-04-21 debian: fix patch not found bug
:MPP Encoder: MPPConfig: cfg init sucess!
:MPP Encoder: qpMaxi use default value:48
:MPP Encoder: qpMini use default value:8
:MPP Encoder: qpMax use default value:48
:MPP Encoder: qpMin use default value:8
:MPP Encoder: qpInit use default value:-1
:MPP Encoder: qpStep use default value:2
:MPP Encoder: rotaion = 0
:MPP Encoder: automatically calculate bsp with bps_target
:MPP Encoder: Set output block mode.
:MPP Encoder: Set input block mode.
:MPP Encoder: bps: fps: ->, gop:30 qpInit:-1, qpMin:8, qpMax:48, qpMinI:8, qpMaxI:48.
:MPP Encoder: AVC: encode profile 77 level 0
mpp: mpp_enc: MPP_ENC_SET_RC_CFG bps 2073600 fps gop 30
mpp: h264e_api_v2: MPP_ENC_SET_PREP_CFG w:h stride
mpp: mpp_enc: send header for set cfg change input/format
:MPP Encoder: w x h(1920 x 1080)
mpp: mpp_enc: mode vbr bps fps fix -> fix gop i v
:RK_MPI_VENC_CreateChn: Enable VENC, Type:6 End...
#Bind RK_ID_RGA to RK_ID_VENC....
:RK_MPI_SYS_Bind: Bind Mode:Chn to Mode:Chn...
:FilterFlow:rkrga: buffer_pool get null buffer!
mpp: h264e_sps: set level to 4
sps 26
pps 4
:FilterFlow:rkrga: buffer_pool get null buffer!
media get entity by name: rkcif-lvds-subdev is null
media get entity by name: rkcif-lite-lvds-subdev is null
media get entity by name: rkisp-mpfbc-subdev is null
media get entity by name: rkisp_dmapath is null
media get entity by name: rockchip-mipi-dphy-rx is null
Rga built version:1.04 c54e142+2021-11-19 14:59:15
mode = c
iq_file_path = .
activation_conf_path = /usr/share/firefly_rockx_demo/licSever/activation.conf.
licSever_path = /usr/share/firefly_rockx_demo/licSever.
video_node = rkispp_scale1.
http_path = .
VideoType = 6.
EnImageType = 4.
EnVideoWidth = 1920.
EnVideoHeight = 1080.
InImageType = 4.
OutImageType = 18.
InVideoWidth = 2688.
InVideoHeight = 1520.
OutVideoWidth = 2688.
OutVideoHeight = 1520.
##RKMEDIA Log level: 2
:text is all=2
:module is all, log_level is 2
:RK_MPI_VI_EnableChn: Enable VI:rkispp_scale1, 2688x1520 Start...
:RKAIQ: parsing /dev/media0
media get entity by name: rkcif-lvds-subdev is null
media get entity by name: rkcif-lite-lvds-subdev is null
:RKAIQ: parsing /dev/media1
media get entity by name: rkisp-mpfbc-subdev is null
media get entity by name: rkisp_dmapath is null
media get entity by name: rockchip-mipi-dphy-rx is null
: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
rkispp0: scale1:0x0 out of range:
[wUsing mplane plugin for captuire
dth max:1280 ratio max:8 min:2]
rkispp0: scale1:0x0 out of range:

rkispp0: scale1:0x0 out of range:

rkispp0: scale1:0x0 out of range:

rkispp0: scale1:0x0 out of range:
:#V4L2Ctmx: open /dev/video20, fd 6
ax:8 min:2]
:Opened DRM device /dev/dri/card0: driver rockchip version 2.0.0.
: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!
# 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
libavutil      56. 22.100 / 56. 22.100
libavcodec   58. 35.100 / 58. 35.100
libavformat    58. 20.100 / 58. 20.100
:FilterFlow:rkrga: buffer_pool get null buffer!
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:47346 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: Mon Nov 22 10:03:45 2021
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: Mon Nov 22 10:03:45 2021
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: Mon Nov 22 10:03:45 2021
Session: 12345678
Transport: RTP/AVP/TCP;ssrc=22345678;interleaved=0-1
Server: rtsp_demo


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: Mon Nov 22 10:03:45 2021
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!
: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!
Input #0, rtsp, from 'rtsp://127.0.0.1:8554/H264_stream_0':
Metadata:
    title         : rtsp_demo
Duration: N/A, start: 0.599944, bitrate: N/A
    Stream #0:0: Video: h264 (Main), yuv420p(yuv420p) (progressive), 1920x1080, 25 fps, 12.50 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, 12.50 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!1459.2kbits/s speed=4.85x
: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!1297.9kbits/s speed=2.83x
:FilterFlow:rkrga: buffer_pool get null buffer!

799959745 发表于 2021-11-23 08:59:25

start_rockx_app.sh 这条有改吗?要将 127.0.0.1 改成 RV1126 的IP地址。
ffmpeg -f rtsp -rtsp_transport tcp -i "rtsp://127.0.0.1:8554/H264_stream_0" -ccopy -f flv "rtmp://127.0.0.1/live/mainstream" &

czx 发表于 2021-11-26 12:23:21

799959745 发表于 2021-11-23 08:59
start_rockx_app.sh 这条有改吗?要将 127.0.0.1 改成 RV1126 的IP地址。

还是一样,start_rockx_app.sh里改了,重新编译程序放板子运行,还是上面的报错信息

czx 发表于 2021-11-26 12:50:55

脚本及运行步骤信息如附件图所示

799959745 发表于 2021-11-26 14:05:56

vlc 能看到画面吗??或者直接输入网址能网页预览吗?
页: [1] 2 3
查看完整版本: 编译RV1126 基于 rockx 实现的 isp 摄像头动态识别 demo遇到的问题