Index MKV files from right-click

This forum is for questions and discussion of all the aspects of handling and cleaning up your footage with Avisynth.
Locked
User avatar
Qyot27
Surreptitious fluffy bunny
Joined: Fri Aug 30, 2002 12:08 pm
Status: Creepin' between the bullfrogs
Location: St. Pete, FL
Contact:
Org Profile

Re: Index MKV files from right-click

Post by Qyot27 » Fri Mar 12, 2010 7:37 pm

mirkosp wrote:Quoted Image converted to link:
http://i39.tinypic.com/ng6jif.png
Should be right.

And as far as explorer is concerned, it either is already running as admin or it won't let me do so, since the voice doesn't show up with right click...

EDIT: Oh, and yeah, I'm running SP1, so perhaps might change something...
I looked around on Google and found this:
http://vistavitals.blogspot.com/2008/06 ... lorer.html

In which the solution is that because Explorer is already running, it won't let you elevate, and the way to work around this is to tell Explorer to launch new folder windows in a separate process, which will let 'Run as Administrator' work to launch Explorer itself with those privileges (just as long as there are no other Explorer windows open when you do it).

But it also had a note, down toward the bottom of the page, that SP1 drastically changes the way Explorer behaves. Unfortunately it doesn't say how it changes things. Whether the fix the rest of the post describes works for SP1, I have no idea.
Zarxrax wrote:You might want to try making an installer with InnoSetup.
With the ISTool editor, you can probably whip up an installer to easily handle this on all systems in a matter of minutes.
I'll look into it, but it'll come down to either having two or three separate installers, or I'll have to figure out how to store separate copies for the different scenarios it might come across - I already found that XP and Vista handle the scripts involved differently, and if SP1 is different than Vista RTM, and if SP2 is different than SP1, and if Win7 is different than all three of the previous, this is going to get messy, either way you look at it.

What I'd really prefer is just a generic frontend app that integrates with the context menu and has a configuration file to control how it handles each individual application beneath it. I had tried making audio frontends adapt, but it failed pretty badly. All the custom context menu editors I've seen hone in on very specific tasks rather than a broad, all-purpose CLI task controller. If one exists and I simply overlooked it, then suggestions are certainly welcome.
My profile on MyAnimeList | Quasistatic Regret: yeah, yeah, I finally got a blog

User avatar
mirkosp
The Absolute Mudman
Joined: Mon Apr 24, 2006 6:24 am
Status: (」・ワ・)」(⊃・ワ・)⊃
Location: Gallarate (VA), Italy
Contact:
Org Profile

Re: Index MKV files from right-click

Post by mirkosp » Fri Mar 12, 2010 8:24 pm

Qyot27 wrote:
mirkosp wrote:Quoted Image converted to link:
http://i39.tinypic.com/ng6jif.png
Should be right.

And as far as explorer is concerned, it either is already running as admin or it won't let me do so, since the voice doesn't show up with right click...

EDIT: Oh, and yeah, I'm running SP1, so perhaps might change something...
I looked around on Google and found this:
http://vistavitals.blogspot.com/2008/06 ... lorer.html

In which the solution is that because Explorer is already running, it won't let you elevate, and the way to work around this is to tell Explorer to launch new folder windows in a separate process, which will let 'Run as Administrator' work to launch Explorer itself with those privileges (just as long as there are no other Explorer windows open when you do it).

But it also had a note, down toward the bottom of the page, that SP1 drastically changes the way Explorer behaves. Unfortunately it doesn't say how it changes things. Whether the fix the rest of the post describes works for SP1, I have no idea.
Tried that and the option won't show up. Not if I'm just running it as a user, nor even if I'm running it specifically as administrator. Seems like explorer.exe dislikes this context feature for some reason or another... =_=
Image

User avatar
Qyot27
Surreptitious fluffy bunny
Joined: Fri Aug 30, 2002 12:08 pm
Status: Creepin' between the bullfrogs
Location: St. Pete, FL
Contact:
Org Profile

Re: Index MKV files from right-click

Post by Qyot27 » Fri Mar 12, 2010 9:07 pm

The actual indexing bat files work though, right? You can simply drag-and-drop the MKVs onto them and the index+.avs will get written. If nothing else, that has no reason to not work unless the syntax is bad again.

