How to use sample_venc for video streaming on LicheeRV Nano? #97

Open
opened 2025-08-18 06:17:48 -04:00 by artsorn · 4 comments
artsorn commented 2025-08-18 06:17:48 -04:00 (Migrated from github.com)

Hello,

I am trying to use the sample_venc tool on the LicheeRV Nano for real-time video streaming from the GC4653 MIPI camera sensor.

When I run a command such as:

/mnt/system/usr/bin/sample_venc
--testMode=2 --bindmode=1 --sensorEn=1
-c 264
--viWidth=2560 --viHeight=1440
--vpssWidth=2560 --vpssHeight=1440
-w 2560 -h 1440
--srcFramerate=30 --framerate=30 --gop=30
--bitrate=4000
--frame_num=90
-o /tmp/out.264

I see that /tmp/isp_fifo and /tmp/bs.pipe are created, but the output file remains empty (size 0).
I would like to use this output for video streaming over the network (for example, with ffmpeg or another tool).

My questions are:

  1. What is the recommended way to capture the encoded H.264 stream from sample_venc? Should I read from /tmp/bs.pipe or another FIFO?

  2. How can I properly use this stream for real-time video streaming (e.g., via RTSP or HTTP)?

  3. Is there any existing example or reference configuration for using sample_venc with streaming?

Thanks in advance!

Hello, I am trying to use the sample_venc tool on the LicheeRV Nano for real-time video streaming from the GC4653 MIPI camera sensor. When I run a command such as: /mnt/system/usr/bin/sample_venc \ --testMode=2 --bindmode=1 --sensorEn=1 \ -c 264 \ --viWidth=2560 --viHeight=1440 \ --vpssWidth=2560 --vpssHeight=1440 \ -w 2560 -h 1440 \ --srcFramerate=30 --framerate=30 --gop=30 \ --bitrate=4000 \ --frame_num=90 \ -o /tmp/out.264 I see that /tmp/isp_fifo and /tmp/bs.pipe are created, but the output file remains empty (size 0). I would like to use this output for video streaming over the network (for example, with ffmpeg or another tool). My questions are: 1. What is the recommended way to capture the encoded H.264 stream from sample_venc? Should I read from /tmp/bs.pipe or another FIFO? 2. How can I properly use this stream for real-time video streaming (e.g., via RTSP or HTTP)? 3. Is there any existing example or reference configuration for using sample_venc with streaming? Thanks in advance!
TeschRenan commented 2025-09-24 06:28:18 -04:00 (Migrated from github.com)

Hello, I've the same problem, did you get an answer?
Best Regards.

Hello, I've the same problem, did you get an answer? Best Regards.
DigitalAnalogPowerPCB commented 2026-01-05 12:09:42 -05:00 (Migrated from github.com)

I feel like they broke everything on purpose to make it work. It doesn't work for me with the LicheeRV Nano.
The last message in the terminal when I try to connect RTSP to the VLC:
wdrLEOnly:1
rtsp close
rtsp close

I used different pre-built images, and they all show the same message. Different routers, different systems: Windows 10, Windows 11, Ubuntu 24.04.2. I used a wired connection, WiFi, and USB.

I tried it with MilkV, and everything worked right away, but I need the LicheeRV Nano.

I feel like they broke everything on purpose to make it work. It doesn't work for me with the LicheeRV Nano. The last message in the terminal when I try to connect RTSP to the VLC: wdrLEOnly:1 rtsp close rtsp close I used different pre-built images, and they all show the same message. Different routers, different systems: Windows 10, Windows 11, Ubuntu 24.04.2. I used a wired connection, WiFi, and USB. I tried it with MilkV, and everything worked right away, but I need the LicheeRV Nano.
ralonsog commented 2026-04-15 10:18:49 -04:00 (Migrated from github.com)

Same problem yet

Same problem yet
gspinelli01 commented 2026-04-23 07:09:34 -04:00 (Migrated from github.com)

same problem, did you find a solution?

same problem, did you find a solution?
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
maxpeterkaya/LicheeRV-Nano-Build#97
No description provided.