RtspServer
RtspServer copied to clipboard
RTSP Server , RTSP Pusher
file:example/rtsp_h264_file.cpp: line 75: s/snedFrameThread/sendFrameThread
I used [example/rtsp_h264_file.cpp](https://github.com/PHZ76/RtspServer/tree/master/example/rtsp_h264_file.cpp) as an example, but I want the server to start sending data to connected clients with GOP (including SPS, PPS and I-FRAME). How can I do that?...
想必对流媒体应该是了如指掌
使用rtsp_h264_file推一个H264文件,在局域网内用ffplay指定udp传输数据播放。 在网络环境较好的情况下,进程内存占用在4MB左右,偶尔丢包导致马赛克,画面延时基本在1秒左右; 在网络环境不太好的情况下,存在大量丢包,ffplay会经常输出日志: RTP missed 2 packets ,画面马赛克严重.;进程长时间运行后,视频画面(对着时钟计数器)累积延时可以达到1分钟甚至更长(4分半钟),此时进程内存占用增长至40MB甚至更高(最高86MB)。 问题大概出在对trigger_events_的操作: ``` bool TaskScheduler::AddTriggerEvent(TriggerEvent callback) { if (trigger_events_->Size() < kMaxTriggetEvents) { std::lock_guard lock(mutex_); char event = kTriggetEvent; trigger_events_->Push(std::move(callback)); wakeup_pipe_->Write(&event, 1); return true;...
example里只有的H264File的ReadFrame,求AAC的和mp4的
我使用wireshark抓包,发现AAC那些包虽然能成功发出,但是playload那里显示的是dynamic,然后我看了看源码,发现media.h中MediaType枚举中AAC是37,那为什么AACSource.cpp那里的playload是97?我看其他的像G711ASource.cpp等都是一致的,这是为什么?希望作者解疑
Multicast h264 stream does not work properly. There is no stream sometimes. Also in unicast, if client requests udp, again it works sometimes. There is an issue for sending udp...
链接两个以上的client之后,拔掉其中一个的网线,另外的几个都会受到影响,画面会卡顿,经过分析,发现是epoll和select都无法响应tcp keepalive,导致无法正常remove掉已经断开连接的client,整个server从逻辑上就出现了问题