出错信息如下:
Couldn't open file test.mp4: -1330794744(Protocol not found)
协议没有找到, 先看下有哪些协议
./configure --list-protocols
async http libssh rtmpts
bluray httpproxy libzmq rtp
cache https md5 sctp
concat icecast mmsh srtp
crypto libamqp mmst subfile
data librtmp pipe tcp
ffrtmpcrypt librtmpe prompeg tee
ffrtmphttp librtmps rtmp tls
file librtmpt rtmpe udp
ftp librtmpte rtmps udplite
gopher libsmbclient rtmpt unix
hls libsrt rtmpte
因为test.mp4存在磁盘里, 所以先在配置时把file协议加上
--enable-protocol=file
解决Protocolnotfound错误:添加file协议,
文章描述了一种特定的出错情况,即无法打开文件test.mp4,错误代码表示协议未找到。用户检查了可用协议列表,并发现file协议缺失。为了解决问题,建议在配置时通过--enable-protocol=file添加file协议支持。
7376

被折叠的 条评论
为什么被折叠?



