mirror of
https://github.com/amitbet/vnc2video.git
synced 2025-04-27 10:20:53 +00:00
added go.mod files
This commit is contained in:
parent
dac89e5b7b
commit
f65a10f289
@ -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() {
|
||||
|
@ -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)
|
||||
|
||||
|
@ -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 {
|
||||
|
@ -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
5
go.mod
Normal file
@ -0,0 +1,5 @@
|
||||
module github.com/amitbet/vnc2video
|
||||
|
||||
go 1.12
|
||||
|
||||
require github.com/icza/mjpeg v0.0.0-20170217094447-85dfbe473743
|
Loading…
Reference in New Issue
Block a user