diff --git a/example/client/main.go b/example/client/main.go index d22b698..8a94a80 100644 --- a/example/client/main.go +++ b/example/client/main.go @@ -11,8 +11,8 @@ import ( "syscall" "time" vnc "vnc2video" - "vnc2video/encoders" - "vnc2video/logger" + "github.com/amitbet/vnc2video/encoders" + "github.com/amitbet/vnc2video/logger" ) func main() { diff --git a/example/file-reader/main.go b/example/file-reader/main.go index 1f8a910..9a3e574 100644 --- a/example/file-reader/main.go +++ b/example/file-reader/main.go @@ -4,14 +4,14 @@ import ( "os" "path/filepath" "time" - vnc "vnc2video" - "vnc2video/encoders" - "vnc2video/logger" + vnc "github.com/amitbet/vnc2video" + "github.com/amitbet/vnc2video/encoders" + "github.com/amitbet/vnc2video/logger" ) func main() { framerate := 10 - speedupFactor := 3.6 + speedupFactor := 3.0 fastFramerate := int(float64(framerate) * speedupFactor) if len(os.Args) <= 1 { @@ -59,7 +59,7 @@ func main() { } go func() { - frameMillis := (1000.0 / float64(fastFramerate)) - 2 //a couple of millis, adjusting for time lost in software commands + frameMillis := (1000.0 / float64(fastFramerate)) - 1 //a couple of millis, adjusting for time lost in software commands frameDuration := time.Duration(frameMillis * float64(time.Millisecond)) //logger.Error("milis= ", frameMillis) diff --git a/example/proxy/main.go b/example/proxy/main.go index 755d1b6..e920deb 100644 --- a/example/proxy/main.go +++ b/example/proxy/main.go @@ -13,8 +13,8 @@ import ( "strings" "sync" "time" - vnc "vnc2video" - "vnc2video/logger" + vnc "github.com/amitbet/vnc2video" + "github.com/amitbet/vnc2video/logger" ) type Auth struct { diff --git a/example/server/main.go b/example/server/main.go index c47c9ac..0f69958 100644 --- a/example/server/main.go +++ b/example/server/main.go @@ -7,8 +7,8 @@ import ( "math" "net" "time" - vnc "vnc2video" - "vnc2video/logger" + vnc "github.com/amitbet/vnc2video" + "github.com/amitbet/vnc2video/logger" ) func main() { diff --git a/go.mod b/go.mod new file mode 100644 index 0000000..18f271a --- /dev/null +++ b/go.mod @@ -0,0 +1,5 @@ +module github.com/amitbet/vnc2video + +go 1.12 + +require github.com/icza/mjpeg v0.0.0-20170217094447-85dfbe473743 diff --git a/go.sum b/go.sum new file mode 100644 index 0000000..1527893 --- /dev/null +++ b/go.sum @@ -0,0 +1,2 @@ +github.com/icza/mjpeg v0.0.0-20170217094447-85dfbe473743 h1:u5kZEGcjrCRAS99gyW/wptM3KjGYkVv80WKexNvxBuA= +github.com/icza/mjpeg v0.0.0-20170217094447-85dfbe473743/go.mod h1:Eja3x31oRrEOzl6ihhsxY23gXaTYWLP3Gwj5nMAJ7m0=