Update encoder_scene_preview_chunk.go

Apply ffmeg max_uxing_queue_size option fix to avoid problems with some videos
This commit is contained in:
rudi123github 2019-06-21 23:03:00 +02:00 committed by GitHub
parent 30a2a2cf00
commit b8f1cf9d53
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -18,6 +18,7 @@ func (e *Encoder) ScenePreviewVideoChunk(probeResult VideoFile, options ScenePre
"-ss", strconv.Itoa(options.Time),
"-t", "0.75",
"-i", probeResult.Path,
"-max_muxing_queue_size", "1024", // https://trac.ffmpeg.org/ticket/6375
"-y",
"-c:v", "libx264",
"-pix_fmt", "yuv420p",