import datetime
import os
curr_time = datetime.datetime.now()
my_path = os.getcwd() + "\\"
shijian = str(curr_time.date()) + str(curr_time.hour) + str(curr_time.minute) + str(curr_time.second)
print(shijian)
print('要分割的视频名称:in.mp4')
print('输出的视频名称:out.mp4')
t1 = input('请输入起始时间(时:分:秒):例如:[00:00:00]')or r'00:00:51'
t2 = input('请输入截取时间(时:分:秒):例如:[00:00:05]')or r'00:00:04'
a = "r " + "cd %s & ffmpeg -ss %s -i in.mp4 -vcodec copy -acodec copy -t %s out_%s.mp4" %(my_path, t1, t2, shijian)
print(a)
b=input()
os.system(a)
# 视频分割---起始时间-结束时间