From 40f37df70cc8f3a0e0659d6ccd4c9878e74adc2a Mon Sep 17 00:00:00 2001 From: Ron Evans Date: Thu, 19 Apr 2018 08:32:29 +0200 Subject: [PATCH] tello: trying some additional ffmpeg flags for decode acceleration Signed-off-by: Ron Evans --- examples/tello_opencv.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/tello_opencv.go b/examples/tello_opencv.go index b6b2a0098..9b31bab7e 100644 --- a/examples/tello_opencv.go +++ b/examples/tello_opencv.go @@ -35,7 +35,7 @@ func main() { work := func() { ffmpeg := exec.Command("ffmpeg", "-i", "pipe:0", "-pix_fmt", "bgr24", "-vcodec", "rawvideo", - "-an", "-sn", "-f", "rawvideo", "pipe:1") + "-an", "-sn", "-r", "25", "-s", "960x720", "-f", "rawvideo", "pipe:1") ffmpegIn, _ := ffmpeg.StdinPipe() ffmpegOut, _ := ffmpeg.StdoutPipe() if err := ffmpeg.Start(); err != nil {