问题描述
我使用命令行 ffmpeg -f v4l2 -i /dev/video1 -video_size 1920x1080 -vsync passthrough -vcodec h264_v4l2m2m -b:v 10M -f rtp rtp://localhost:1233 推rtp 成功
改输出到 rtsp 失败 ffmpeg -f v4l2 -i /dev/video1 -video_size 1920x1080 -vsync passthrough -vcodec h264_v4l2m2m -b:v 10M -f rtsp rtsp://localhost:8554/stream 出错
出错信息
Failed to set timeperframeConnection to tcp://localhost:8554?timeout=0 failed: Connection refused
Could not write header for output file #0 (incorrect codec parameters ?): Connection refused
Error initializing output stream 0:0 --
sdk 自带的camera_rtsp_demo 推流 rtsp 正常,似乎也是用的ffmpeg 的 API, 但我没有找到勘智的资料,或者 ffmpeg API是通用的?
硬件板卡
CANMV_K230 _LP4 V3.0
软件版本
k230 linux sdk