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

Support forum for DGDecNV
Post Reply
User avatar
redbtn
Posts: 44
Joined: Sat Nov 16, 2019 2:35 pm

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

Post 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.
DAE avatar
Guest

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

Post by Guest »

Try
clip = core.dgdecodenv.DGSource(r'D:\x265\source.dgi')
User avatar
Rocky
Posts: 3556
Joined: Fri Sep 06, 2019 12:57 pm

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

Post 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.
User avatar
redbtn
Posts: 44
Joined: Sat Nov 16, 2019 2:35 pm

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

Post 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.
User avatar
Rocky
Posts: 3556
Joined: Fri Sep 06, 2019 12:57 pm

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

Post by Rocky »

Don't feel stupid. Pretty much everyone makes that mistake the first time.
DAE avatar
Guest

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

Post 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
Post Reply