Quantcast Fields to Frames and Telecine with Avisynth? - Page 2 - digitalFAQ.com Forums [Archives]
  #21  
07-19-2002, 10:55 PM
kwag kwag is offline
Free Member
 
Join Date: Apr 2002
Location: Puerto Rico, USA
Posts: 13,537
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by The Alvinator
Hehehehe

Ever since I found out how useful this little jewel was, I can't get enough of it!

Now that I pretty much memorized the reference manual, I don't think I'll be asking any more questions about AVISynth...

thanks kwag.
Now I'm going to be asking you questions when I get my DigiCam

-kwag
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
  #22  
08-01-2002, 09:32 PM
Moat Moat is offline
Free Member
 
Join Date: Jul 2002
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Alvinator,

Can I get your current avs script. I am trying to do about the same thing you are but I am not getting good results. I have tried some of the deinterlacers out there. decomb.dll FieldDeinterlace() with not so good results. Any help would be great.

-Shawn
Reply With Quote
  #23  
08-02-2002, 06:03 PM
The Alvinator The Alvinator is offline
Free Member
 
Join Date: Jul 2002
Location: 2 hours away from San Fran CALI
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to The Alvinator Send a message via MSN to The Alvinator
Moat: I replied to your PM.
Reply With Quote
  #24  
08-16-2002, 04:40 PM
Sergeiv Sergeiv is offline
Invalid Email / Banned / Spammer
 
Join Date: Aug 2002
Location: Monterrey Mexico
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
Congrats to the whole KVCD community, specially to KWAG, great work!
This is my first post!

@Alvinator:

Could you post the AVS script to do that, Im trying to do the same but im not getting good results, the video plays unsmootly, as if it had missing frames or something wrong... Thanks in advance
Reply With Quote
  #25  
08-19-2002, 05:12 PM
Sergeiv Sergeiv is offline
Invalid Email / Banned / Spammer
 
Join Date: Aug 2002
Location: Monterrey Mexico
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
Hi,

Just a question related with the framerate conversion and avisynth scripts..

It worth the effort to convert from 29.97 to 24 fps in order to make my resulting project smaller using the NTSCFilm KVCD templates?

Regards to everyone,
Reply With Quote
  #26  
08-19-2002, 07:31 PM
kwag kwag is offline
Free Member
 
Join Date: Apr 2002
Location: Puerto Rico, USA
Posts: 13,537
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by Sergeiv
Hi,

Just a question related with the framerate conversion and avisynth scripts..

It worth the effort to convert from 29.97 to 24 fps in order to make my resulting project smaller using the NTSCFilm KVCD templates?

Regards to everyone,
Yes it is! But you can only encode at 23.976 if your original movie was shot FILM. You can't if you have an interlaced 29.97fps stream that has not been telecined.

-kwag
Reply With Quote
  #27  
12-13-2003, 11:02 AM
kwag kwag is offline
Free Member
 
Join Date: Apr 2002
Location: Puerto Rico, USA
Posts: 13,537
Thanks: 0
Thanked 0 Times in 0 Posts
Now it's very easy
http://home.arcor.de/scharfis_brain/60ito24p.html


Code:
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.
This example provided by "Incredible":
Code:
Avisource("Your true interlaced 29.976 source here.avi") 
Telecide() 
convert60ito24p(2,0) 
# 
############### the function ############# 
# 
function convert60ito24p (clip video, int mode, int offset) 
{ 
work = assumefieldbased(video) 
out = (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) 
} 
#################################

-kwag
Reply With Quote
Reply




Similar Threads
Thread Thread Starter Forum Replies Last Post
Avisynth: Help with double-hard telecine ? tengo6dedos Avisynth Scripting 6 09-02-2008 12:04 PM
Avisynth: Frames fingerprints? Prodater64 Avisynth Scripting 1 12-30-2004 01:04 PM
Fixing bad telecine job? J-Wo Video Encoding and Conversion 11 07-19-2004 07:57 AM
Avisynth: Deleting the least significant frames? canon Avisynth Scripting 6 01-21-2004 11:19 AM
Avisynth: GOP of 12/15 frames for anime/cartoons? Why? spam_lover Avisynth Scripting 1 12-17-2003 11:51 PM

Thread Tools



 
All times are GMT -5. The time now is 01:27 PM  —  vBulletin Jelsoft Enterprises Ltd