Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > Capturing and Editing Video > Avisynth Usage

Reply
 
Thread Tools Search this Thread Display Modes
Old 26th September 2008, 04:44   #21  |  Link
nicoDid
Registered User
 
Join Date: Sep 2008
Posts: 2
No suggestions, ok, staying with VFAPI (also trying makeAvis but it seems as I'm hitting limits - on this installation/OS at least - which VFAPI doesn't have).

I'm making tests (and will search and possibly start a thread) on a workflow like this:
preprocessingFrameserving-NLE/compositing-postprocessingFrameserving-compression and use of NVidia hardware mpeg2 compression.
nicoDid is offline   Reply With Quote
Old 10th January 2009, 09:12   #22  |  Link
mk123
Guest
 
Posts: n/a
Well , I think that Teriffic tool, like Asynther with many more options. Also, it's not just for Avisynth scripts. I use it for batch scripting with FFMpeg and a few other CLI tools. Saves me a lot of cutting and pasteing. A few minor "gotchas" (minimal editing features, besides the intellisence, and a little cumbersome to find the "scan" folders) but overall I find it very useful.

Last edited by sh0dan; 10th January 2009 at 10:18. Reason: Spam removed
  Reply With Quote
Old 27th February 2009, 22:21   #23  |  Link
Zortag
Registered User
 
Join Date: Oct 2005
Location: Maryland, USA
Posts: 2
Is there a command-line tool for getting information from an AVS file. Currently, the only way I know of is to open the AVS file in Virtual Dub, choose "File Information" and write it down. What I am looking for is something like:
avs_info -duration source.avs To get the length in time
avs_info -width -height source.avs To get the width and height of the frame
etc.
Zortag is offline   Reply With Quote
Old 28th February 2009, 06:08   #24  |  Link
AlanHK
Registered User
 
Join Date: May 2006
Posts: 237
Quote:
Originally Posted by Zortag View Post
Is there a command-line tool for getting information from an AVS file. Currently, the only way I know of is to open the AVS file in Virtual Dub, choose "File Information" and write it down. What I am looking for is something like:
avs_info -duration source.avs To get the length in time
avs_info -width -height source.avs To get the width and height of the frame
etc.

You could write Avisynth functions.

Look at:
http://avisynth.org/mediawiki/Clip_properties
http://avisynth.org/mediawiki/WriteFile
http://avisynth.org/mediawiki/ConditionalFilter
http://avisynth.org/mediawiki/Import

e.g.

Code:
Import("MYAVS.avs")
filename = "info.txt"
WriteFile(filename, """ "Width: " """, "width")
WriteFile(filename, """ "Frames: " """, "FrameCount")
You could execute this in a batch file using say Vdub. It would create a textfile with the info.

Last edited by AlanHK; 28th February 2009 at 06:10.
AlanHK is offline   Reply With Quote
Old 1st March 2009, 13:26   #25  |  Link
Gavino
Avisynth language lover
 
Join Date: Dec 2007
Location: Spain
Posts: 3,431
Quote:
Originally Posted by AlanHK View Post
Code:
Import("MYAVS.avs")
filename = "info.txt"
WriteFile(filename, """ "Width: " """, "width")
WriteFile(filename, """ "Frames: " """, "FrameCount")
You don't want to use WriteFile here, as it will repeat the information for every frame.
Use WriteFileStart instead, as the data you want are video, not frame, properties.

To get video duration, use
Code:
WriteFileStart(filename, """ "Duration (secs): " """, "FrameCount/FrameRate")
Gavino is offline   Reply With Quote
Old 1st March 2009, 17:59   #26  |  Link
AlanHK
Registered User
 
Join Date: May 2006
Posts: 237
Quote:
Originally Posted by Gavino View Post
You don't want to use WriteFile here, as it will repeat the information for every frame.
I tested it in VDub, which just sits at frame zero if you don't press "play". So it worked in that case. But in general, you're right.
AlanHK is offline   Reply With Quote
Old 3rd March 2009, 20:00   #27  |  Link
Zortag
Registered User
 
Join Date: Oct 2005
Location: Maryland, USA
Posts: 2
AVS Info

Gavino, AlanHK, thanks. I had known about the "WriteFileStart" command but had not really played around with it, as I had thought that once I had opened VDub, I would then have to manually close it up again. Basically, I've got a bunch of AVS files in a directory and would like to get general video information from them. But I did find that if get_info.avs is ...
Code:
Import("source.AVS")
filename = "info.txt"
WriteFileStart(filename, """ "Duration (secs): " """, "FrameCount/FrameRate")
then
Code:
VirtualDub /x  get_info.avs
will, indeed, open VDub for just a moment before closing down automatically, and the info.txt file is created. Leaving merely the issue of generating a batch procedure "bundle" the various "source.AVS" files.
I thank you for the help, it has gotten me a lot farther down the road toward what I would realy like to see, which would be a command-line utility that writes to STDOUT, so that it's output could be redirected.
Zortag is offline   Reply With Quote
Old 2nd December 2009, 07:05   #28  |  Link
yup
Registered User
 
