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 June 2005, 22:21   #1  |  Link
mg262
Clouded
 
mg262's Avatar
 
Join Date: Jul 2003
Location: Cambridge, UK
Posts: 1,148
List of command-line and batch utilities for AVISynth (and a few discussions)

I collated this for my own purposes but it might prove useful to someone else...

http://forum.doom9.org/showthread.php?t=50060
http://forum.doom9.org/showthread.php?t=70882 (AVS2WAV)
http://forum.doom9.org/showthread.php?t=71493 (AVS2AVI)
http://forum.doom9.org/showthread.php?t=73709
http://forum.doom9.org/showthread.php?t=74899 (avsutil - commandline player w/o video output - link broken?)
http://forum.doom9.org/showthread.php?t=75610 (Adding lines to many .AVSs)
http://forum.doom9.org/showthread.php?t=79259 (notes on command prompt)
http://jonny.leffe.dnsalias.com/ (Enc - encoder with commandline mode)
http://sourceforge.net/projects/avsbatches (Project: AVISynth BatchScripting)
http://tangentsoft.net/video/asynther/ (AVISynthesizer - build Avisynth scripts based on predefined templates)
http://www.avisynth.org/BatchScripting (Web-based batch .AVS generation)
http://www.blainehelmick.com/AVS2DVD/ (A batch file; references other useful commandline tools)
http://forum.doom9.org/showthread.php?t=98648 (ScriptWriter - batch script creation)
http://forum.doom9.org/showthread.php?t=98469 (xvid_encraw_avs)
http://forum.doom9.org/showthread.php?t=92120 (AVSAmp - calculate audio normalisation factor)
Avisynth Batch Scripter (by Steven van Cauter): discussion.

Last edited by Wilbert; 23rd July 2006 at 12:01.
mg262 is offline   Reply With Quote
Old 26th June 2005, 22:54   #2  |  Link
Pookie
Registered User
 
Join Date: Apr 2005
Posts: 1,339
Thanks very much. I much prefer command line apps
Pookie is offline   Reply With Quote
Old 27th June 2005, 02:03   #3  |  Link
stickboy
AviSynth Enthusiast
 
Join Date: Jul 2002
Location: California, U.S.
Posts: 1,267
Here is yet another thread about generating multiple AVS files from a directory list:
http://forum.doom9.org/showthread.php?p=520674
stickboy is offline   Reply With Quote
Old 27th June 2005, 09:36   #4  |  Link
Wilbert
Moderator
 
Join Date: Nov 2001
Location: Netherlands
Posts: 6,364
Thx for the list! I will clean it up one day, and perhaps merge it into one of the other stickies.
Wilbert is offline   Reply With Quote
Old 29th June 2005, 12:37   #5  |  Link
mg262
Clouded
 
mg262's Avatar
 
Join Date: Jul 2003
Location: Cambridge, UK
Posts: 1,148
I'm flattered but if I had thought it might become a sticky I would have taken a lot more care over it! Please do feel free to change/move it however you like. I don't want to fiddle with it now that it sticky, but there are couple of things worth noting:

- The one I unhhelpfully labelled "(notes on command prompt)" is the one @stickboy refers to, and it's about using the command prompt to generate multiple .AVSs.

- In thread number 73709 someone asks about batch encoding .AVS files to .MP2, but it's really a TMpgEnc answer rather than a AVISynth one, so I'm not sure how relevant it is to this list.

OTOH there are some batch/commandline operations that aren't to do with AVISynth but would be used repeatedly with it. I have just looked up/got to work the command line syntax for getting VirtualDub to run AVS->AVI. (It allows you to run a batch job with each instance loading a new copy of VirtualDub, which is useful for filters which don't like VirtualDub's own batch mode.) So I might dump something on that into a separate thread if it sounds useful...
mg262 is offline   Reply With Quote
Old 12th October 2005, 17:56   #6  |  Link
makoto916
Registered User
 
Join Date: Apr 2004
Posts: 45
I've updated the batch page at http://www.blainehelmick.com/AVS2DVD/ to include the newst version 0.61 of QuENC and subsequently removed several apps that QuENC now replaces.
makoto916 is offline   Reply With Quote
Old 13th October 2005, 12:04   #7  |  Link
Yuri Khan
Registered User
 
Yuri Khan's Avatar
 
