mirror of
https://github.com/amitbet/vnc2video.git
synced 2025-08-11 17:31:50 +00:00
added go.mod files
This commit is contained in:
parent
dac89e5b7b
commit
f65a10f289
@ -11,8 +11,8 @@ import (
|
|||||||
"syscall"
|
"syscall"
|
||||||
"time"
|
"time"
|
||||||
vnc "vnc2video"
|
vnc "vnc2video"
|
||||||
"vnc2video/encoders"
|
"github.com/amitbet/vnc2video/encoders"
|
||||||
"vnc2video/logger"
|
"github.com/amitbet/vnc2video/logger"
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
@ -4,14 +4,14 @@ import (
|
|||||||
"os"
|
"os"
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
"time"
|
"time"
|
||||||
vnc "vnc2video"
|
vnc "github.com/amitbet/vnc2video"
|
||||||
"vnc2video/encoders"
|
"github.com/amitbet/vnc2video/encoders"
|
||||||
"vnc2video/logger"
|
"github.com/amitbet/vnc2video/logger"
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
framerate := 10
|
framerate := 10
|
||||||
speedupFactor := 3.6
|
speedupFactor := 3.0
|
||||||
fastFramerate := int(float64(framerate) * speedupFactor)
|
fastFramerate := int(float64(framerate) * speedupFactor)
|
||||||
|
|
||||||
if len(os.Args) <= 1 {
|
if len(os.Args) <= 1 {
|
||||||
@ -59,7 +59,7 @@ func main() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
go func() {
|
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))
|
frameDuration := time.Duration(frameMillis * float64(time.Millisecond))
|
||||||
//logger.Error("milis= ", frameMillis)
|
//logger.Error("milis= ", frameMillis)
|
||||||
|
|
||||||
|
@ -13,8 +13,8 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
"sync"
|
"sync"
|
||||||
"time"
|
"time"
|
||||||
vnc "vnc2video"
|
vnc "github.com/amitbet/vnc2video"
|
||||||
"vnc2video/logger"
|
"github.com/amitbet/vnc2video/logger"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Auth struct {
|
type Auth struct {
|
||||||
|
@ -7,8 +7,8 @@ import (
|
|||||||
"math"
|
"math"
|
||||||
"net"
|
"net"
|
||||||
"time"
|
"time"
|
||||||
vnc "vnc2video"
|
vnc "github.com/amitbet/vnc2video"
|
||||||
"vnc2video/logger"
|
"github.com/amitbet/vnc2video/logger"
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
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