Log in

View Full Version : AviSynth Batch Scripter


Pages : [1] 2

stevenca
25th July 2006, 20:43
For the people who are looking for a easy to use (and FREE) AviSynth Batch Scripter with a Graphical interface (and AviSynth script syntax highlighting!):

Avisynth Batch Scripter (ABatchScript) (http://www.itstime.nl/diensten/freeware/avisynth-batch-scripter.html)

Screenshots (http://www.itstime.nl/diensten/freeware/avisynth-batch-scripter/82-screenshots.html)

v0.3.0
- you can now let the scripts build in the same folder as your clip or into all in a specific selected .avs folder
- added script extensions, you can now choose for batch generating e.a. AVS, BAT, CMD, JOBS (extendable)
- when opening the 'folder' dialog, it now opens in a previously selected directory
- added a menu on the top of the screen
- added logical tab index
- added extension .mkv .ogm .mp4 .m1v and .m2v to extension in the settings.ini file
- added a logo to about screen
- moved settings to a collapsable settings frame to create more room
- added functionality to choose more then one scanfolder

Executable only version is there also!

- Smaller/better installfile will be there SOON

Mr_Odwin
26th July 2006, 09:24
This is cross posting?
http://forum.doom9.org/showthread.php?t=113870

stevenca
26th July 2006, 18:19
This is cross posting?
http://forum.doom9.org/showthread.php?t=113870

Yes I think it is... but I thought the topic of "Avisynth Development" suited the program better...

stevenca
26th July 2006, 20:35
I posted a new setup at the website...
- Now more compact...
- Includes only "safe" .dll's
- and nicer to look at ;)

kle500
26th July 2006, 21:39
I tryied to run the prog, but i get an: RICHTX32.OCX error.

Regards
George

stevenca
26th July 2006, 23:30
I tryied to run the prog, but i get an: RICHTX32.OCX error.


Thanks for the feedback George!
I added it to the setup... download and try again, it should work fine now...

(Oops.. stripped the setup a bit too much ;))

Alain2
26th July 2006, 23:49
Thank you for the updates :) But is it possible to have zip/7zip/rar distribution with inside the required dll / ocx etc and 2 .bat like register.bat and unregister.bat ? (similar to what was done for coreavc initially). Like check, I am not very fan of automated setups...

stevenca
27th July 2006, 06:11
But is it possible to have zip/7zip/rar distribution with inside the required dll / ocx etc and 2 .bat like register.bat and unregister.bat ?

Well I looked at the possibility to build a .bat installation file. But ran across the following: Some used .dll and .ocx components (like the Rich*.ocx) are microsoft ActiveX components and could be used by other programs on you computer. (shared .dll's)
If I use a .bat installation/(un)register file, I could unregister a ActiveX component from your comp that is used by another program. Consequence would be that the other program does not work any more...
Now I used a setup where I check this type of files and only de-register when a file is not shared any more... it much safer. Further I want to make the program itself including the setup to be as accessible as possible (even for possible Noobs :p)

Can you live with this answer? Otherwise just send me an email and I will send you the .exe with the needed components in an email, you can (un)register yourself by hand. After that you can just download the .exe-only version with any new update.

kle500
27th July 2006, 07:22
Thank's a lot.
It's working fine.
I will give a try (not a guru in avisynth), and let you know.

Thank's again.
George

EDIT:
When i try, to SCAN the program suddenly closes.

Alain2
27th July 2006, 11:48
Ok stevenca I can live with that ^^ I'll try it tonight, thanks for your work !

stevenca
27th July 2006, 14:57
When i try, to SCAN the program suddenly closes.

??? :confused: ???
It suddenly closes? No error or nothing?

Try changeing the scanfolder (under settings) to a different/smaller (sub) directory...because the .ini file sets its default to "C:\".
Does it help?

kle500
27th July 2006, 17:16
??? :confused: ???
It suddenly closes? No error or nothing?

Try changeing the scanfolder (under settings) to a different/smaller (sub) directory...because the .ini file sets its default to "C:\".
Does it help?
Sorry, my mistake, i hadn't see the + icon in the seetings.
One question:
Is it possible to load an d2v file, produced by dvd2avi ?
Cause m2v, is unreadable.

Regards
George

stevenca
27th July 2006, 17:40
Sorry, my mistake, i hadn't see the + icon in the seetings.

Well not your mistake... The program should not just 'quit' on you... Don't know what it is?
Also maybe I should do something about the visibility of the + button...


Is it possible to load an d2v file, produced by dvd2avi ?
Cause m2v, is unreadable.

I do not know if AviSynth can handle d2v, but the Avisynth Batch Scripter sure can.. just add it to your settings.ini file in the application directory.

kle500
27th July 2006, 18:51
Well not your mistake... The program should not just 'quit' on you... Don't know what it is?
Also maybe I should do something about the visibility of the + button...



I do not know if AviSynth can handle d2v, but the Avisynth Batch Scripter sure can.. just add it to your settings.ini file in the application directory.

As soon as i edit the settings.ini (either with notepad, or UltraEdit), if i click on Scan, i get:
RUN-TIME ERROR "5"
Invalid procedure call or argument

If i remove the extra D2V extension, and leave it as it was, i get the same error.
Only way to work again, is to install and overwrite, from Setup.exe.

Regards

stevenca
27th July 2006, 18:59
As soon as i edit the settings.ini

Do you lock the file with your editor maybe?
Does your string in the inifile look like this: Extenions=AVI|MPEG|MPG|MOV|DIVX|MKV|OGM|MP4|M1V|M2V|D2V

Can you email me the settings.ini that is edited by you and gives you the error...

You can try this settings.ini (added D2V for you):
6008

kle500
27th July 2006, 19:09
For some reason, on my ATHLON PC, this doesn't work, it allways gives me the error message, but in my P4 PC, it works OK, without error.

Regards
George

stevenca
27th July 2006, 19:13
For some reason, on my ATHLON PC, this doesn't work, it allways gives me the error message, but in my P4 PC, it works OK, without error.


Well... that is really weird... :rolleyes:

stevenca
27th July 2006, 19:17
kle500 in your .ini file there is a "|" in front of the mainpath in the settings.ini?
MainFolder=|C:\TOUGH_LOVE_8\VTS08

This causes a error when scanning....

kle500
27th July 2006, 19:43
kle500 in your .ini file there is a "|" in front of the mainpath in the settings.ini?
MainFolder=|C:\TOUGH_LOVE_8\VTS08

This causes a error when scanning....
That was it......... Thank's
But the strange is that in P4, the file has the "|" in front of any drive or path, and it still works.

Now i see, that during the first setup, the .ini file, has:
MainFolder=C:\

but after we change the path, to whatever, (in my example, i just deleted c, and choose drive e, and nothing else).
Now the ini file is:
MainFolder=|E:\

It works, but if i add any exension, it gives the ERROR.
Now, if i remove the "|" from the path, it works.

P.S.
If i now, choose another directory, or path, i can see the "|" in the path again.
But this time it doesn't give the ERROR.

Regards

stevenca
27th July 2006, 19:58
If i now, choose another directory, or path, i can see the "|" in the path again.
But this time it doesn't give the ERROR.


Why the error doesn't occur I do not know?
I removed the bug that causes a lost "|" when adding and removing directories... will be in next release...

Tnx kle500!

kle500
27th July 2006, 20:15
np.
One thought, is it possible to enable the program to run or right click of mouse, onto a file and add it?
Or directly, create an avs file, using a template (by oppening a 2nd row on the right of Batch Scripter).

That would be great too.

Regards
George

stevenca
28th July 2006, 06:08
George, can you explain it some more, because I do not know what you mean exactly...?

kle500
28th July 2006, 07:56
You are right, i wasn't very clear, but english is not my primary language.
For example, if we right-click on any file, we can see we can do a lot of things with this file (open, send to, copy, cut, open with).
On (send to), we see an arrow pointing to different directions.

Is it possible to have (Batch Scripter) from the installer, to install an Explorer extension, that behaves like the example above?
Also, at Default, the arrow will point to the default (2) templates, but after the User will create his own, these templates will be added.
That way, we can create, or batch create avs files, without the need to be inside the program.

I hope you understand what i want to say.

Regards
George

stevenca
31st July 2006, 18:35
I just opened the AviSynth Batch Scripter Forum (http://www.designfoto.nl/phpBB2/index.php).

Visit there and register to kept up-to-date for new releases and discuss different subjects...

New version also available: v0.3.2

stevenca
1st August 2006, 11:35
Just upped a new release! v0.4.0

v0.4.0
- added "intellisense" listbox! Now recognises AviSynth filter words in Scriptbox and suggests (and completes) your Script word!
- added function to expand script window, for more room when scripting
- added functional variable %PATH% (replaced by path of clipfile when auto-building scripts) as variable in script template
- if template path setting in settings.ini is non existant, now load default.avt in Templates directory
- moved setting to separate screen (available in menu file > settings or settings button)

http://www.designfoto.nl/images/screenshot.jpg

Mystiqq
10th September 2006, 11:00
Nice tool. Im trying to use this to make scripts to "batch process" several Rebuilder CCE encodes i did to see the differences. Only problem i have is that the %PATH% isnt working, it doesnt give complete path but only the first 7 or so letters of the path.

Example:

Correct path is "F:\NewFolder\VIDEO_TS" but ABS outputs "F:\NewF" in the script file.

Otherwise it seems to work just fine.

Cheers...

stevenca
10th September 2006, 12:13
Only problem i have is that the %PATH% isnt working, it doesnt give complete path but only the first 7 or so letters of the path.


Mystiqq, what kind of OS do you use?

Blue_MiSfit
10th September 2006, 12:17
Neat tool!

It's a bit buggy with path generation I have noticed. Still very handy when dealing with lots of files in scattered folders...

~MiSfit

stevenca
10th September 2006, 13:27
When you are having problems with the %PATH% generation, do the paths show up correctly in de found files window under location?

stevenca
10th September 2006, 13:55
I think I fixed the problem with the %PATH% variable.
Try the included executable.... let me know if this fixes the problem. If it does, then I will include this fix in the next release...

6138

Mystiqq
10th September 2006, 14:13
I think I fixed the problem with the %PATH% variable.
Try the included executable.... let me know if this fixes the problem. If it does, then I will include this fix in the next release...

6138

Nice, thanks. Ill test as soon as the attachment is downloadable, seems to be "pending" atm.

Mystiqq
12th September 2006, 08:35
Still unable to download the file. Any chance you could upload it to somewhere else?

stevenca
12th September 2006, 18:28
Still unable to download the file. Any chance you could upload it to somewhere else?

I uploaded the possible fix here:
ABatchScript_41.zip (http://www.designfoto.nl/_abatchscript/ABatchScript_41.zip)

Good luck!

stevenca
14th September 2006, 16:26
Just upped a new release v0.4.1

- re-wrote %PATH% generation code, should work properly now
- added a splash screen
- added consequent errorhandling (does not crash anymore and on error writes a errorlog in the application directory)
- fixed bug where program crashes when comming across a "permission denied" folder
- fixed bug where intellisense became visible when moving up from a filter word
- menu option "build script" now initializes disabled

Backwoods
14th September 2006, 21:36
Tiny suggestion, renaming the EXE download from setup.exe to something more specific.

Alain2
2nd October 2006, 23:41
Thanks stevenca for the updates!

I didn't try it much lately as I don't have series to process at the moment, but I am sure your soft will come handy for me in a near future ^^

I have 2 requests :

- Would it be possible to implement a switch, that would allow to either create a new file as per template for all selected input (so that's what it is doing now), or to create only 1 file but within it repeat the template for all the selected inputs ? My idea is to be able to create avs / jobs etc for all inputs as it does at the moment, but also create a .bat that would contain the commands for using the avs / jobs etc for all inputs, one after the other..

- Is it possible to make the splashscreen optional in the settings ?

Thank you :)

stevenca
16th October 2006, 13:45
Just upped a new release! v0.5.0

v0.5.0
- added "One for all" and "All for one" modes:
- "One for all" is the normal mode, creates one script using the template for each of the selected files, so outputs MULTIPLE scripts. (NORMAL)
- "All for one" is the batch mode, creates one script using the template and repeats this for each of the selected files, so outputs ONE script.
- changed splash screen in optional setting
- rearranged some controls

Thanks for all of your feedback!

Backwoods
17th October 2006, 00:41
Nice, thank you.

Alain2
17th October 2006, 03:00
Thank you stevenca ! Good work, just tried it on a transcoding job of a series I have, works fine; both All for one and one for all functions work very well!
This batch processing software is really easy to use and complements well the AvsP software developped by qwerpoi. It's probably possible to do some python macros to do the same, but it's nice to have a gui like yours as well !

2 small requests for a future version if any:
- direct access to the setting with a button somewhere on the gui (next to About for instance)
- possiblity to add prefix/suffix to the filenames generated in the one for all mode (like a field the user could enter "%CLIP%_2" for instance, which will add the suffix _2 before the extention to all the filenames generated). This second request is because I create 2 different avs per clip.. (At the moment I have to create them in different directories and batch rename them after)

stevenca
16th November 2006, 13:04
v0.5.1

- At many request, I have put the settings button back on the form
- Clicking on the splash screen no longer causes unload
- Added a statusbar at the bottom of the screen with the number of files found and the current set template

Did not have time for the major works just yet... but keep your remarks comming!

stevenca
13th January 2007, 13:38
v0.5.2

- added a setting "only show if .avs does not exists"
- added mode ("One for all" and "All for one") to settings.ini

Cheers!

KenJ
4th October 2007, 20:18
Alright, perhaps I am a little thick. But I can't figure out how to use this application! How about a simple tutorial to get folks like me started - or at least a Help file?

"One for all", All for one" - what is that??

stevenca
4th October 2007, 23:05
Alright, perhaps I am a little thick. But I can't figure out how to use this application! How about a simple tutorial to get folks like me started - or at least a Help file?

"One for all", All for one" - what is that??

Hi KenJ,

Well up till now nobody asked for a helpfile or tutorial really?
How does it work?
1) You write your desired .avs script in the avisynth batch script window (or you use the default template)
2) you let the program scan your harddrive for any video files you might have? (use the settings to locate a specific directory or file)
3) You get a list of video files found
4) Click 'build scripts' and for every video file selected a .avs file will be created conform the script you wrote in step 1.

