From 35d0099e4095be1f61017c97ab73add563d403fc Mon Sep 17 00:00:00 2001 From: Leo Butler Date: Tue, 8 Dec 2020 12:42:46 -0600 Subject: [PATCH] Use duration (-t) not end time (-to) for inputs In older versions of ffmpeg (incl. ffmpeg version 3.4.8-0ubuntu0.2 ), using the end-time (-to) causes a syntax error, so we need to switch to using the duration. --- ffmpeg-myth.scm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ffmpeg-myth.scm b/ffmpeg-myth.scm index 991823a..c8bbd9d 100755 --- a/ffmpeg-myth.scm +++ b/ffmpeg-myth.scm @@ -340,7 +340,7 @@ (out-file (simple-format #f "~a/~a.~a" working-directory rootname transcoded-file-ending)) (m-d (mythtv-recorded-table->metadata rec)) (cut-times (myth-convert-i-frame-indices-to-times (recording-retain-list rec) (recording-i-frame-info rec))) - (seek-fn (lambda(c) (simple-format #f " -ss ~a -to ~a -i '~a'" (car c) (cdr c) in-file))) + (seek-fn (lambda(c) (simple-format #f " -ss ~a -t ~a -i '~a'" (car c) (- (cdr c) (car c)) in-file))) (concat-info (ffmpeg-outstreams-templates rec max-streams)) (instreams (string-join (map (car concat-info) cut-times) " ")) (outstreams (cdr concat-info))