Skip to content

Commit

Permalink
ffmpeg fix merge (#85)
Browse files Browse the repository at this point in the history
  • Loading branch information
daktak authored Jan 9, 2023
1 parent 340dba2 commit 4686b65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/videomanipulation/ffmpeg.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ func (v *VMan) merge(output string, bar *mpb.Bar, ffConfig FFConfig, videos ...s

func (v *VMan) Merge(bar *mpb.Bar, videos ...string) error {
mergeConfig := v.NewDefaultConfig()
mergeConfig.InArgs = append(mergeConfig.InArgs, []string{"-f", "concat", "-safe", "0"}...)
mergeConfig.InArgs = append(mergeConfig.InArgs, []string{"-f", "concat", "-safe", "0", "-ignore_unknown"}...)
mergeConfig.OutArgs = append(mergeConfig.OutArgs, []string{"-map", "0:0", "-map", "0:1", "-map", "0:3"}...)

err := v.merge(getMergedOutputFilename(videos[0]), bar, mergeConfig, videos...)
Expand Down

0 comments on commit 4686b65

Please sign in to comment.