The "one for all" means: One script for all the selected video files... this will be most common use I guess....
The "all for one" means: That the script written in step 1 will be repeated for each video file but written to 1 file! To make 1 big batch script...

Is it more clear now?

With regards,

Steven

KenJ
6th October 2007, 10:08
Thank you, Steven. Graphical User Interfaces are supposedly "intuitive" to use. Perhaps I'm just intuition challenged! It is a nice program.

stevenca
7th April 2008, 08:23
I am going to do some re-work on the batch scripter soon... Anyone have some suggestions for extra functionality I can add?

Elvis56
19th May 2008, 13:01
I am going to do some re-work on the batch scripter soon... Anyone have some suggestions for extra functionality I can add?

A different approach to adding files may be a good idea. Currently adding files is not very intuitive. First setting a folder and then scanning for files just isn't intuitive and besides that it takes forever if you have many video files. I'd say the easiest way would be to just drag and drop files to the main window.

An even quicker way may be to add Avisynth batch scripter to the context menu of (video) files. Rightclick one or more video files and select create avs script using template<x>.

I just did some experimenting using the send to menu in windows and it seems to work well.

I created a batch file and put it in the <profilefolder>\Sendto folder. Now i can just right click any file and select makeavs from the send to menu. The code below is what is in my makeavs.cmd file.


