hw: add draft rockchip-mpp hw video encoding
This commit is contained in:
@@ -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