Quantcast Avisynth: Optimal Script for AVI DV Source? - digitalFAQ.com Forums [Archives]
Go Back    digitalFAQ.com Forums [Archives] > Video Production Forums > Avisynth Scripting

Reply
 
LinkBack Thread Tools
  #1  
09-16-2003, 03:50 PM
someguy someguy is offline
Free Member
 
Join Date: Sep 2003
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Hi all,

-I am looking for a good avisynth script to convert my camcorder DV AVI files, to burn them to CD, DVD...
Which script am I supposed to use for that purpose?

-Do you recommend the "KVCD Official Specifications" for such captures?

Thanks alot,
Al.
Reply With Quote
Someday, 12:01 PM
admin's Avatar
Site Staff / Ad Manager
 
Join Date: Dec 2002
Posts: 42
Thanks: ∞
Thanked 42 Times in 42 Posts
  #2  
02-13-2004, 03:33 PM
someguy someguy is offline
Free Member
 
Join Date: Sep 2003
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
*bump*
Reply With Quote
  #3  
02-13-2004, 07:45 PM
Dialhot Dialhot is offline
Free Member
 
Join Date: May 2003
Posts: 10,463
Thanks: 0
Thanked 0 Times in 0 Posts
DV are clean source, more than DVD ! So you can use the MA script on these.
Reply With Quote
  #4  
02-14-2004, 01:28 AM
BobNET BobNET is offline
Free Member
 