REM echo text "DirectShowSource" , then the complete filepath and file,
REM then set FPS(not always needed), then set the outputfile. Currently
REM this is set to the original filename with the extension set to
REM .avs. Other avisynth options are then added using the >> command
echo DirectShowSource ("%~dp1%~nx1", fps=29.97) >%~n1.avs
echo BicubicResize(720,408) >>%~n1.avs
echo AddBorders(0, 36, 0, 36) >>%~n1.avs

The code above processes only the first selected file. If you want to process multiple files use this code:

echo DirectShowSource ("%~dp1%~nx1", fps=29.97) >%~n1_fullHD.avs
echo DirectShowSource ("%~dp2%~nx2", fps=29.97) >%~n2_fullHD.avs
echo DirectShowSource ("%~dp3%~nx3", fps=29.97) >%~n3_fullHD.avs
echo DirectShowSource ("%~dp4%~nx4", fps=29.97) >%~n4_fullHD.avs
echo DirectShowSource ("%~dp5%~nx5", fps=29.97) >%~n5_fullHD.avs
echo DirectShowSource ("%~dp6%~nx6", fps=29.97) >%~n6_fullHD.avs

The code above can also be used to create 1 file with all sources by outputting all files to >>%~n1_allinone.avs (this would need some extra code as it creates empty sources)

Of course adjust to whatever you want. Some useful variables:

echo fully qualified name %~f1
echo drive %~d1
echo path %~p1
echo filename %~n1
echo file extension %~x1
echo short filename %~sn1
echo short file extension %~sx1
echo drive and directory %~dp1
echo filename and extension %~nx1

Blue_MiSfit
16th June 2008, 19:29
I used this app awhile back, and had great fun with it. Now, I have a lot of files that are organized by a specific folder structure - like this:

Season1->12345->Video_TS->movie.d2v
Season1->12346->Video_TS->movie.d2v
etc...

So, I want to select the toplevel directory, and have ABS recurse through, and build a template for these d2vs. Is this possible with the current version, or could it be added?

Thanks!

~MiSfit

stax76
16th June 2008, 20:03
@Blue_MiSfit

The common way for such a task is to use a search tool (right click the folder to search the source files with Agend Ransack for instance (affaik there isn't a much better free search tool)), you have list of the source files then which you can drag & drop on the batch application assuming it supports drag & drop.

Blue_MiSfit
16th June 2008, 20:20
Interesting!

I'm afraid ABS doesn't support drag and drop :(

Any other simple way to automate script creation?

After trying other things in ABS, it seems it can recurse through subdirectories, but it has a depth limitation. If my toplevel is too deep in the main directory tree, it won't go deeper :(

~MiSfit

stax76
16th June 2008, 20:56
Possibly it does cmdl but in order to forward files in this way the user must have more advanced shell knowledge, most don't even know what the shell is. A good application provides full shell support taking files from both d&d and cmdl.