Use tcp only also for ffmpeg

This commit is contained in:
Giuseppe Coviello 2024-02-16 12:57:18 -05:00
parent f1dcf4707c
commit 3683a4eb82

View file

@ -210,6 +210,7 @@ func (video *Video) init() error {
// ffmpeg command to pipe video data to stdout in 8-bit RGBA format. // ffmpeg command to pipe video data to stdout in 8-bit RGBA format.
cmd := exec.Command( cmd := exec.Command(
"ffmpeg", "ffmpeg",
"-rtsp_transport", "tcp",
"-i", video.filename, "-i", video.filename,
"-f", "image2pipe", "-f", "image2pipe",
"-loglevel", "quiet", "-loglevel", "quiet",