在推流命令ffmpeg后面加上 -v debug参数 ,可以看到Cannot read RTMP handshake response,在RTMP握手过程出现了问题,导致连接被重置 那么就只可能是网络问题,很有可能是现场配置了网络策略,导致握手无法完成 打电话与现场网络工程师沟通确认配置了新的网络策略,开放白名单,再次测试可以正常推流,问题解决。
当使用FFmpeg推送RTMP流时,可能会出现”Cannot read RTMP handshake response”的错误。这通常是由于防火墙或代理服务器等网络问题导致的。 以下是一些可能解决此错误的步骤: 确保RTMP服务器地址正确并且可以连接。尝试使用ping命令测试服务器是否可达。 禁用防火墙或添加例外规则以允许RTMP流传输。请注意,不同操作系统和防...
av_log(LOG_CONTEXT, AV_LOG_ERROR, "Cannot read RTMP handshake response\n"); return -1; } i = url_read_complete(rt->stream, clientdata, RTMP_HANDSHAKE_PACKET_SIZE); i = ffurl_read_complete(rt->stream, clientdata, RTMP_HANDSHAKE_PACKET_SIZE); if (i != RTMP_HANDSHAKE_PACKET_SIZE)...
= 4) { av_log(NULL, AV_LOG_ERROR, "Reading command packet length failed: %d (%s)\n", read_result, read_result < 0 ? strerror(AVUNERROR(read_result)) : "The server closed the connection"); return read_result < 0 ? read_result : AVERROR(EIO); } length_remaining= AV_RL32...
srs_success) {//连接成功,响应客户端 return srs_error_wrap(err, "rtmp: response connect ...
在推流命令ffmpeg后面加上 -v debug参数 ,可以看到Cannot read RTMP handshake response,在RTMP握手过程出现了问题,导致连接被重置 那么就只可能是网络问题,很有可能是现场配置了网络策略,导致握手无法完成 打电话与现场网络工程师沟通确认配置了新的网络策略,开放白名单,再次测试可以正常推流,问题解决。
if ((ret = ffurl_handshake(cl)) > 0) return 2 + ret; if (ret < 0) return ret; ch->handshake_step = READ_HEADERS; ch->is_connected_server = 1; return 2; case READ_HEADERS: av_log(c, AV_LOG_TRACE, "Read headers\n"); ...
We read every piece of feedback, and take your input very seriously. Include my email address so I can be contacted Cancel Submit feedback Saved searches Use saved searches to filter your results more quickly Cancel Create saved search Sign in Sign up Reseting focus {...
if ((ret = ffurl_handshake(cl)) > 0) return 2 + ret; if (ret < 0) return ret; ch->handshake_step = READ_HEADERS; ch->is_connected_server = 1; return 2; case READ_HEADERS: av_log(c, AV_LOG_TRACE, "Read headers\n"); ...
We read every piece of feedback, and take your input very seriously. Include my email address so I can be contacted Cancel Submit feedback Saved searches Use saved searches to filter your results more quickly Cancel Create saved search Sign in Sign up Reseting focus {...