deepch / RTSPtoWSMP4f

RTSP Stream to WebBrowser MSE over WebSocket based MP4f segments
231 stars 64 forks source link

Installation instructions outdated #18

Closed IlyaSemenov closed 3 years ago

IlyaSemenov commented 3 years ago

Installation instructions are outdated:

~/tmp/r
❯ go get github.com/deepch/RTSPtoWSMP4f

go: downloading github.com/deepch/RTSPtoWSMP4f v0.0.0-20210209015721-314189c0c54c
go: downloading github.com/gin-gonic/gin v1.6.3
go: downloading github.com/deepch/vdk v0.0.0-20210209013919-981746cd6aa0
go: downloading golang.org/x/net v0.0.0-20210119194325-5f4716e94777
go: downloading github.com/mattn/go-isatty v0.0.12
go: downloading github.com/gin-contrib/sse v0.1.0
go: downloading github.com/json-iterator/go v1.1.10
go: downloading github.com/golang/protobuf v1.4.3
go: downloading github.com/ugorji/go v1.2.4
go: downloading gopkg.in/yaml.v2 v2.4.0
go: downloading github.com/go-playground/validator/v10 v10.4.1
go: downloading github.com/ugorji/go/codec v1.2.4
go: downloading golang.org/x/sys v0.0.0-20210124154548-22da62e12c0c
go: downloading google.golang.org/protobuf v1.25.0
go: downloading github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd
go: downloading github.com/modern-go/reflect2 v1.0.1
go: downloading github.com/go-playground/universal-translator v0.17.0
go: downloading github.com/leodido/go-urn v1.2.1
go: downloading golang.org/x/crypto v0.0.0-20201221181555-eec23a3978ad
go: downloading github.com/go-playground/locales v0.13.0

~/tmp/r 53s
❯ cd src/github.com/deepch/RTSPtoWSMP4f

cd: no such file or directory: src/github.com/deepch/RTSPtoWSMP4f

~/tmp/r
❯ ls -l

~/tmp/r

The files went to ~/go but there is no src either:

❯ ls -l ~/go
total 0
drwxr-xr-x  3 semenov  staff   96 Mar  8 12:49 bin
drwxr-xr-x  4 semenov  staff  128 Mar  8 12:48 pkg

This is go 1.16:

❯ go version
go version go1.16 darwin/arm64
IlyaSemenov commented 3 years ago

Apparently one should just clone and run go build.

deepch commented 3 years ago

I will update the documentation soon.

go get download to GOPATH try

cd $GOPATH
cd src/github.com/deepch/RTSPtoWSMP4f
...

Вы можете писать по русский.

deepch commented 3 years ago

Download source (ignore error)

$ GO111MODULE=off go get github.com/deepch/RTSPtoWSMP4f

Enable go module

$ export GO111MODULE=on

CD to Directory

$ cd $GOPATH/src/github.com/deepch/RTSPtoWSMP4f/

Test Run

$ go run *.go

deepch commented 3 years ago

обновил спасибо.