Join Date: Feb 2003
Location: Russia, Moscow
Posts: 854
Hi folk!
Who try this:
http://avs2raw.com/
yup.
yup is offline   Reply With Quote
Old 2nd December 2009, 10:29   #29  |  Link
buzzqw
HDConvertToX author
 
Join Date: Nov 2003
Location: Cesena,Italy
Posts: 6,552
Quote:
Originally Posted by yup View Post
Hi folk!
Who try this:
http://avs2raw.com/
yup.
not freeware

and the same result could be get with avisynth_mt + avs2yuv

BHH
__________________
HDConvertToX: your tool for BD backup
MultiX264: The quick gui for x264
AutoMen: The Mencoder GUI
AutoWebM: supporting WebM/VP8
buzzqw is offline   Reply With Quote
Old 11th January 2010, 07:39   #30  |  Link
AlanHK
Registered User
 
Join Date: May 2006
Posts: 237
Apply Replaygain to AVS

A batch script using Wavi and a modified version of Wavegain to apply Replaygain to an AVS file, by adding an AmplifydB line:

Code:
@echo off
::AVSGain: apply Replaygain to AVS files

if %1X==X goto ALL

:LOOP
for %%I in (%1) do (
echo Applying replaygain to %%I
echo.>>%%~fsI
wavi %%I - | wavegain2 - -e echo AmplifydB^(%%TRACK_GAIN%%^) ^>^> %%~fsI
)
SHIFT
@if %1X==X goto END
@goto LOOP

:ALL
for /f "delims=" %%I in ('dir *.avs /b') do  (
echo Applying replaygain to %%I
echo.>>%%~fsI
wavi %%I - | wavegain2 - -e echo AmplifydB^(%%TRACK_GAIN%%^) ^>^> %%~fsI
)

:END
This pipes the audio output (must be one or two channel) from an AVS file through Wavegain, which calculates the Replaygain, and this adjustment is then pasted onto the end of the AVS file.
The original version of Wavegain doesn't work properly with piped input, the modded version fixes this.
Wavegain and Wavi must be in the search path, or give the full path to each executable.

I don't use spaces in my filenames, you may need to wrap the filenames in quotes if you do.

Last edited by AlanHK; 17th January 2010 at 18:51.
AlanHK is offline   Reply With Quote
Old 18th April 2013, 17:16   #31  |  Link
Instructor
Registered User
 
Join Date: Mar 2013
Posts: 6
BatchWizardMod - application that generate a special template from a VirtualDub/AviSynth script
file and apply this template for any number of specified files.

For VirtualDub - creates one script that process all specified files.
For AviSynth - creates .avs for each specified file.

BatchWizardMod
Instructor is offline   Reply With Quote
Old 15th December 2014, 09:45   #32  |  Link
gmag11
Registered User
 
Join Date: Jun 2007
Posts: 1
AVFS and Pismo file mount

http://www.turtlewar.org/avfs/

Nice tool that allows mount a virtual folder with uncompressed avi and wav files that resul from avs file interpretation.
gmag11 is offline   Reply With Quote
Old 15th December 2014, 22:03   #33  |  Link
StainlessS
HeartlessS Usurer
 
StainlessS's Avatar
 
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
Avisynthesizer_MOD batch creator: http://forum.doom9.org/showthread.php?t=166820

A SendTo App that allows Windows Explorer selection of video files and fills in a user supplied Template with the filenames.
Can concatenate (join/splice) selected files (default as original non mod version) and create a single output AVS file OR,
batch create multiple AVS files, one for each input source file (MOD version only).
Has a GUI to select required template and sort input files if multiple input files selected.

Dont miss the above previous post "AVFS and Pismo file mount" also posted today.
__________________
I sometimes post sober.
StainlessS@MediaFire ::: AND/OR ::: StainlessS@SendSpace

"Some infinities are bigger than other infinities", but how many of them are infinitely bigger ???

Last edited by StainlessS; 15th December 2014 at 23:22.
StainlessS is offline   Reply With Quote
Old 22nd May 2020, 20:50   #34  |  Link
Lirk
Registered User
 
Join Date: Jan 2018
Posts: 33
AVISYNTH-BATCH.zip (required FFmpeg) at https://www.mediafire.com/folder/wrpd1f5ayoavb/SHARED . Edit TEMPLATE-1.txt and TEMPLATE-2.txt, drag and drop mediafile or folder on "generate-avs-encode-drag-and-drop.bat" script and encoding will start.
Lirk is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 10:45.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.