darbyjohnston / DJV

Professional media review software for VFX, animation, and film production
https://darbyjohnston.github.io/DJV/
BSD 3-Clause "New" or "Revised" License
658 stars 58 forks source link

Can't open sequences of files with a hyphen. #461

Open Wouterdek opened 2 years ago

Wouterdek commented 2 years ago

I'm trying to open a sequence of files with the filename pattern output-0.exr, output-1.exr, ... and it's not working. I tried both the File->Open menu, and dragging the first file into the window. In the djv log, I can see it is trying to open output0.exr instead. If I have just one file (output-0.exr), not a sequence, it works fine.

Log:

ERROR: Cannot read image file "D:\output0.exr". No such file or directory.

Thanks for this great app!

bbogart commented 2 years ago

I confirm this is happening in 2.0.8 on Ubuntu. I've been using DJV for years with these filenames and I have millions of files with this naming scheme. I'm going to try and install an older version to get around this regression.

Actual filenames:

store-0000001.tif
store-0000002.tif
store-0000003.tif
store-0000004.tif
store-0000005.tif
store-0000006.tif
store-0000007.tif
store-0000008.tif
store-0000009.tif
store-0000010.tif
store-N.tif

Sequence seen by DJV:

store0000001-N.tif

Error:

ERROR: /media/bbogart/store2/Deer-Lake/HDV/Lake-Waves/Frames/store0000001.tif: Cannot open file.
ERROR: /media/bbogart/store2/Deer-Lake/HDV/Lake-Waves/Frames/store0000001.tif: Cannot open file.
ERROR: /media/bbogart/store2/Deer-Lake/HDV/Lake-Waves/Frames/store0000001.tif: Cannot open file.ERROR: /media/bbogart/store2/Deer-Lake/HDV/Lake-Waves/Frames/store0000001.tif: Cannot open file.
ERROR: /media/bbogart/store2/Deer-Lake/HDV/Lake-Waves/Frames/store0000001.tif: Cannot open file.
ERROR: /media/bbogart/store2/Deer-Lake/HDV/Lake-Waves/Frames/store0000001.tif: Cannot open file.
lonnon commented 1 year ago

Identical error on Windows 10 22H2 19045.2486, with the same pattern of misinterpreting the filename as reported by Wouterdek and bbogart. I can work around it, but I'd rather not!