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 23rd November 2009, 02:19   #1  |  Link
chameleon
Registered User
 
Join Date: Oct 2006
Posts: 1
source: avi -> target: bmp

I am totally new to avisynth.

Can write a script which converts VIDEO.AVI (any encoding) to a sequence of BMP files? (FILE00001.BMP FILE00002.BMP etc)
chameleon is offline   Reply With Quote
Old 23rd November 2009, 10:25   #2  |  Link
Leak
ffdshow/AviSynth wrangler
 
Leak's Avatar
 
Join Date: Feb 2003
Location: Austria
Posts: 2,441
Quote:
Originally Posted by chameleon View Post
Can write a script which converts VIDEO.AVI (any encoding) to a sequence of BMP files? (FILE00001.BMP FILE00002.BMP etc)
While the answer is mostly yes you're probably better off with a program like VirtualDub that supports creating image files from a video (or AviSynth script, in this case), since even if you use AviSynth's ImageWriter plugin you'd still have to play the whole movie anyway to get AviSynth to process all frames...
__________________
now playing: [artist] - [track] ([album])
Leak is offline   Reply With Quote
Old 23rd November 2009, 11:02   #3  |  Link
smok3
brontosaurusrex
 
smok3's Avatar
 
Join Date: Oct 2001
Posts: 2,373
targa example for virtualdub

vdubtga.bat (a bit ugly, since it renames the original file temporarily):

Code:
rem purpose - to transcode any avi into targa sequence


@ECHO OFF


rem edit the path to video script file here:
echo ------------------------------------ vdub video to targa seq
:: strip .avi from original file
rename "%1" "%~n1"

:: make subdir
md %~p1%~n1_dir

:: vdub
@vdub /i "t:\path\vdubtarga.script" "%~n1" "%~p1%~n1.tga"

:: add avi back to original file
rename "%~n1" "%~n1.avi"

:: move targas to subdir
move %~n1*.tga %~p1%~n1_dir
t:\path\vdubtarga.script :

Code:
VirtualDub.Open(VirtualDub.params[0]);
VirtualDub.audio.SetSource(0);
VirtualDub.audio.SetInterleave(1,500,1,0,0);
VirtualDub.audio.SetClipMode(1,1);
VirtualDub.audio.SetConversion(0,0,0,0,0);
VirtualDub.audio.SetVolume();
VirtualDub.audio.SetCompression();
VirtualDub.audio.EnableFilterGraph(0);
VirtualDub.video.SetInputFormat(0);
VirtualDub.video.SetOutputFormat(7);
VirtualDub.video.SetMode(3);
VirtualDub.video.SetFrameRate(0,1);
VirtualDub.video.SetIVTC(0,0,-1,0);
VirtualDub.video.SetRange(0,0);
VirtualDub.video.SetCompression();
VirtualDub.video.filters.Clear();
VirtualDub.audio.filters.Clear();


VirtualDub.SaveImageSequence(VirtualDub.params[0], ".tga", 4, 1, 95);

VirtualDub.Close();
__________________
certain other member
smok3 is offline   Reply With Quote
Old 2nd December 2009, 15:03   #4  |  Link
Mounir
Registered User
 
Join Date: Nov 2006
Posts: 694
More precisely, you need virtualdub mpeg2 which handle images sequences correctly, especially for Export.
Otherwise, you may have to rename manually or with a tool like "batch rename" in photoshop (bridge) which takes time and probably (lot of) space.
Mounir is offline   Reply With Quote
Old 2nd December 2009, 17:19   #5  |  Link
davidhorman
I'm the Doctor
 
Join Date: Jan 2004
Posts: 1,312
Quote:
More precisely, you need virtualdub mpeg2 which handle images sequences correctly
In what way does regular VirtualDub handle them incorrectly?

David
davidhorman is offline   Reply With Quote
Old 3rd December 2009, 01:43   #6  |  Link
Mounir
Registered User
 
Join Date: Nov 2006
Posts: 694
I don't use vdub but vdub mod and vdub mpeg2 actually.If vdub has an option like vdub mpeg2 "minimum number digits"(set it to 4) it's cool otherwise use vdub mpeg2. Discard this friendly advice if you don't work with photoshop/paintshop tho.
Mounir 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 13:51.


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