From dd968abc31d103d9008e69f5e75a6809d9a06793 Mon Sep 17 00:00:00 2001 From: Ville Rantanen Date: Mon, 20 Dec 2021 15:11:27 +0200 Subject: [PATCH] print unique name for trim --- tsmark/__init__.py | 2 +- tsmark/video_annotator.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/tsmark/__init__.py b/tsmark/__init__.py index 397d54a..6d1de06 100644 --- a/tsmark/__init__.py +++ b/tsmark/__init__.py @@ -1,7 +1,7 @@ from tsmark.video_annotator import Marker import argparse -VERSION = "0.4" +VERSION = "0.4.1" def get_options(): diff --git a/tsmark/video_annotator.py b/tsmark/video_annotator.py index 52f3023..824a6eb 100755 --- a/tsmark/video_annotator.py +++ b/tsmark/video_annotator.py @@ -265,10 +265,11 @@ class Marker: print("# {}: {} / {}".format(i + 1, self.format_time(ts), ts + 1)) if len(self.stamps) > 0: print( - "ffmpeg -i '{}' -ss {} -to {} -c copy trimmed.mp4".format( + "ffmpeg -i '{}' -ss {} -to {} -c copy {}.trimmed.mp4".format( self.opts.video, self.format_time(self.stamps[0]), self.format_time(self.stamps[-1]), + self.opts.video, ) )