Skip to content

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

@artsorn

Description

@artsorn

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions