hw: add draft rockchip-mpp hw video encoding
This commit is contained in:
1 parent
c5f77df6b0
commit
fc2273d40b
9 files changed
+429
-32
No files matched your search
@@ -5,7 +5,6 @@ import (
|
||||
"rkkvm/external/ffmpeg"
|
||||
"rkkvm/http/middleware"
|
||||
"rkkvm/http/reqrsp"
|
||||
"time"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
log "github.com/sirupsen/logrus"
|
||||
@@ -71,14 +70,14 @@ func SetScreen(c *gin.Context) {
|
||||
})
|
||||
return
|
||||
}
|
||||
|
||||
log.Debug("Stopping ffmpeg SetScreen")
|
||||
ffmpeg.Stop()
|
||||
time.Sleep(100 * time.Millisecond)
|
||||
ffmpeg.ApplyOptions()
|
||||
log.Debug("Starting ffmpeg SetScreen")
|
||||
ffmpeg.Start()
|
||||
|
||||
/*
|
||||
log.Debug("Stopping ffmpeg SetScreen")
|
||||
ffmpeg.Stop()
|
||||
time.Sleep(100 * time.Millisecond)
|
||||
ffmpeg.ApplyOptions()
|
||||
log.Debug("Starting ffmpeg SetScreen")
|
||||
ffmpeg.Start()
|
||||
*/
|
||||
log.Debugf("update screen: %+v", req)
|
||||
c.JSON(http.StatusOK, reqrsp.NanoKVMRsp{
|
||||
Msg: reqrsp.MsgSuccess,
|
||||
|
||||
Reference in new issue
Block a user