updating remote

This commit is contained in:
saxon.milton@gmail.com 2018-03-14 11:19:21 +10:30
parent 77ed186529
commit d718534f0f
21 changed files with 15 additions and 9 deletions

View File

@ -110,10 +110,14 @@ func (g *flvGenerator) GenHeader() {
func (g *flvGenerator) getNextTimestamp() (timestamp uint32) { func (g *flvGenerator) getNextTimestamp() (timestamp uint32) {
if g.firstTag { if g.firstTag {
g.startTime = time.Now() g.startTime = time.Now()
firstTage = false g.firstTag = false
timestamp = 0
return
} }
timestamp = g.currentTimestamp //timestamp = g.currentTimestamp
g.currentTimestamp += uint32(time.Now().sub(g.startTime).Seconds()*float64(1000)) //g.currentTimestamp += 40
timestamp = uint32(time.Now().Sub(g.startTime).Seconds()*float64(1000))
//fmt.Printf("timestamp: %v", timestamp)
return return
} }

View File

@ -461,7 +461,7 @@ func (r *revidInst) setupInputForRaspivid() error {
"-o", "-", "-o", "-",
"-n", "-n",
"-t", r.config.Timeout, "-t", r.config.Timeout,
"-b", "10000", "-b", "500000",
//"-qp", r.config.Quantization, //"-qp", r.config.Quantization,
"-w", r.config.Width, "-w", r.config.Width,
"-h", r.config.Height, "-h", r.config.Height,

View File

@ -188,7 +188,8 @@ func TestRaspividToRtmp(t *testing.T){
return return
} }
revidInst.Start() revidInst.Start()
time.Sleep(240*time.Second) time.Sleep(43200*time.Second)
revidInst.Stop() revidInst.Stop()
} }

View File

@ -26,9 +26,9 @@ LICENSE
*/ */
package rtmp package rtmp
// #cgo CFLAGS: -I/home/saxon/Desktop/AusOcean/av/rtmp/ // #cgo CFLAGS: -I/home/pi/go/src/bitbucket.org/AusOcean/av/rtmp/
// #cgo CFLAGS: -I/home/saxon/Desktop/AusOcean/av/rtmp/rtmp_c/librtmp // #cgo CFLAGS: -I/home/pi/go/src/bitbucket.org/ausocean/av/rtmp/rtmp_c/librtmp
// #cgo LDFLAGS: /home/saxon/Desktop/AusOcean/av/rtmp/rtmp_c/librtmp/librtmp.a // #cgo LDFLAGS: /home/pi/go/src/bitbucket.org/ausocean/av/rtmp/rtmp_c/librtmp/librtmp.a
// #cgo LDFLAGS: -lssl -lcrypto -lz // #cgo LDFLAGS: -lssl -lcrypto -lz
// #include <RTMPWrapper.h> // #include <RTMPWrapper.h>
import "C" import "C"

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -0,0 +1 @@
librtmp.so.1

BIN
rtmp/rtmp_c/librtmp/librtmp.so.1 Executable file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
rtmp/rtmp_c/rtmpdump Executable file

Binary file not shown.

BIN
rtmp/rtmp_c/rtmpdump.o Normal file

Binary file not shown.

BIN
rtmp/rtmp_c/rtmpgw Executable file

Binary file not shown.

BIN
rtmp/rtmp_c/rtmpgw.o Normal file

Binary file not shown.

BIN
rtmp/rtmp_c/rtmpsrv Executable file

Binary file not shown.

BIN
rtmp/rtmp_c/rtmpsrv.o Normal file

Binary file not shown.

BIN
rtmp/rtmp_c/rtmpsuck Executable file

Binary file not shown.

BIN
rtmp/rtmp_c/rtmpsuck.o Normal file

Binary file not shown.

BIN
rtmp/rtmp_c/thread.o Normal file

Binary file not shown.