Join Date: Sep 2003
Location: Ontario, Canada
Posts: 67
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to BobNET
Quote:
Originally Posted by Dialhot
DV are clean source, more than DVD !
Theoretically, at least... some cameras can still produce noisy output due to a poor CCD and/or lighting conditions (my Canon ZR40 is one, but it's having sound problems now too, so this may be my particular unit and not typical for all Canon camcorders).

And in NTSC-land the output will be 29.97fps interlaced video. This is probably okay for KDVD (unless you want to fit a lot on one disc), but for KVCD you'll want to convert to 24fps as in this article.
__________________
--
Chris "Bob" Odorjan
Reply With Quote
  #5  
02-14-2004, 04:04 PM
Icarus3000 Icarus3000 is offline
Free Member
 
Join Date: Feb 2003
Posts: 258
Thanks: 0
Thanked 0 Times in 0 Posts
In my personal experience, I have found that Dialhot's AVI script works better for DV sources, with the addition of deinterlacing and the 60i to 24p function.

This is what I use, but am open to suggestions of something better!

Quote:
import ("C:\scripts\convert60ito24p.avs")
Sourcefile="D:\My Documents\My Videos\DV.avi"

avisource(Sourcefile)

#
# Great filter for adding the DV Time Stamp!!
#
#DVAutoTimeStamp(Sourcefile,20,450,360,-1,"Arial",44,$00FFFFFF,$00000000,86400,125,"MMMM dd, yyyy",1)
##

SmoothDeinterlace(tff=false, doublerate=true, blend=false)
convert60ito24p(2,0)

converttoyv12()
BlindPP(cpu=4)

Blockbuster(method="noise",detail_min=1,detail_max =3,variance=0.1,seed=1)
Convolution3D(1, 6, 12, 6, 8, 2.8, 0)

GripCrop(544, 480, overscan=2, source_anamorphic=false)
GripSize(resizer="LanczosResize")
Undot()
TemporalSoften(2,7,7,3,2)
DCTFilter(1,1,1,1,1,1,0.5,0)
#Blockbuster(method="noise",detail_min=1,detail_ma x=10,variance=0.3,seed=5623)#only in worst case
GripBorders()
converttorgb()
# END
And the Convert60ito24p function:

Quote:
function convert60ito24p (clip video, int mode, int offset)
{
work = assumefieldbased(video)

out =(mode==3) ? interleave(
\selectevery(
\layer(trim(work, 1, 0),
\layer(work, trim(work, 2, 0), "fast"),
\"fast"), 5, 0 + offset),
\selectevery(
\layer(
\layer(work, trim(work, 3, 0),"fast"),
\layer(trim(work, 2, 0), trim(work, 1, 0),"fast"),
\level = 170), 5, 2 + offset)) :

\ (mode==2) ? interleave(
\selectevery(
\layer(trim(work, 1, 0),
\layer(work, trim(work, 2, 0), "fast"),
\"fast"), 5, 0 + offset),
\selectevery(
\layer(work, trim(work, 1, 0), "fast"), 5, 3 + offset)) :

\ (mode==1) ? interleave(
\selectevery(trim(work, 1, 0), 5, 0 + offset),
\selectevery(layer(work, trim(work, 1, 0), "fast"), 5, 3 + offset)) :

\ (mode==0) ? selectevery(work, 5, 1 + offset, 4 + offset) : work

assumeframebased(out)
}

# usage:
# import (convert60ito24p.avs)
# loadplugin(your 60fps deinterlacer like dgbob or tomsbob)
# xxxsource("clip")
# your60fpsdeinterlacer()
# convert60ito24p(2,0)

# mode - parameter:
#------------------
# 0 uses simple 24 out of 60 selection -> jerky motion
#
# A B C D E F G H I J K L M N O P Q R <- input sequence
# | | | | | | | <- | = direct copy
# 1 2 3 4 5 6 7 <- resulting output sequence
#
# 1 introduces a blending of every other frame from its nearest neighbors
#
# A B C D E F G H I J K L M N O P Q R <- input sequence
# | \ / | \ / | \ / | <- | = direct copy ; \ / = 50:50 blending
# 1 2 3 4 5 6 7 <- resulting output sequence
#
# this mode delivers a non-jerky motion and should be used with shutter speeds below 1/60sec!
# ie. 1/120 or shorter
#
# 2 uses blening on every frame like this:
#
# A B C D E F G H I J K L M N O P Q R <- input sequence
# \|/ \ / \|/ \ / \|/ \ / \|/ <- \|/ = 25:50:25 blending ; \ / = 50:50 blending
# 1 2 3 4 5 6 7 <- resulting output sequence
#
# mode 2 is ideal for shutter speed of 1/60 sec
# since it simulates very close the 24p (1/24sec) motion blur
# and thus giving a really smooth 24p - motion
# as a positive side-effect, this mode reduces noise and nearly comletely
# eliminates remained line flickering of the deinterlacing!
#
# every other number given to mode delivers the the input directly to the output (60fps)

# offset - parameter:
#--------------------
# here you can apply a offset for selecting the 2 out of 5 frames - pattern.

- Icarus
Reply With Quote
  #6  
02-17-2004, 04:24 AM
Peter1234 Peter1234 is offline
Free Member
 
Join Date: Feb 2003
Posts: 237
Thanks: 0
Thanked 0 Times in 0 Posts
Icarus3000,
Thanks for posting the Convert60ito24p function. It blurs some frames but I think the overall video quality is better than using TMPGEnc to do the conversion and the encoding is 40% faster with your function than with TMPGEnc. The resulting files are also slightly smaller for the same CQ settings. Very nice.
Peter1234
Reply With Quote
Reply




Similar Threads
Thread Thread Starter Forum Replies Last Post
Optimal script et source en 4/3 Wolverine7 Conversion et d'Encodage de Vidéo (Français) 2 04-02-2004 12:05 PM
Avisynth: Mmx optimal script? SlowlyGoingInsane Avisynth Scripting 1 03-10-2004 05:11 AM
Avisynth: Interlaced Source Optimal Script? Anonymous Avisynth Scripting 4 09-08-2003 06:03 AM
Avisynth: Difference between MA script and optimal script? mistermickster Avisynth Scripting 2 08-01-2003 09:36 AM
Avisynth: New optimal script for AVS 2.52 Dialhot Avisynth Scripting 3 06-14-2003 12:17 PM




 
All times are GMT -5. The time now is 03:12 PM  —  vBulletin © Jelsoft Enterprises Ltd