Join Date: Mar 2004
Location: Novosibirsk, Russia
Posts: 27
Why don’t you include the thread on xvid_encraw_avs?
Yuri Khan is offline   Reply With Quote
Old 30th October 2005, 13:17   #8  |  Link
Moitah
Registered User
 
Join Date: Feb 2004
Location: Virginia, USA
Posts: 334
How about AVSAmp?
__________________
moitah.net
Moitah is offline   Reply With Quote
Old 29th November 2005, 22:58   #9  |  Link
Fizick
AviSynth plugger
 
Fizick's Avatar
 
Join Date: Nov 2003
Location: Russia
Posts: 2,183
Recently I found (rather old) AVS2AVI Wrapper v0.3, by HMage.
http://hmd.c58.ru/files.html
It creates fake avi like VFAPI, MakeAvis.
The name is the the same as AVS2AVI by Moitah, but it is other program

It is probably off-topic here, but where to i must post it?

Last edited by Fizick; 29th November 2005 at 23:02.
Fizick is offline   Reply With Quote
Old 2nd December 2005, 15:08   #10  |  Link
mg262
Clouded
 
mg262's Avatar
 
Join Date: Jul 2003
Location: Cambridge, UK
Posts: 1,148
You could ask Wilbert to assimilate it into the appropriate FAQ?
__________________
a.k.a. Clouded. Come and help by making sure your favourite AVISynth filters and scripts are listed.
mg262 is offline   Reply With Quote
Old 2nd December 2005, 15:33   #11  |  Link
Wilbert
Moderator
 
Join Date: Nov 2001
Location: Netherlands
Posts: 6,364
I will do that one day
Wilbert is offline   Reply With Quote
Old 8th April 2006, 12:22   #12  |  Link
tin3tin
Registered User
 
tin3tin's Avatar
 
Join Date: Mar 2005
Posts: 366
Avi2swf.exe from SWFTools will convert avs files into flash swf files. Everything works well as long as the avs files are with out sound, but with sound it generates a working file(with sound), but produces an error in the end of the file and hangs. I dunno what is causing this?

Get avi2swf from here:www.swftools.org

On avi2swf.exe: avi2swf
__________________
DVD slideshow GUI(Freeware).

Last edited by tin3tin; 8th April 2006 at 12:25.
tin3tin is offline   Reply With Quote
Old 18th January 2008, 18:52   #13  |  Link
AlanHK
Registered User
 
Join Date: May 2006
Posts: 237
WAVI - save WAV from AVI/AVS
http://sourceforge.net/projects/wavi-avi2wav

(Different from AVS2WAV)

I use a batch file with this to make AC3 at 128kb:

Code:
@echo avs2ac3 avsfile.avs
@echo audio from avs files and convert to AC3
@echo uses wavi and ffmpeg

@if %1X==X goto ALL

:LOOP
for %%I in (%1) do (
wavi %%I %%~nI.wav
p:\ffmpeggui\ffmpeg -i %%~nI.wav  -ab 128 -ar 48000 -ac 2 -acodec ac3 -y %%~nI.ac3
del %%~nI.wav
)

SHIFT
@if %1X==X goto END
@goto LOOP

:ALL
for %%I in (*.avs) do (
wavi %%I %%~nI.wav
p:\ffmpeggui\ffmpeg -i %%~nI.wav  -ab 128 -ar 48000 -ac 2 -acodec ac3 -y %%~nI.ac3
del %%~nI.wav
)

:END
Note the options for ffmpeg depend on which version you use.
The version I use came with ffmpeggui.
AlanHK is offline   Reply With Quote
Old 19th January 2008, 04:25   #14  |  Link
tebasuna51
Moderator
 
tebasuna51's Avatar
 
Join Date: Feb 2005
Location: Spain
Posts: 6,890
Quote:
Originally Posted by AlanHK View Post
WAVI - save WAV from AVI/AVS
...
I use a batch file with this to make AC3 at 128kb:
...
Note the options for ffmpeg depend on which version you use.
The version I use came with ffmpeggui.
You don't need intermediate wav files if you 'pipe' the wavi stdout to stdin aften encoder:

wavi x.avs - | aften - x.ac3
tebasuna51 is offline   Reply With Quote
Old 19th January 2008, 06:22   #15  |  Link
AlanHK
Registered User
 
