print unique name for trim

This commit is contained in:
2021-12-20 15:11:27 +02:00
parent b93a502060
commit dd968abc31
2 changed files with 3 additions and 2 deletions

View File

@@ -1,7 +1,7 @@
from tsmark.video_annotator import Marker from tsmark.video_annotator import Marker
import argparse import argparse
VERSION = "0.4" VERSION = "0.4.1"
def get_options(): def get_options():

View File

@@ -265,10 +265,11 @@ class Marker:
print("# {}: {} / {}".format(i + 1, self.format_time(ts), ts + 1)) print("# {}: {} / {}".format(i + 1, self.format_time(ts), ts + 1))
if len(self.stamps) > 0: if len(self.stamps) > 0:
print( print(
"ffmpeg -i '{}' -ss {} -to {} -c copy trimmed.mp4".format( "ffmpeg -i '{}' -ss {} -to {} -c copy {}.trimmed.mp4".format(
self.opts.video, self.opts.video,
self.format_time(self.stamps[0]), self.format_time(self.stamps[0]),
self.format_time(self.stamps[-1]), self.format_time(self.stamps[-1]),
self.opts.video,
) )
) )