linux c++ ffmpeg rtsp推流报错 rtsp://localhost:8554/Live: Protocol not found

根据报错内容rtsp://localhost:8554/Live: Protocol not found

意思是没有找到对应协议,添加以下红色字体指令解决,

std::string rtsp_server_url = "rtsp://localhost:8554/live";

std::stringstream command;

command << "ffmpeg ";

command << "-y " // overwrite output files

<< "-an " // disable audio

<< "-f rawvideo " // force format to rawvideo

<< "-vcodec rawvideo " // force video rawvideo ('copy' to copy stream)

<< "-pix_fmt bgr24 " // set pixel format to bgr24

<< "-s 640x516 " // set frame size (WxH or abbreviation)

<< "-r 25 "; // set frame rate (Hz value, fraction or abbreviation)

command << "-i - "; //

command << "-c:v libx264 " // Hyper fast Audio and Video encoder

<< "-pix_fmt yuv420p " // set pixel format to yuv420p

<< "-preset ultrafast " // set the libx264 encoding preset to ultrafast

<< "-f flv " // force format to flv

<< "-rtsp_transport tcp "

<< "-f rtsp "

<< rtsp_server_url;

相关推荐
Aaron15886 小时前
通用的通感控算存一体化平台设计方案
linux·人工智能·算法·fpga开发·硬件工程·射频工程·基带工程
讨厌下雨的天空6 小时前
缓冲区io
linux·服务器·前端
就是ping不通的蛋黄派6 小时前
数据结构与算法—线性表(C++描述)
数据结构·c++
知南x6 小时前
【Socket消息传递】(1) 嵌入式设备间Socket通信传输图片
linux·fpga开发
沐浴露z7 小时前
一张思维导图理清【操作系统】
java·linux·网络
太阳风暴7 小时前
Linux CPU频率文件详解:cpuinfo__freq 与 scaling_cur_freq
linux·服务器·cpu
Yxrrr__8 小时前
Linux系统常用命令
linux·运维·服务器
wdfk_prog8 小时前
[Linux]学习笔记系列 -- [kernel]signal
linux·笔记·学习
栈低来信8 小时前
Linux I2C子系统
linux
百***06018 小时前
Linux下PostgreSQL-12.0安装部署详细步骤
linux·运维·postgresql