digitalFAQ.com Forums [Archives]

digitalFAQ.com Forums [Archives] (http://www.digitalfaq.com/archives/)
-   Avisynth Scripting (http://www.digitalfaq.com/archives/avisynth/)
-   -   Fields to Frames and Telecine with AVISynth? (http://www.digitalfaq.com/archives/avisynth/613-fields-frames-telecine.html)

kwag 07-19-2002 10:55 PM

Quote:

Originally Posted by The Alvinator
Hehehehe :lol:

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 :lol:

-kwag

Moat 08-01-2002 09:32 PM

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

The Alvinator 08-02-2002 06:03 PM

Moat: I replied to your PM.

Sergeiv 08-16-2002 04:40 PM

Very interesting!
 
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, I´m 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

Sergeiv 08-19-2002 05:12 PM

Converting to 24fps worthing the effort?
 
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,

kwag 08-19-2002 07:31 PM

Re: Converting to 24fps worthing the effort?
 
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

kwag 12-13-2003 11:02 AM

Convert 60i to 24p
 
Now it's very easy :cool:
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


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

Site design, images and content © 2002-2024 The Digital FAQ, www.digitalFAQ.com
Forum Software by vBulletin · Copyright © 2024 Jelsoft Enterprises Ltd.