├── .gitignore ├── LICENSE ├── README.md ├── doc ├── Readme_cn.md └── mytarget.md └── src ├── main ├── main.go └── pid.go ├── research ├── json.go ├── map_len │ └── map_len.go ├── panic │ └── panic.go └── pathext │ └── main.go ├── test ├── pull │ └── play.go └── push │ └── push.go └── vendor └── sheepbao.com ├── glog ├── glog.go └── glog_file.go └── media ├── av ├── av.go └── rwbase.go ├── container ├── flv │ ├── demuxer.go │ ├── dvr.go │ └── tag.go ├── mp4 │ └── muxer.go └── ts │ ├── crc32.go │ ├── muxer.go │ └── muxer_test.go ├── parser ├── aac │ └── parser.go ├── h264 │ ├── parser.go │ └── parser_test.go ├── mp3 │ └── parser.go └── parser.go ├── protocol ├── amf │ ├── amf.go │ ├── amf_test.go │ ├── const.go │ ├── decoder_amf0.go │ ├── decoder_amf0_test.go │ ├── decoder_amf3.go │ ├── decoder_amf3_external.go │ ├── decoder_amf3_test.go │ ├── encoder_amf0.go │ ├── encoder_amf0_test.go │ ├── encoder_amf3.go │ ├── encoder_amf3_test.go │ ├── metadata.go │ └── util.go ├── dash │ └── dash.go ├── hls │ ├── align.go │ ├── audio_cache.go │ ├── hls.go │ ├── status.go │ └── ts_cache.go ├── httpflv │ └── http_flv.go ├── httpopera │ └── http_opera.go ├── kcpts │ └── kcp_ts.go ├── private │ └── protocol.go ├── rtmp │ ├── cache │ │ ├── cache.go │ │ ├── gop.go │ │ └── special.go │ ├── core │ │ ├── chunk_stream.go │ │ ├── chunk_stream_test.go │ │ ├── conn.go │ │ ├── conn_client.go │ │ ├── conn_server.go │ │ ├── conn_test.go │ │ ├── handshake.go │ │ ├── read_writer.go │ │ └── read_writer_test.go │ ├── rtmp.go │ └── stream.go ├── rtp │ └── rtp.go ├── rtsp │ ├── protocol.go │ └── rtsp.go └── webrtc │ └── webrtc.go └── utils ├── cmap └── cmap.go ├── pio ├── pio.go ├── reader.go └── writer.go ├── pool └── pool.go ├── queue └── queue.go └── uid └── uuid.go /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zboya/sms/HEAD/.gitignore -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zboya/sms/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zboya/sms/HEAD/README.md -------------------------------------------------------------------------------- /doc/Readme_cn.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zboya/sms/HEAD/doc/Readme_cn.md -------------------------------------------------------------------------------- /doc/mytarget.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zboya/sms/HEAD/doc/mytarget.md -------------------------------------------------------------------------------- /src/main/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zboya/sms/HEAD/src/main/main.go -------------------------------------------------------------------------------- /src/main/pid.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zboya/sms/HEAD/src/main/pid.go -------------------------------------------------------------------------------- /src/research/json.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zboya/sms/HEAD/src/research/json.go -------------------------------------------------------------------------------- /src/research/map_len/map_len.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zboya/sms/HEAD/src/research/map_len/map_len.go -------------------------------------------------------------------------------- /src/research/panic/panic.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zboya/sms/HEAD/src/research/panic/panic.go -------------------------------------------------------------------------------- /src/research/pathext/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zboya/sms/HEAD/src/research/pathext/main.go -------------------------------------------------------------------------------- /src/test/pull/play.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zboya/sms/HEAD/src/test/pull/play.go -------------------------------------------------------------------------------- /src/test/push/push.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zboya/sms/HEAD/src/test/push/push.go -------------------------------------------------------------------------------- /src/vendor/sheepbao.com/glog/glog.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zboya/sms/HEAD/src/vendor/sheepbao.com/glog/glog.go -------------------------------------------------------------------------------- /src/vendor/sheepbao.com/glog/glog_file.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zboya/sms/HEAD/src/vendor/sheepbao.com/glog/glog_file.go -------------------------------------------------------------------------------- /src/vendor/sheepbao.com/media/av/av.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zboya/sms/HEAD/src/vendor/sheepbao.com/media/av/av.go -------------------------------------------------------------------------------- /src/vendor/sheepbao.com/media/av/rwbase.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zboya/sms/HEAD/src/vendor/sheepbao.com/media/av/rwbase.go -------------------------------------------------------------------------------- /src/vendor/sheepbao.com/media/container/flv/demuxer.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zboya/sms/HEAD/src/vendor/sheepbao.com/media/container/flv/demuxer.go -------------------------------------------------------------------------------- /src/vendor/sheepbao.com/media/container/flv/dvr.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zboya/sms/HEAD/src/vendor/sheepbao.com/media/container/flv/dvr.go -------------------------------------------------------------------------------- /src/vendor/sheepbao.com/media/container/flv/tag.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zboya/sms/HEAD/src/vendor/sheepbao.com/media/container/flv/tag.go -------------------------------------------------------------------------------- /src/vendor/sheepbao.com/media/container/mp4/muxer.go: -------------------------------------------------------------------------------- 1 | package mp4 2 | -------------------------------------------------------------------------------- /src/vendor/sheepbao.com/media/container/ts/crc32.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zboya/sms/HEAD/src/vendor/sheepbao.com/media/container/ts/crc32.go -------------------------------------------------------------------------------- /src/vendor/sheepbao.com/media/container/ts/muxer.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zboya/sms/HEAD/src/vendor/sheepbao.com/media/container/ts/muxer.go -------------------------------------------------------------------------------- /src/vendor/sheepbao.com/media/container/ts/muxer_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zboya/sms/HEAD/src/vendor/sheepbao.com/media/container/ts/muxer_test.go -------------------------------------------------------------------------------- /src/vendor/sheepbao.com/media/parser/aac/parser.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zboya/sms/HEAD/src/vendor/sheepbao.com/media/parser/aac/parser.go -------------------------------------------------------------------------------- /src/vendor/sheepbao.com/media/parser/h264/parser.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zboya/sms/HEAD/src/vendor/sheepbao.com/media/parser/h264/parser.go -------------------------------------------------------------------------------- /src/vendor/sheepbao.com/media/parser/h264/parser_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zboya/sms/HEAD/src/vendor/sheepbao.com/media/parser/h264/parser_test.go -------------------------------------------------------------------------------- /src/vendor/sheepbao.com/media/parser/mp3/parser.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zboya/sms/HEAD/src/vendor/sheepbao.com/media/parser/mp3/parser.go -------------------------------------------------------------------------------- /src/vendor/sheepbao.com/media/parser/parser.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zboya/sms/HEAD/src/vendor/sheepbao.com/media/parser/parser.go -------------------------------------------------------------------------------- /src/vendor/sheepbao.com/media/protocol/amf/amf.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zboya/sms/HEAD/src/vendor/sheepbao.com/media/protocol/amf/amf.go -------------------------------------------------------------------------------- /src/vendor/sheepbao.com/media/protocol/amf/amf_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zboya/sms/HEAD/src/vendor/sheepbao.com/media/protocol/amf/amf_test.go -------------------------------------------------------------------------------- /src/vendor/sheepbao.com/media/protocol/amf/const.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zboya/sms/HEAD/src/vendor/sheepbao.com/media/protocol/amf/const.go -------------------------------------------------------------------------------- /src/vendor/sheepbao.com/media/protocol/amf/decoder_amf0.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zboya/sms/HEAD/src/vendor/sheepbao.com/media/protocol/amf/decoder_amf0.go -------------------------------------------------------------------------------- /src/vendor/sheepbao.com/media/protocol/amf/decoder_amf0_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zboya/sms/HEAD/src/vendor/sheepbao.com/media/protocol/amf/decoder_amf0_test.go -------------------------------------------------------------------------------- /src/vendor/sheepbao.com/media/protocol/amf/decoder_amf3.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zboya/sms/HEAD/src/vendor/sheepbao.com/media/protocol/amf/decoder_amf3.go -------------------------------------------------------------------------------- /src/vendor/sheepbao.com/media/protocol/amf/decoder_amf3_external.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zboya/sms/HEAD/src/vendor/sheepbao.com/media/protocol/amf/decoder_amf3_external.go -------------------------------------------------------------------------------- /src/vendor/sheepbao.com/media/protocol/amf/decoder_amf3_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zboya/sms/HEAD/src/vendor/sheepbao.com/media/protocol/amf/decoder_amf3_test.go -------------------------------------------------------------------------------- /src/vendor/sheepbao.com/media/protocol/amf/encoder_amf0.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zboya/sms/HEAD/src/vendor/sheepbao.com/media/protocol/amf/encoder_amf0.go -------------------------------------------------------------------------------- /src/vendor/sheepbao.com/media/protocol/amf/encoder_amf0_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zboya/sms/HEAD/src/vendor/sheepbao.com/media/protocol/amf/encoder_amf0_test.go -------------------------------------------------------------------------------- /src/vendor/sheepbao.com/media/protocol/amf/encoder_amf3.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zboya/sms/HEAD/src/vendor/sheepbao.com/media/protocol/amf/encoder_amf3.go -------------------------------------------------------------------------------- /src/vendor/sheepbao.com/media/protocol/amf/encoder_amf3_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zboya/sms/HEAD/src/vendor/sheepbao.com/media/protocol/amf/encoder_amf3_test.go -------------------------------------------------------------------------------- /src/vendor/sheepbao.com/media/protocol/amf/metadata.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zboya/sms/HEAD/src/vendor/sheepbao.com/media/protocol/amf/metadata.go -------------------------------------------------------------------------------- /src/vendor/sheepbao.com/media/protocol/amf/util.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zboya/sms/HEAD/src/vendor/sheepbao.com/media/protocol/amf/util.go -------------------------------------------------------------------------------- /src/vendor/sheepbao.com/media/protocol/dash/dash.go: -------------------------------------------------------------------------------- 1 | package dash 2 | -------------------------------------------------------------------------------- /src/vendor/sheepbao.com/media/protocol/hls/align.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zboya/sms/HEAD/src/vendor/sheepbao.com/media/protocol/hls/align.go -------------------------------------------------------------------------------- /src/vendor/sheepbao.com/media/protocol/hls/audio_cache.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zboya/sms/HEAD/src/vendor/sheepbao.com/media/protocol/hls/audio_cache.go -------------------------------------------------------------------------------- /src/vendor/sheepbao.com/media/protocol/hls/hls.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zboya/sms/HEAD/src/vendor/sheepbao.com/media/protocol/hls/hls.go -------------------------------------------------------------------------------- /src/vendor/sheepbao.com/media/protocol/hls/status.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zboya/sms/HEAD/src/vendor/sheepbao.com/media/protocol/hls/status.go -------------------------------------------------------------------------------- /src/vendor/sheepbao.com/media/protocol/hls/ts_cache.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zboya/sms/HEAD/src/vendor/sheepbao.com/media/protocol/hls/ts_cache.go -------------------------------------------------------------------------------- /src/vendor/sheepbao.com/media/protocol/httpflv/http_flv.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zboya/sms/HEAD/src/vendor/sheepbao.com/media/protocol/httpflv/http_flv.go -------------------------------------------------------------------------------- /src/vendor/sheepbao.com/media/protocol/httpopera/http_opera.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zboya/sms/HEAD/src/vendor/sheepbao.com/media/protocol/httpopera/http_opera.go -------------------------------------------------------------------------------- /src/vendor/sheepbao.com/media/protocol/kcpts/kcp_ts.go: -------------------------------------------------------------------------------- 1 | package kcpts 2 | -------------------------------------------------------------------------------- /src/vendor/sheepbao.com/media/protocol/private/protocol.go: -------------------------------------------------------------------------------- 1 | package private 2 | -------------------------------------------------------------------------------- /src/vendor/sheepbao.com/media/protocol/rtmp/cache/cache.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zboya/sms/HEAD/src/vendor/sheepbao.com/media/protocol/rtmp/cache/cache.go -------------------------------------------------------------------------------- /src/vendor/sheepbao.com/media/protocol/rtmp/cache/gop.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zboya/sms/HEAD/src/vendor/sheepbao.com/media/protocol/rtmp/cache/gop.go -------------------------------------------------------------------------------- /src/vendor/sheepbao.com/media/protocol/rtmp/cache/special.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zboya/sms/HEAD/src/vendor/sheepbao.com/media/protocol/rtmp/cache/special.go -------------------------------------------------------------------------------- /src/vendor/sheepbao.com/media/protocol/rtmp/core/chunk_stream.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zboya/sms/HEAD/src/vendor/sheepbao.com/media/protocol/rtmp/core/chunk_stream.go -------------------------------------------------------------------------------- /src/vendor/sheepbao.com/media/protocol/rtmp/core/chunk_stream_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zboya/sms/HEAD/src/vendor/sheepbao.com/media/protocol/rtmp/core/chunk_stream_test.go -------------------------------------------------------------------------------- /src/vendor/sheepbao.com/media/protocol/rtmp/core/conn.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zboya/sms/HEAD/src/vendor/sheepbao.com/media/protocol/rtmp/core/conn.go -------------------------------------------------------------------------------- /src/vendor/sheepbao.com/media/protocol/rtmp/core/conn_client.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zboya/sms/HEAD/src/vendor/sheepbao.com/media/protocol/rtmp/core/conn_client.go -------------------------------------------------------------------------------- /src/vendor/sheepbao.com/media/protocol/rtmp/core/conn_server.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zboya/sms/HEAD/src/vendor/sheepbao.com/media/protocol/rtmp/core/conn_server.go -------------------------------------------------------------------------------- /src/vendor/sheepbao.com/media/protocol/rtmp/core/conn_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zboya/sms/HEAD/src/vendor/sheepbao.com/media/protocol/rtmp/core/conn_test.go -------------------------------------------------------------------------------- /src/vendor/sheepbao.com/media/protocol/rtmp/core/handshake.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zboya/sms/HEAD/src/vendor/sheepbao.com/media/protocol/rtmp/core/handshake.go -------------------------------------------------------------------------------- /src/vendor/sheepbao.com/media/protocol/rtmp/core/read_writer.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zboya/sms/HEAD/src/vendor/sheepbao.com/media/protocol/rtmp/core/read_writer.go -------------------------------------------------------------------------------- /src/vendor/sheepbao.com/media/protocol/rtmp/core/read_writer_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zboya/sms/HEAD/src/vendor/sheepbao.com/media/protocol/rtmp/core/read_writer_test.go -------------------------------------------------------------------------------- /src/vendor/sheepbao.com/media/protocol/rtmp/rtmp.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zboya/sms/HEAD/src/vendor/sheepbao.com/media/protocol/rtmp/rtmp.go -------------------------------------------------------------------------------- /src/vendor/sheepbao.com/media/protocol/rtmp/stream.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zboya/sms/HEAD/src/vendor/sheepbao.com/media/protocol/rtmp/stream.go -------------------------------------------------------------------------------- /src/vendor/sheepbao.com/media/protocol/rtp/rtp.go: -------------------------------------------------------------------------------- 1 | package rtp 2 | -------------------------------------------------------------------------------- /src/vendor/sheepbao.com/media/protocol/rtsp/protocol.go: -------------------------------------------------------------------------------- 1 | package rtsp 2 | -------------------------------------------------------------------------------- /src/vendor/sheepbao.com/media/protocol/rtsp/rtsp.go: -------------------------------------------------------------------------------- 1 | package rtsp 2 | -------------------------------------------------------------------------------- /src/vendor/sheepbao.com/media/protocol/webrtc/webrtc.go: -------------------------------------------------------------------------------- 1 | package webrtc 2 | -------------------------------------------------------------------------------- /src/vendor/sheepbao.com/media/utils/cmap/cmap.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zboya/sms/HEAD/src/vendor/sheepbao.com/media/utils/cmap/cmap.go -------------------------------------------------------------------------------- /src/vendor/sheepbao.com/media/utils/pio/pio.go: -------------------------------------------------------------------------------- 1 | package pio 2 | 3 | var RecommendBufioSize = 1024 * 64 4 | -------------------------------------------------------------------------------- /src/vendor/sheepbao.com/media/utils/pio/reader.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zboya/sms/HEAD/src/vendor/sheepbao.com/media/utils/pio/reader.go -------------------------------------------------------------------------------- /src/vendor/sheepbao.com/media/utils/pio/writer.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zboya/sms/HEAD/src/vendor/sheepbao.com/media/utils/pio/writer.go -------------------------------------------------------------------------------- /src/vendor/sheepbao.com/media/utils/pool/pool.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zboya/sms/HEAD/src/vendor/sheepbao.com/media/utils/pool/pool.go -------------------------------------------------------------------------------- /src/vendor/sheepbao.com/media/utils/queue/queue.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zboya/sms/HEAD/src/vendor/sheepbao.com/media/utils/queue/queue.go -------------------------------------------------------------------------------- /src/vendor/sheepbao.com/media/utils/uid/uuid.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zboya/sms/HEAD/src/vendor/sheepbao.com/media/utils/uid/uuid.go --------------------------------------------------------------------------------