GitHub is where people build software. More than 150 million people use GitHub to discover, fork, and contribute to over 420 million projects.
go get github.com/datarhei/gosrt Caller example import "github.com/datarhei/gosrt" conn, err := srt.Dial("srt", "golang.org:6000", srt.Config{ StreamId: "...", }) if err != nil { // handle error } buffer := make([]byte, 2048) for { n, err := conn.Read(buffer) if...
SRT使用 selective retransmit的方式处理数据包丢失,另外了基于标准加密原语(standard primitives)(而不是DTLS)构建了其独特的 “unique”加密系统, SRT Data Payload支持可分片的有效负载(payload)。在实践中,我仅仅看过它与MPEG transport stream一起使用。整个传输流引入SRT包,每个传输流包都有自己的同步字节和传输流...
SRT协议根据UDT协议(UDP-based Data Transfer Protocol)改进而来,已经在2020年3月10日向IETF提交了RFC草案,这也表示SRT协议进入了比较稳定的发展轨道。 众所周知,SRT的传统优势领域是点对点的实时音视频传输,而近两年,SRT协议在上行推流方面有了迅速的发展,很多主流平台和公司都支持使用SRT协议来代替RTMP协议进行上行推...
.github/workflows Update go.yml 4年前 app 1. 修复小语种识别速度慢或失败的问题 3年前 data/img 发布0.3.0 版本 5年前 .gitignore 发布0.2.8 版本 5年前 LICENSE 发布0.2.8 版本 5年前 README.md Update RE 3年前 go.mod 发布Videosrt-0.3.2 版本 ...
.github [tests] Check IPv6 connection and socket address (#1670) 4年前 apps [apps] Replace functions in UDT namespace by functions in srt namespace 4年前 common [core] Removed deprecated features from SRT C API (#1364) 5年前 docs ...
总的来说,SRT协议中包含两类数据包:信息数据包(Data Packet)和控制数据包(Control Packet),他们通过SRT首部的最高位(标志位)来区分,0代表信息数据包,1代表控制数据包。控制数据包又包含了握手(Handshake)、肯定应答(ACK)、否定应答(NAK)、对肯定应答的应答(ACKACK),保持连接(Keepalive)、关闭连接(Shutdown)等多...
国际站点:https://github.com/feiyangqingyun 四、功能特点 4.1. 基础功能 支持各种音频视频文件格式,比如mp3、wav、mp4、asf、rm、rmvb、mkv等。 支持本地摄像头设备和本地桌面采集,支持多设备和多屏幕。 支持各种视频流格式,比如rtp、rtsp、rtmp、http、udp等。
srs_error_t SrsSrtPoller::wait(int timeout_ms,int*pn_fds){int ret=srt_epoll_uwait(srt_epoller_fd_,events_.data(),events_.size());for(int i=0;i<ret;++i){if(event.events&SRT_EPOLL_IN){srt_skt->notify_readable();}}}voidSrsSrtSocket::notify_readable(){srs_cond_signal(read_co...
Custom log data设置: Upon connect:在连接时打印的信息,这里设置为年月日_时:分:秒,[%Y%M%D_%h:%m:%s] On each line:在每行LOG添加打印信息,这里设置为时:分:秒[%h:%m:%s] 效果见下图: 设置完毕,单击OK按钮,选择右边的"Change ALL sessions(no undo)",设置成功!