From a16b9aaa998265031209fba3e7309bf78749bce4 Mon Sep 17 00:00:00 2001 From: Leo Butler Date: Tue, 8 Dec 2020 12:47:06 -0600 Subject: [PATCH] Skip an I-frame that does not have a numeric PTS In some older video files, ffprobe returns N/A (and possibly other non-numeric data) when it can't determine the PTS. These cause problems and ruin a transcode. --- ffmpeg-myth.scm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ffmpeg-myth.scm b/ffmpeg-myth.scm index f4fb661..59aed1b 100755 --- a/ffmpeg-myth.scm +++ b/ffmpeg-myth.scm @@ -370,6 +370,8 @@ ;; for some reason, ffmpeg's i-frame # is 2 less than that mythtv reports ;; after frame 0 ;; (i-frame offset time) + ((not (number? (first (car l)))) + (type-9/33-marks (cdr l) acc)) ((null? acc) (type-9/33-marks (cdr l) (list (list (fourth (car l)) (second (car l)) (inexact->exact (round (* (- (first (car l)) start_pts) 1000))))))) (#t