hw: add draft rockchip-mpp hw video encoding

This commit is contained in:
Artem
2024-11-19 22:08:12 +01:00
parent c5f77df6b0
commit fc2273d40b
9 changed files with 429 additions and 32 deletions

View File

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