Log in

View Full Version : .avs as input and .avi as output?


salman1
22nd June 2007, 20:08
HI, i want to make .avi file. without using megui, virtualdub, gordian knot. i have .avs file. i m looking for software that takes .avs as input and output as .avi with the bitrate i choose in xvid codec? Thanks a lot.

here is my script that i want to do avi. (2 CD) tell me anything that u think is right or it might need to change. tell me what is slowing down my speed as well. Thanks a lot. also i want to remove duplicate frames. likes ghost frames. how do i do that? Thanks...


DGDecode_mpeg2source("My source was here",cpu=4,info=3)
ColorMatrix(hints=true)
edeintted = AssumeTFF().SeparateFields().SelectEven().EEDI2(field=-1)
tdeintted = TDeint(edeint=edeintted,order=1)
tfm(order=1,clip2=tdeintted).tdecimate(hybrid=3)
crop( 8, 0, -4, -2)
Lanczos4Resize(640,480) # Lanczos4 (Sharp)
removeblend() #remove ghost and duplicate frames
removedirt() #remove mess,dirt, and dust
removegrain(mode=17) # Heavy Noise
tweak(sat=0.75)
limitedsharpenfaster()

J_Darnley
23rd June 2007, 00:29
ffmpeg supports AviSynth input and encoding with xvid (if built with them both). The builds by celtic_druid (http://celticdruid.no-ip.com/xvid/) are built with them. And of course xvid_encraw also supports AviSynth input. celtic_druid also has xvid builds. You might find xvid_encraw a little easier to use as all the options will apply to xvid. I have found ffmpeg's options to be slightly bizarre.

About your script, using EEDI in the deinterlacing will be extremely slow. It will be slow no matter what software you use, encoding at the same time will just make it slower. 2 pass would be absolutely pointless, your CPU would spend twice as much time on EEDI. You could create a temporary lossless file to then do the final encode from.
Also, LSF has an output resize so I might suggest that you remove the Lanczos resize and then change the LSF to limitedsharpenfaster(dest_x=640, dest_y=480).. The it wont be resized three times, only two. Slight disclaimer: my copy of LSF has the dest size and default supersampling.
Dedup will remove all dups, within a given threshold, and then supply a timecodes file to allow the use of VFR. I have no knowledge of if or how it can be used with AVI. [EDIT] Hang on, by ghost frames you you mean blended frames? I don't know of removeblend() but I guess that would remove these blends.

MuLTiTaSK
23rd June 2007, 00:37
this might be what your looking for

avs2qxvid.bat [AVS to Quality XviD]
http://forum.doom9.org/showthread.php?t=119500

salman1
23rd June 2007, 00:54
ffmpeg supports AviSynth input and encoding with xvid (if built with them both). The builds by celtic_druid (http://celticdruid.no-ip.com/xvid/) are built with them. And of course xvid_encraw also supports AviSynth input. celtic_druid also has xvid builds. You might find xvid_encraw a little easier to use as all the options will apply to xvid. I have found ffmpeg's options to be slightly bizarre.

About your script, using EEDI in the deinterlacing will be extremely slow. It will be slow no matter what software you use, encoding at the same time will just make it slower. 2 pass would be absolutely pointless, your CPU would spend twice as much time on EEDI. You could create a temporary lossless file to then do the final encode from.
Also, LSF has an output resize so I might suggest that you remove the Lanczos resize and then change the LSF to limitedsharpenfaster(dest_x=640, dest_y=480).. The it wont be resized three times, only two. Slight disclaimer: my copy of LSF has the dest size and default supersampling.
Dedup will remove all dups, within a given threshold, and then supply a timecodes file to allow the use of VFR. I have no knowledge of if or how it can be used with AVI. [EDIT] Hang on, by ghost frames you you mean blended frames? I don't know of removeblend() but I guess that would remove these blends.

awesome explanation. Thanks a lot......

is this right:


DGDecode_mpeg2source("My source was here",cpu=4,info=3)
ColorMatrix(hints=true)
edeintted = AssumeTFF().SeparateFields().SelectEven().EEDI2(field=-1)
tdeintted = TDeint(edeint=edeintted,order=1)
tfm(order=1,clip2=tdeintted).tdecimate(hybrid=3)
crop( 8, 0, -4, -2)
limitedsharpenfaster(dest_x=640, dest_y=480)
removeblend() #remove ghost and duplicate frames
removedirt() #remove mess,dirt, and dust
removegrain(mode=17) # Heavy Noise
tweak(sat=0.75)

or is this right way to use:


DGDecode_mpeg2source("My source was here",cpu=4,info=3)
ColorMatrix(hints=true)
edeintted = AssumeTFF().SeparateFields().SelectEven().EEDI2(field=-1)
tdeintted = TDeint(edeint=edeintted,order=1)
tfm(order=1,clip2=tdeintted).tdecimate(hybrid=3)
crop( 8, 0, -4, -2)
removeblend() #remove ghost and duplicate frames
removedirt() #remove mess,dirt, and dust
removegrain(mode=17) # Heavy Noise
tweak(sat=0.75)
limitedsharpenfaster(dest_x=640, dest_y=480)


can i get downlaod link for Dedup. Again Thanks a lot...

salman1
23rd June 2007, 00:55
this might be what your looking for

avs2qxvid.bat [AVS to Quality XviD]
http://forum.doom9.org/showthread.php?t=119500

yes i was looking for that. Thanks a lot.......

Edit: how would i set the size of file i want to make using this batch file

salman1
23rd June 2007, 01:27
look at reply #4 because i edited that reply. and tell me which one should i use. look at limitedsharpenfaster and u will see what i am trying to say. Many Thanks...

Edit: is limitedsharpenfaster(dest_x=640, dest_y=480) produce sharp print? (in your opinion)

Guest
23rd June 2007, 01:58
look at reply #4 because i edited that reply. and tell me which one should i use. look at limitedsharpenfaster and u will see what i am trying to say. Many Thanks... Try it both ways and decide for yourself which you prefer.

Edit: is limitedsharpenfaster(dest_x=640, dest_y=480) produce sharp print? (in your opinion) Your phrase "sharp print" is meaningless. Yes, may people like limitedsharpenfaster(). Why don't you try it and decide for yourself whether you like its effect?

salman1
23rd June 2007, 02:16
Ok neurons2. Thanks a lot