[RESOLVED] avs error?

Support forum for DGDecNV
Post Reply
DAE avatar
renols
Posts: 149
Joined: Tue Feb 22, 2011 2:34 am

[RESOLVED] avs error?

Post by renols »

Hi.

I have run into an issue that really have me scratching my head.

I have a source ts file with spaces and some localized caracters in it like "æ" and "ø".

09-25_22-00-00_TV10_Hansen ønsker ærlighed (3)

Demuxing works fine and dgi file also looks fine. I can open the avs file in Virtualdub and it looks fine.

But as soon as I launch x264 it gives me this error:

avs [error]: DGSource: Could not open one of the input files. If you want to
have your Avisynth script and your source file in different directories, then
you must enable the Use Full Paths option in the DGIndexNV settings before
saving your project. Alternatively, you can edit the DGI file to add the full
paths, in which case re-indexing is not required.
(hansen.avs, line 4)
x264 [error]: could not open input file `hansen.avs'

Now if I simply rename the ts file to "09-25_22-00-00_TV10_Hansen (3).ts" and change the line in the dgi file to the same, then x264 starts fine and encodes without issues.

It happens on 221 and I have tried to go back to 216 and the problem is still there. I used the same ini file in 216 as in 221.

All I do is rename the file, and change the name in the dgi file as well. No other changes are done to make it work. And why can
virtualdub open the file. Could maybe try an older x264 version, but why would it start working by just changing the file name and the file name in the dgi file.

It is as if something have happened when my ts file contains localized caracters.

But it worked fine in the past.

Any idea what can be wrong?

renols
DAE avatar
renols
Posts: 149
Joined: Tue Feb 22, 2011 2:34 am

Re: avs error?

Post by renols »

Just a small update.

I just tried to change the letter "ø" to "oe" and the letter "æ" to "ae" in the filename before starting to work with it.

Now everything works like it should, and no complains when the x264 encode starts.

Wonder what have changed. It worked in the past, but been a while since I last worked with .ts recordings.

renols
User avatar
Rocky
Posts: 3555
Joined: Fri Sep 06, 2019 12:57 pm

Re: avs error?

Post by Rocky »

Investigating...
User avatar
Rocky
Posts: 3555
Joined: Fri Sep 06, 2019 12:57 pm

Re: avs error?

Post by Rocky »

I grabbed the x264_x64.exe from Simple Launcher version 2.88.1130 and everything works fine. I grabbed it from the latest Simple Launcher and it is broken. So it looks like this got broken in later x264 builds. Can't help you with that. File a bug report.
DAE avatar
renols
Posts: 149
Joined: Tue Feb 22, 2011 2:34 am

Re: avs error?

Post by renols »

Hi.

Thank you very much for figuring it out.

I guess that the fact that it worked in avisynth, should have pointed me towards x264.

I will try to file a report on it.

renols
User avatar
Rocky
Posts: 3555
Joined: Fri Sep 06, 2019 12:57 pm

Re: avs error?

Post by Rocky »

OK, I will mark this resolved. Please let us know if you find out anything useful.
DAE avatar
renols
Posts: 149
Joined: Tue Feb 22, 2011 2:34 am

Re: [RESOLVED] avs error?

Post by renols »

Hi.

Not sure if I can write here when marked resolved.

Been doing a lot of tests and writing with x264 developers.

In the new x264 versions in the Manifest (whatever that is) of the exe file this line is there:

<activeCodePage xmlns="http://schemas.microsoft.com/SMI/2019/W ... veCodePage>

Which means that it expects UTF-8 I suppose.

If I open the DGI file and save it as UTF-8 then x264 starts to encode without any errors.

If I use some program to remove that line from the Manifest, then x264 also starts to encode without any errors.

This means I guess that all new x264 builds expects UTF-8, which is not what the dgi file is. When I open the DGI file in my editor it shows "DOS", and then I can convert it to UTF-8 and save it.

I can also rename my ts file, to not have any danish special letters in the name. That also works.

I have searched the forum for unicode and UTF-8, and it seems to be something you have worked on before.

I have now removed the activeCodePage part from the manifest in the x264 exe file, and all seems to be back to normal.

Maybe the above can help someone else.

renols
User avatar
Rocky
Posts: 3555
Joined: Fri Sep 06, 2019 12:57 pm

Re: [RESOLVED] avs error?

Post by Rocky »

No problem posting in a resolved thread, unless you post a new unrelated problem.

Thank you for the update. I don't plan to do anything to generate UTF-8 output. It's great to know there is a workaround for x264.exe.
User avatar
Rocky
Posts: 3555
Joined: Fri Sep 06, 2019 12:57 pm

Re: [RESOLVED] avs error?

Post by Rocky »

Can you tell us how you edited the manifest for x264.exe? Thank you.
DAE avatar
renols
Posts: 149
Joined: Tue Feb 22, 2011 2:34 am

Re: [RESOLVED] avs error?

Post by renols »

Hi.

Looks like x264 devs have opened a thread on doom9 wether to revert the change or not.

It also explains whar the problem is I think.

https://forum.doom9.org/showthread.php?t=182117

The x264dev told me to use a program called resource_hacker

http://www.angusj.com/resourcehacker/

I opened the original x264.exe file with that program, and there were an object on the left side that said "Manifest".

It looks like this:

<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
<assemblyIdentity type="win32" name="VideoLAN.x264" version="1.0.0.0"/>
<application xmlns="urn:schemas-microsoft-com:asm.v3">
<windowsSettings>
<longPathAware xmlns="http://schemas.microsoft.com/SMI/2016/W ... gPathAware>
<activeCodePage xmlns="http://schemas.microsoft.com/SMI/2019/W ... veCodePage>
</windowsSettings>
</application>
</assembly>

Remove the line with activeCodePage and press F5. It will say that it has compiled.

Press "Save" and the file will be saved. The old file will be saved as *_original

That should be it, and the new x264 file now behaves like the older versions.

renols
User avatar
Rocky
Posts: 3555
Joined: Fri Sep 06, 2019 12:57 pm

Re: [RESOLVED] avs error?

Post by Rocky »

That's great information. Thank you, renols.
Post Reply