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 7th February 2010, 23:29   #1  |  Link
blazerqb11
Registered User
 
Join Date: Jul 2008
Posts: 64
Handling 720p Captures of Orginally 24 FPS Content

I was wondering if someone could give me some advice on how to deal with re-encoding 720p TV captures of videos that were originally 24 fps, such as animation. I'm not really sure what the process is for converting 24p to 60p for broadcasting, so I don't know how I should proceed with lowering the frame rate.
blazerqb11 is offline   Reply With Quote
Old 8th February 2010, 19:23   #2  |  Link
blazerqb11
Registered User
 
Join Date: Jul 2008
Posts: 64
Did I post this in the wrong section? If so, where should I have posted it?
blazerqb11 is offline   Reply With Quote
Old 9th February 2010, 13:51   #3  |  Link
reepa
Registered User
 
reepa's Avatar
 
Join Date: Aug 2003
Posts: 144
You should have better luck at the AviSynth subforum. Ask a moderator to move the topic there.
reepa is offline   Reply With Quote
Old 9th February 2010, 14:57   #4  |  Link
Guest
Guest
 
Join Date: Jan 2002
Posts: 21,901
You should post a link to an unprocessed sample stream.

Probably you just need an appropriate decimation function. Something like this works for straightforward streams:

TDecimate(cycle=5,cycleR=3)

or more clumsily:

Decimate(2)
Decimate(5)

But it depends on the specifics of your source material.
Guest is offline   Reply With Quote
Old 9th February 2010, 20:34   #5  |  Link
blazerqb11
Registered User
 
Join Date: Jul 2008
Posts: 64
Actually, looking at it I'm not totally sure it was originally 24 fps. Is American animation typically 24 or 30 fps? Whenever I use decimate or IVTC(either Telecide or TFM(which I thought shouldn't be necessary but I saw at least one interlaced frame in there)) or simply ChangeFPS(24000,1001), I end up with a video that looks like it's shaking up and down. Even Decimate(2) by it self results in this; however, ChangeFPS(30000,1001) does not.
blazerqb11 is offline   Reply With Quote
Old 9th February 2010, 20:45   #6  |  Link
Guest
Guest
 
Join Date: Jan 2002
Posts: 21,901
It's all speculation until you post a link to an unprocessed source sample. Please do so if you want meaningful help.
Guest is offline   Reply With Quote
Old 10th February 2010, 04:44   #7  |  Link
blazerqb11
Registered User
 
Join Date: Jul 2008
Posts: 64
OK, here is a 100MB sample(took me a while because of numerous failed uploads):
http://www.megaupload.com/?d=TOBQ1HED
The "shaking" can especially be seen in the house's windows right after the opening credits.
blazerqb11 is offline   Reply With Quote
Old 10th February 2010, 15:19   #8  |  Link
Guest
Guest
 
Join Date: Jan 2002
Posts: 21,901
The shaking appears to be there because this was created by bobbing and upsizing an interlaced SD stream.

Where did you get that stream?
Guest is offline   Reply With Quote
Old 10th February 2010, 19:55   #9  |  Link
blazerqb11
Registered User
 
Join Date: Jul 2008
Posts: 64
I used a Pinnacle 880e Ultimate Stick as a tuner card to record it off Fox(to be clear, I mean the TV channel) in Windows Media Center. Then I converted it from wtv>dvr-ms>mpg.
blazerqb11 is offline   Reply With Quote
Old 10th February 2010, 20:24   #10  |  Link
Guest
Guest
 
Join Date: Jan 2002
Posts: 21,901
The "shaking" is not caused by the decimation. It is caused by the bobbing/upsampling.
Guest is offline   Reply With Quote
Old 11th February 2010, 03:18   #11  |  Link
blazerqb11
Registered User
 
Join Date: Jul 2008
Posts: 64
Alright, but it seems much more pronounced after decimation(I'm not just imagining that, am I?)

So what is the best course of action for dealing with this stream? My goal is to bring it back to its original frame rate(is it 24 or 30?), scale it back down to something like 640X480 and then re-encode in AVC.
blazerqb11 is offline   Reply With Quote
Old 11th February 2010, 03:57   #12  |  Link
Guest
Guest
 
Join Date: Jan 2002
Posts: 21,901
Quote:
Originally Posted by blazerqb11 View Post
Alright, but it seems much more pronounced after decimation(I'm not just imagining that, am I?)
I fail to see how tossing out frames can alter the remaining ones.

I can't answer about "best" and anyway I'm not particularly skilled at dealing with such horrible source material. In fact, I avoid it like the plague!
Guest is offline   Reply With Quote
Old 11th February 2010, 08:02   #13  |  Link
blazerqb11
Registered User
 
Join Date: Jul 2008
Posts: 64
Yea, I see what you mean. And after further study it seems that my eye is some how mis-perceiving the shaking when I watch it at 60 fps: sometimes I will see it and other times it doesn't seem to be there. In fact, it seems that most of the time I don't see it when playing the same scene over and over again. However, when I watch it with Decimate(2) Decimate(5), I always see it. Whether this is all the result of an optical illusion of some kind I really can't say.

I did some research on bobbing and I wondered if I'm understanding it correctly. If I understand it right they re-separate the fields(if they had been combined) of an interlaced video and then double the lines or scale each separate field back up to the original resolution. The fact that ever other resultant frame is shifted by a line of pixels is what causes the video to "bob" up and down.
blazerqb11 is offline   Reply With Quote
Old 11th February 2010, 14:33   #14  |  Link
wonkey_monkey
Formerly davidh*****
 
wonkey_monkey's Avatar
 
Join Date: Jan 2004
Posts: 2,496
Quote:
The fact that ever other resultant frame is shifted by a line of pixels is what causes the video to "bob" up and down.
That didn't seem to be quite the problem when I had a look, although it's related. Each frame is based on an alternate field - the shift is being compensated for, but that doesn't stop the "shimmer", because in one picture the even lines were real, and in the next the odd lines are real - if the video hadn't been bobbed correctly, as you were thinking, the result would be much worse.

David
wonkey_monkey is offline   Reply With Quote
Old 11th February 2010, 20:53   #15  |  Link
blazerqb11
Registered User
 
Join Date: Jul 2008
Posts: 64
Well, after a little bit of experimentation I came up with something that seems to work reasonably well. I basically just reversed the line doubling(or motion compensated line doubling) which left me with a telecined stream. The result was actually pretty good. Let me know if anyone sees a better way of doing something.

Code:
AssumeFieldBased()

BilinearResize(1280,360)

Weave()

Tfm().TDecimate()

Crop(164, 6, -164 ,-10)

LanczosResize(640,480)
Here is a sample: http://www.megaupload.com/?d=IDAZCA79

Or, now after some more experimentation, what I was really trying to do:

Code:
SeparateFields()

video1 = SelectEvery(4,1)

video2 = SelectEvery(4,2)

Interleave(video1,video2)

Weave()

Tfm().TDecimate()

Crop(164, 6, -164 ,-10)

LanczosResize(640,480)
Though I'm not sure whether to use the above or
video1 = SelectEvery(4,0)
video2 = SelectEvery(4,3)

I can't tell a difference in the output.

Last edited by blazerqb11; 11th February 2010 at 23:27.
blazerqb11 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 16:44.


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