fix windoes videos again

This commit is contained in:
leminlimez
2025-04-04 21:16:19 -04:00
parent a14d698ced
commit 292ff869da
2 changed files with 4 additions and 5 deletions

View File

@@ -87,11 +87,10 @@ def create_caml(video_path: str, output_file: str, auto_reverses: bool, update_l
name = 'assets/' + str(currentframe) + '.jpg'
if update_label:
update_label('Creating...' + name)
else:
print ('Creating...' + name)
print('Creating...' + name)
# writing the extracted images
cv2.imwrite(os.path.join(output_file, name), frame)
cv2.imwrite(os.path.join(output_file.removeprefix(u"\\\\?\\"), name), frame)
caml.write(f"\t\t\t<CGImage src=\"{name}\"/>\n")
# increasing counter so that it will