Skip to content

Commit

Permalink
Skip preview chunk on error
Browse files Browse the repository at this point in the history
  • Loading branch information
Infinite committed May 18, 2020
1 parent a326ff6 commit ff54c68
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/ffmpeg/encoder_scene_preview_chunk.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ type ScenePreviewChunkOptions struct {
func (e *Encoder) ScenePreviewVideoChunk(probeResult VideoFile, options ScenePreviewChunkOptions, preset string) {
args := []string{
"-v", "error",
"-xerror",
"-ss", strconv.Itoa(options.Time),
"-i", probeResult.Path,
"-t", "0.75",
Expand Down

0 comments on commit ff54c68

Please sign in to comment.