What is command for K230 push stream video+audio to rtsp server with ffmpeg?

Viewed 123

重现步骤

I want to use ffmpeg cmd to push video+audio to rtsp server

期待结果和实际结果

After, i use VLC pull stream from rtsp server
But, i don't know what is cmd
软硬件版本信息

HW: 01Studio CanMV
FW: k230_linux_sdk

错误日志

尝试解决过程

补充材料

1 Answers

You can use the ALSA interface in ffmpeg to capture PCM audio, encode it to G711, and then output it via the RTSP protocol.

ffmpeg -f v4l2 -input_format nv12 -r 30 -s 1920x1080 -i /dev/video1 -f alsa -sample_rate 8000 -channels 2 -i hw:0 -c:v h264_v4l2m2m -b:v 2M -c:a pcm_mulaw -ar 8000 -ac 2 -vsync passthrough -f rtsp -rtsp_transport tcp "rtsp url"