Join Date: May 2006
Posts: 237
Quote:
Originally Posted by tebasuna51 View Post
You don't need intermediate wav files if you 'pipe' the wavi stdout to stdin aften encoder:

wavi x.avs - | aften - x.ac3
Thanks, obviously much simpler.

I looked at the docs for ffmpeg and couldn't see if it accepted std input, though there probably is a way.
AlanHK is offline   Reply With Quote
Old 19th January 2008, 14:10   #16  |  Link
tebasuna51
Moderator
 
tebasuna51's Avatar
 
Join Date: Feb 2005
Location: Spain
Posts: 6,890
Quote:
Originally Posted by AlanHK View Post
Thanks, obviously much simpler.

I looked at the docs for ffmpeg and couldn't see if it accepted std input, though there probably is a way.
And fast, you don't need write to disk the big wav files.

To encode ac3 Aften, by Justin Ruggles (Justin also maintain the ac3 part in ffmpeg), is more optimized and versatile (accept many more parameters).

Also ffmpeg problems solved with Aften:

- The multichannel encode (5.1) is wrong mapped with ffmpeg.
- The 32-float samples (a common format after audio process with AviSynth) are not supported by ffmpeg.

There are also many ffmpeg versions with different behaviour about STDIN and input parameters (-ab 192 / -ab 192000).

Last edited by tebasuna51; 19th January 2008 at 14:21.
tebasuna51 is offline   Reply With Quote
Old 27th August 2008, 08:44   #17  |  Link
yup
Registered User
 
Join Date: Feb 2003
Location: Russia, Moscow
Posts: 854
Hi all!
I have problem with wavi. My avi file is analog capture in VirtualDub 1.8.1 video huffyuv, audio PCM 48 kHz. I get error
Quote:
F:\Video\Jakob>wavi film.avi film.wav
Found PCM audio: 2 channels, 48000 Hz, 16 bits, 5343.840000 seconds.
Writing WAV file "film.wav"...
Error: Could not read audio data from "film.avi".
In VirtualDub I can save wav file without problem.
Please advice.
yup.

Last edited by yup; 27th August 2008 at 08:50.
yup is offline   Reply With Quote
Old 27th August 2008, 09:38   #18  |  Link
AlanHK
Registered User
 
Join Date: May 2006
Posts: 237
Quote:
Originally Posted by yup View Post
I have problem with wavi. My avi file is analog capture in VirtualDub 1.8.1 video huffyuv, audio PCM 48 kHz. I get error
Wavi only understands simple wave audio.

Most AVIs have some kind of compressed audio.

Normally use WAVI on an AVS script, then Avisynth will convert to wave audio which wavi can output or stream.

Assuming you have Avisynth installed,
Make an AVS, eg film.avs, in the same folder as film.avi, with one line:
AVISource("film.avi")

then run:
wavi film.avs film.wav

Last edited by AlanHK; 27th August 2008 at 09:40.
AlanHK is offline   Reply With Quote
Old 29th August 2008, 08:02   #19  |  Link
yup
Registered User
 
Join Date: Feb 2003
Location: Russia, Moscow
Posts: 854
AlanHK!

If using avs scrip all work fine.
yup.
yup is offline   Reply With Quote
Old 16th September 2008, 20:59   #20  |  Link
nicoDid
Registered User
 
Join Date: Sep 2008
Posts: 2
Quote:
Originally Posted by Fizick View Post
Recently I found (rather old) AVS2AVI Wrapper v0.3, by HMage.
http://hmd.c58.ru/files.html
It creates fake avi like VFAPI, MakeAvis.
The name is the the same as AVS2AVI by Moitah, but it is other program

It is probably off-topic here, but where to i must post it?
Hi everybody, I'm new to this board.

I see the avs2avi wrapper has been mentioned in this thread, could anybody here please suggest how to modify the installation procedure (maybe the .inf) in order to have the codec successfully registered in Win x64 (XP or Vista)?

I found on the web quite simple instructions for installing VFAPI in Win x64 and they worked just fine.

I tried doing something similar for the avs2avi wrapper with no success (ok the contextual menu and wrapper avi generation, but apparently the codec doesn't get registered so no decompressor appears to be available).

Thanks a lot for any advice.
nicoDid 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 14:53.


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