Page 1 of 1

[RESOLVED] After Moving DGI file get error DGSource: Cannot open index file!

Posted: Wed Nov 04, 2020 5:23 pm
by redbtn
I create DGI using this

Code: Select all

DGIndexNV -i source.265 -o "source.dgi" -h
When I move DGI file to other location (I don't move source.265) and try to open in VapourSynth, I get error "DGSource: Cannot open index file!"

Code: Select all

clip = core.dgdecodenv.DGSource("D:\x265\source.dgi")
If I remember correctly, there was no this error before, like in 2019. GDI file has full path of source file, so i think it should work correctly.

Re: After Moving DGI file get error DGSource: Cannot open index file!

Posted: Wed Nov 04, 2020 6:27 pm
by Guest
Try
clip = core.dgdecodenv.DGSource(r'D:\x265\source.dgi')

Re: After Moving DGI file get error DGSource: Cannot open index file!

Posted: Wed Nov 04, 2020 8:12 pm
by Rocky
gonca is right. See 'Windows File Paths (Strings With Backslashes)' here:

http://www.vapoursynth.com/doc/pythonreference.html

You can use single or double quotes.

Re: After Moving DGI file get error DGSource: Cannot open index file!

Posted: Thu Nov 05, 2020 3:56 am
by redbtn
gonca wrote:
Wed Nov 04, 2020 6:27 pm
Try
clip = core.dgdecodenv.DGSource(r'D:\x265\source.dgi')
Oh, my bad , thank you for help! Works good. Stupid me.

Re: [CLOSED] After Moving DGI file get error DGSource: Cannot open index file!

Posted: Thu Nov 05, 2020 5:15 am
by Rocky
Don't feel stupid. Pretty much everyone makes that mistake the first time.

Re: After Moving DGI file get error DGSource: Cannot open index file!

Posted: Thu Nov 05, 2020 3:05 pm
by Guest
redbtn wrote:
Thu Nov 05, 2020 3:56 am
gonca wrote:
Wed Nov 04, 2020 6:27 pm
Try
clip = core.dgdecodenv.DGSource(r'D:\x265\source.dgi')
Oh, my bad , thank you for help! Works good. Stupid me.
Glad I could be of help