WriteN, RTMP send error 104 (129 bytes) 更新: 我改1080p为720p 暂时没出现这个问题 我在读取视频时候还遇到这个报错 error while decoding xxx 经过一方百度, 是“FFMPEG Lib对在rtsp协议中的H264 vidos不支持”的问题, 解决方法: 程序开启两个线程, 一个线程读取摄像头的帧, 另一个线程处理这帧图片, 这...
RTMP_Log(RTMP_LOGERROR, "RTMP_SetBufferMS --->\n"); RTMP_SetBufferMS(&rtmp, 10000); //第四步 // RTMP推流需要EnableWrite RTMP_Log(RTMP_LOGERROR, "RTMP_EnableWrite --->\n"); RTMP_EnableWrite(&rtmp); RTMP_Log(RTMP_LOGERROR, "RTMP_Connect --->\n"); if (!RTMP_Connect(&rtmp,...
RTMP_SendSeek(r, timestamp)) return AVERROR_UNKNOWN; return timestamp; } static int rtmp_get_file_handle(URLContext *s) { LibRTMPContext *ctx = s->priv_data; RTMP *r = &ctx->rtmp; return RTMP_Socket(r); } #define OFFSET(x) offsetof(LibRTMPContext, x) #define DEC AV_...
}/*进行HandShake*/if(!HandShake(r,TRUE)){...}/*握手成功之后,发送Connect Packet*/if(!SendConnectPacket(r, cp)){...}returnTRUE; } 1 2 3 4 5 6 7 8 9
return NGX_ERROR; } *pctx = (*pctx)->next; ctx->joined = 0; return NGX_OK; } static void ngx_rtmp_play_send(ngx_event_t *e) { ngx_rtmp_session_t *s = e->data; ngx_rtmp_play_ctx_t *ctx; ngx_int_t rc; ...
virtual void dispose();public:virtual error_t read_c0c1(SimpleSocketStream* io);virtual error_t read_s0s1s2(SimpleSocketStream* io);virtual error_t read_c2(SimpleSocketStream* io);virtual error_t create_c0c1();virtual error_t create_s0s1s2(const char* c1 = NULL);virtual error_t ...
rtcp-fb:111 transport-cc\r\na=fmtp:111 minptime=10;useinbandfec=1\r\na=rtpmap:103 ISAC/16000\r\na=rtpmap:104 ISAC/32000\r\na=rtpmap:9 G722/8000\r\na=rtpmap:0 PCMU/8000\r\na=rtpmap:8 PCMA/8000\r\na=rtpmap:106 CN/32000\r\na=rtpmap:105 CN/16000\r\na=rtpmap:13 CN/...
104. 105. 106. 107. 108. 109. 110. 111. 然后,发送回调出来的数据: SendH264Packet(data+4, size-4, bKeyframe, nTimeStamp); 上面1,2,4这三个函数,是回调出来的,第三个bKeyframe可以自己算出来: int type = data[4]&0x1f; bool bKeyframe = (type == 0x05) ? true : false; ...
return ngx_rtmp_send_amf(s, &h, out_elts, sizeof(out_elts) / sizeof(out_elts[0])) == NGX_OK ?NGX_DONE : NGX_ERROR; } static ngx_int_t ngx_rtmp_cmd_close_stream_init(ngx_rtmp_session_t *s, ngx_rtmp_header_t *h, ...
RTMP_IsConnected(rtmp)) { RTMP_Log(RTMP_LOGERROR, "rtmp is not connect\n"); break; } if (!RTMP_SendPacket(rtmp, packet, 0)) { RTMP_Log(RTMP_LOGERROR, "Send Error\n"); break; } if (!ReadU32(&preTagsize, fp)) break; if (!PeekU8(&type, fp)) break; if (type == 0x09...