deal with flv format
This commit is contained in:
@@ -348,6 +348,11 @@ def main():
|
|||||||
else:
|
else:
|
||||||
is_video = False
|
is_video = False
|
||||||
|
|
||||||
|
if is_video and args.input.endswith('.flv'):
|
||||||
|
mp4_path = args.input.replace('.flv', '.mp4')
|
||||||
|
os.system(f'ffmpeg -i {args.input} -codec copy {mp4_path}')
|
||||||
|
args.input = mp4_path
|
||||||
|
|
||||||
if args.extract_frame_first and not is_video:
|
if args.extract_frame_first and not is_video:
|
||||||
args.extract_frame_first = False
|
args.extract_frame_first = False
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user