Page 1 of 1

How to restart Streaming

Posted: 2025-10-03 18:37
by RogerTheFox
I have a buildroot based image from which I can successfully stream.
On boot up RkLunch.sh runs and I can connect with VLC on: rtsp://192.168.1.206/live/0


I can then stop the streaming service with RkLunch-stop.sh:

RkLunch-stop.sh
Stop Application ...
killall: udhcpc: no process killed
rkipc exit
ls: /oem/usr/etc/init.d/S??*: No such file or directory

However, if I try to restart streaming the system hangs

Code: Select all

rtsp streamq_alloc size is 1753484
rtsp streamq_alloc size is 59884
[DEBUG rtsp_demo.c:480:rtsp_new_session] add session path: /live/1
rtsp streamq_alloc size is 1753484
rtsp streamq_alloc size is 59884
RKViChn          02:35:04-011 {prepareRuntime    :354} ---------------------------------------------------------
RKViChn          02:35:04-012 {prepareRuntime    :356} vi version: 1.22, name:vvi
RKViChn          02:35:04-012 {prepareRuntime    :357} rockit-ko version: vmpi:28ee389dbc33
RKViChn          02:35:04-013 {prepareRuntime    :358} rockit-ko building: -2024-05-24-18:15:06
RKViChn          02:35:04-013 {prepareRuntime    :359} ---------------------------------------------------------
cmpi             02:35:04-013 {prepareRuntime    :378} mb pool create success, MBCnt= 2
RTIsp3x          02:35:04-016 {ispInitDevice     :591} sensor name = m00_b_sc3336 4-0030
cmpi             02:35:04-023 {createRuntime     :634} >>>>>>>>> Sensor link info dump: <<<<<<<<<
cmpi             02:35:04-024 {createRuntime     :636}   vicap media name           : /dev/media0
cmpi             02:35:04-025 {createRuntime     :637}   vicap model name           : rkcif-mipi-lvds
cmpi             02:35:04-027 {createRuntime     :638}   camera id                  : 0
cmpi             02:35:04-027 {createRuntime     :639}   sensor name                : m00_b_sc3336 4-0030
cmpi             02:35:04-028 {createRuntime     :641}   stream_cif_mipi_id0 video name: /dev/video0
cmpi             02:35:04-028 {createRuntime     :642}   stream_cif_mipi_id1 video name: /dev/video1
cmpi             02:35:04-029 {createRuntime     :643}   stream_cif_mipi_id2 video name: /dev/video2
cmpi             02:35:04-029 {createRuntime     :644}   stream_cif_mipi_id3 video name: /dev/video3
cmpi             02:35:04-029 {createRuntime     :646}   sensor raw width           : 2304
cmpi             02:35:04-029 {createRuntime     :647}   sensor raw height          : 1296
cmpi             02:35:04-029 {createRuntime     :648} ---------------------------------------------------------
cmpi             02:35:04-030 {createRuntime     :654}   isp media name           : /dev/media1
cmpi             02:35:04-030 {createRuntime     :655}   isp model name           : rkisp0
cmpi             02:35:04-030 {createRuntime     :656}   isp driver name          : rkisp-vir0
cmpi             02:35:04-030 {createRuntime     :657}   isp dev name             : /dev/v4l-subdev3
cmpi             02:35:04-031 {createRuntime     :659}   isp rawrd0_m_path        : /dev/video17
cmpi             02:35:04-031 {createRuntime     :660}   isp rawrd1_l_path        :
cmpi             02:35:04-031 {createRuntime     :661}   isp rawrd2_s_path        : /dev/video18
cmpi             02:35:04-031 {createRuntime     :664}   mainpath video name      : /dev/video11
cmpi             02:35:04-031 {createRuntime     :665}   selfpath video name      : /dev/video12
cmpi             02:35:04-031 {createRuntime     :666}   bypasspath video name    : /dev/video13
cmpi             02:35:04-032 {createRuntime     :667}   sensor link type         : 2
cmpi             02:35:04-032 {createRuntime     :668}   sensor is united         : 0
cmpi             02:35:04-032 {createRuntime     :672} ---------------------------------------------------------
cmpi             02:35:04-033 {createRuntime     :711} [non-WRAP MODE]: buff size = 4478976
RTIsp3x          02:35:04-049 {ispInitDevice     :591} sensor name = m00_b_sc3336 4-0030
RTDeviceV4L2     02:35:04-056 {open              :137} cameraIndex:0, entityName:rkisp_mainpath
RTDeviceV4L2     02:35:04-059 {open              :143} open video name(/dev/video11)
RKViChn          02:35:04-061 {setFrameRate      :1469} [vi] dev(0) ch(0) illegal param s32SrcFrameRate(0) s32DstFrameRate(0)
RTDeviceV4L2     02:35:04-065 {ispCameraInfo     :567} current device:/dev/video11 isn't compatible(cap:0x84201000) device,memoryType:4, retry:0
RTDeviceV4L2     02:35:04-066 {ispInitFormat     :767} ioctl VIDIOC_S_FMT OK
cmpi             02:35:04-069 {start             :1093} =========== vi Start startRuntime ===========
RTDeviceV4L2     02:35:04-069 {ispStreamOn       :458} do ispStreamOn start
CAMHW:K:camId:0, notify_isp_stream_status on
RTDeviceV4L2     02:35:04-094 {ispStreamOn       :511} do ispStreamOn done
[video.c][rk_video_set_frame_rate]:num is 25, den is 1
[video.c][rk_video_set_frame_rate]:old VI framerate is [-1:-1]
[video.c][rk_video_set_frame_rate]:new VI framerate is [25:25]
RKVencChannel    02:35:04-095 {setH265CuDqp      :4003} pstCuDqp illegal param: u32CuDqp -6(expects range [0, 2])
MpiAdapterEncode 02:35:04-096 {ma_encode_create  :1743} ringbuf buf_size 1495040
Is there a way of safely stopping and restarting streaming?

Re: How to restart Streaming

Posted: 2025-10-09 2:03
by Crocodile
Hello. Using RkLunch.sh and RkLunch-stop.sh is a relatively safe way to start and stop the streaming program rkipc. By default, RkLunch.sh will be executed once when starting. If it is executed repeatedly, errors may occur due to resource allocation issues. Please check if automatic execution of RkLunch.sh has been disabled.