I just figured it'd be less intrusive if the context menu works, because it wouldn't require users to drag files around all over the place or make sure they didn't delete the indexing bats. Heck, you can also call them from new batch scripts if you do want to keep them in C:\WINDOWS. But that still requires some familiarity with batch scripting/CLI.
My profile on MyAnimeList | Quasistatic Regret: yeah, yeah, I finally got a blog

User avatar
mirkosp
The Absolute Mudman
Joined: Mon Apr 24, 2006 6:24 am
Status: (」・ワ・)」(⊃・ワ・)⊃
Location: Gallarate (VA), Italy
Contact:
Org Profile

Re: Index MKV files from right-click

Post by mirkosp » Fri Mar 12, 2010 9:47 pm

Qyot27 wrote:The actual indexing bat files work though, right? You can simply drag-and-drop the MKVs onto them and the index+.avs will get written. If nothing else, that has no reason to not work unless the syntax is bad again.
Didn't come to my mind to try that, and apparently the script comes off broken:

Code: Select all

FFmpegSource2(""D:\path\filename.mkv"")
gets outputted instead of

Code: Select all

FFmpegSource2("D:\path\filename.mkv")
when dragging the mkv on mkvindex-vista.bat.
Since the code in that bat is

Code: Select all

"C:\Program Files\AviSynth 2.5\plugins\ffmsindex.exe" %1
echo FFmpegSource2^("%1"^)> ""%1".avs"
pause
I would assume that changing it to

Code: Select all

"C:\Program Files\AviSynth 2.5\plugins\ffmsindex.exe" %1
echo FFmpegSource2^(%1^)> ""%1".avs"
pause
should work. Actually, I checked and it did work, so I suppose that the bat for vista SP1 should be changed to that?

But yeah, having the context menu would be nice. Not that dragging a file over a bat isn't easy, but just right click and chosing the voice is much more friendly for a lazy user like me. :P
Image

User avatar
Qyot27
Surreptitious fluffy bunny
Joined: Fri Aug 30, 2002 12:08 pm
Status: Creepin' between the bullfrogs
Location: St. Pete, FL
Contact:
Org Profile

Re: Index MKV files from right-click

Post by Qyot27 » Fri Mar 12, 2010 11:50 pm

That's one of those issues I couldn't figure out about the quotation marks - when I was composing the scripts on XP, the way the %1's were treated was incredibly erratic, not being able to detect the full path to the file at times, mainly if there was a space somewhere in the path to the file. But checking just now with simply a %1 inside of the Source filter instead of ""%1"" works ok too (on XP, AviSynth seems to be fine if there are three sets of quotation marks around a filename, which the ""%1"" creates). I don't know what's going on.

So here's yet another update to the pack (as was true before, the previous pack is now gone):
http://www.mediafire.com/?wzjitzzxtqz

Still have no clue why the context menu edits don't seem to work on SP1, only that it might simply have to do with how SP1 alters Explorer's functionality, however that actually is.
My profile on MyAnimeList | Quasistatic Regret: yeah, yeah, I finally got a blog

User avatar
mirkosp
The Absolute Mudman
Joined: Mon Apr 24, 2006 6:24 am
Status: (」・ワ・)」(⊃・ワ・)⊃
Location: Gallarate (VA), Italy
Contact:
Org Profile

Re: Index MKV files from right-click

Post by mirkosp » Sat Mar 13, 2010 12:35 am

Heh yeah, still no luck with the context menu. I tried to check around other registry keys that change the context menu, and they seem to have a different format. However, changing the mkv_auto_file keys to that still had no luck. Specifically I checked the avs_auto_file key and it actually was in the format

Code: Select all

C:\path\file.ext "%1"
instead of the

Code: Select all

"C:\path\file.ext" %1
format of your mkv_auto_file keys. However, since changing them didn't work, I would guess the issue is something else. It would be nice to have some clue, though. >_<

EDIT: Whatever. I ended up doing right click > open with > other program (or however it's called in english) and then chosing the bat from there so now I have the bat showing up in the open with list. It's not exactly the solution we were going for but works for me. :\
Image

Locked

Return to “AviSynth Help”