Add support pipe to exec source

This commit is contained in:
Alexey Khit
2023-05-03 07:49:10 +03:00
parent 2e8be342ef
commit e78f9fa69d
6 changed files with 277 additions and 17 deletions
+7
View File
@@ -6,8 +6,15 @@ import (
"runtime"
"strconv"
"strings"
"time"
)
// Now90000 - timestamp for Video (clock rate = 90000 samples per second)
// same as: uint32(time.Duration(time.Now().UnixNano()) * 90000 / time.Second)
func Now90000() uint32 {
return uint32(time.Duration(time.Now().UnixMilli()) * 90)
}
const symbols = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ-_"
// RandString base10 - numbers, base16 - hex, base36 - digits+letters, base64 - URL safe symbols