print unique name for trim
This commit is contained in:
@@ -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():
|
||||||
|
|||||||
@@ -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,
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user