added go.mod files

This commit is contained in:
amit b 2019-06-16 03:36:31 +03:00
parent dac89e5b7b
commit f65a10f289
6 changed files with 18 additions and 11 deletions

View File

@ -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() {

View File

@ -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)

View File

@ -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 {

View File

@ -7,8 +7,8 @@ import (
"math"
"net"
"time"
vnc "vnc2video"
"vnc2video/logger"
vnc "github.com/amitbet/vnc2video"
"github.com/amitbet/vnc2video/logger"
)
func main() {

5
go.mod Normal file
View File

@ -0,0 +1,5 @@
module github.com/amitbet/vnc2video
go 1.12
require github.com/icza/mjpeg v0.0.0-20170217094447-85dfbe473743

2
go.sum Normal file
View File

@ -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=