偏移计算,获取总秒数(而不是时间部分的秒)
This commit is contained in:
parent
92a0115e3f
commit
3d6a611626
@ -35,7 +35,7 @@ if __name__ == '__main__':
|
||||
print(create_dt)
|
||||
_duration_str = get_video_real_duration(input_file)
|
||||
_duration = datetime.strptime(_duration_str, "%H:%M:%S.%f") - datetime(1900, 1, 1)
|
||||
duration = _duration.seconds
|
||||
duration = _duration.total_seconds()
|
||||
print(duration)
|
||||
current_sec = 0
|
||||
while current_sec < duration:
|
||||
|
Loading…
x
Reference in New Issue
Block a user