RtspServer
RtspServer copied to clipboard
RTSP Server , RTSP Pusher
能否支持G711A 采样率为16K
reason because memcpy(tmp_pkt.data.get(), pkt.data.get(), pkt.size); -> need time and make slow sendto better be no copy, just copy data pointer //in MediaSession::AddSource tmp_pkt.data = pkt.data; memcpy(tmp_pkt.data.get(), pkt.data.get(), pkt.size); tmp_pkt.size =...
in MediaSession::AddSource memcpy(tmp_pkt.data.get(), pkt.data.get(), pkt.size); until run to AddTriggerEvent is not use also lambda exit [this](MediaChannelId channel_id, RtpPacket pkt) { ... } memory still not release
I fixed h264 h265 Invalid NAL unit 0, skipping buf fixed 1. rtp.h //refer to live555 H264or5VideoRTPSink.cpp MultiFramedRTPSink.cpp //RTP hdr size is 12, ourMaxPacketSize()-12 = 1452 -12 #define MAX_RTP_PAYLOAD_SIZE 1420...
when aac file some packet is over than MAX_RTP_PAYLOAD_SIZE-AU_SIZE its need like H264Source H265Source piece by piece send
时间戳问题
uint32_t H264Source::GetTimestamp() { /* #if defined(__linux) || defined(__linux__) struct timeval tv = {0}; gettimeofday(&tv, NULL); uint32_t ts = ((tv.tv_sec*1000)+((tv.tv_usec+500)/1000))*90; // 90: _clockRate/1000; return ts; #else */ auto time_point = chrono::time_point_cast(chrono::steady_clock::now());...
when beginning send to receive need a SR packet for RTCP-synchronized presentation times immediately:
大牛这项目太牛了。在使用中遇到一个现象,写入H265包到session,发现用VLC 3.0.12可以播放,VLC 2.2.2也可以播放,用ffmpeg播放后台一直打印这样的错误信息, 不能看到画面。如果是播放H264视频,则ffmpeg, vlc均正常。请问大神,应该从那方面入手解决这个现象。 rtsp @ 000001ba01fa8a00] Illegal temporal ID in RTP/HEVC packet0 Last message repeated 15 times [rtsp @ 000001ba01fa8a00] Illegal temporal ID in RTP/HEVC packet0 Last message...
根据demo,我从监控平台上抓取了Hi profile 的h264文件,进行推流时解码失败。 解析了一下nal,发现该文件nal由00 00 01开头,client端收到的是00 00 00 01 00 00 01开头。 测试数据文件在这里https://github.com/DeanXi/testdata 有人遇到和我一样的问题么,rtp拼包那里没有发现问题。