-
Notifications
You must be signed in to change notification settings - Fork 57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"cannot identify image file %r" % #86
Comments
Had the same issue. The temp file was 0 KB big. |
Yes, ffmpeg works perfectly. I am using pre-build |
I am experiencing this too. This is especially annoying because when I pass a list of files and it stops halfway through (I usually use it like this |
I just had the same issue, seems like the cause is due to the duration of the file? The following commands work fine:
The following throws the error: Traceback (most recent call last):
File "/root/x/x/venv/bin/vcsi", line 8, in <module>
sys.exit(main())
File "/root/x/x/venv/lib/python3.10/site-packages/vcsi/__init__.py", line 3, in main
vcsi.vcsi.main()
File "/root/x/x/venv/lib/python3.10/site-packages/vcsi/vcsi.py", line 1634, in main
process_file_or_ignore(filename, args)
File "/root/x/x/venv/lib/python3.10/site-packages/vcsi/vcsi.py", line 1608, in process_file_or_ignore
process_file(filepath, args)
File "/root/x/x/venv/lib/python3.10/site-packages/vcsi/vcsi.py", line 1762, in process_file
selected_frames, temp_frames = select_sharpest_images(media_info, media_capture, args)
File "/root/x/x/venv/lib/python3.10/site-packages/vcsi/vcsi.py", line 738, in select_sharpest_images
frame = do_capture(timestamp_tuple, desired_size[0], desired_size[1], suffix, args)
File "/root/x/x/venv/lib/python3.10/site-packages/vcsi/vcsi.py", line 698, in do_capture
blurriness = media_capture.compute_blurriness(filename)
File "/root/x/x/venv/lib/python3.10/site-packages/vcsi/vcsi.py", line 594, in compute_blurriness
i = Image.open(image_path)
File "/root/x/x/venv/lib/python3.10/site-packages/PIL/Image.py", line 3123, in open
raise UnidentifiedImageError(
PIL.UnidentifiedImageError: cannot identify image file '/tmp/tmp__13n2o6.bmp' Mediainfo of the file:
|
I occasionally run into this error as well, it would be nice if vcsi would instead of failing completely just add a placeholder image for the erroneous frames, at least in the case if there's already a couple of frames that were calculated successfully. A tip for those running into this issue when processing batches of files, you can add the --ignore-errors commandline switch which will cause vcsi to not stop the batch instead it will output a warning and skip to the next file in the batch. |
I have been using vcsi for a long time. And i'd like to fix this issue.
The text was updated successfully, but these errors were encountered: