lib/ffmprb/process/input/paced.rb in ffmprb-0.12.1 vs lib/ffmprb/process/input/paced.rb in ffmprb-0.12.2

- old
+ new

@@ -17,16 +17,18 @@ super unfiltered @ratio = pace end def filters_for(lbl, video:, audio:) + fail Error, "pacing requires fps" unless + video.fps # Pacing lbl_aux = "pc#{lbl}" super(lbl_aux, video: video, audio: audio) + [ - *((video && channel?(:video))? Filter.setpts(@ratio, "#{lbl_aux}:v", "#{lbl}:v"): nil), + *((video && channel?(:video))? Filter.setpts_framerate(@ratio, video.fps, "#{lbl_aux}:v", "#{lbl}:v"): nil), *((audio && channel?(:audio))? Filter.atempo(@ratio, "#{lbl_aux}:a", "#{lbl}:a"): nil) ] end end end