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 Display Modes
Old 7th August 2012, 06:44   #1  |  Link
cools
Registered User
 
Join Date: Aug 2006
Posts: 3
Awkward Source: 60p -> 24p

So, I've come across a source which was originally 24 fps, and I believe converted to 30 fps by repeating frames followed by a bob (iThink) to 60 fps - which creates some judder that is imperceptible at 60fps - however, when slowed down or decimated it immediately becomes apparent and when freeze-framed aliasing-like lines show up. I've tried a couple of things - to varying degrees of success - but haven't been able to truly fix the issue.

TestClips

Example of Aliasing Like lines (around the book):


Fixed!:


Simply applying TDecimate(cycleR=3) doesn't work as the file ends up bobbing up and down - especially noticable in slow moving scenes (not so much in fast motion).

So one of the ways I came about trying to fix it was by merging the odd and even frames together
Code:
MPEG2Source("full-movie.d2v")
v1 = SelectEven()
v2 = SelectOdd()
Merge(v1,v2)

#and the decimation back to 24p while dealing with annoying pop-ups...
saved = last
CropBottom(150)
Tdecimate(clip2=saved)
While this works in slow moving scenes (like the image above - it also works well for whiskers...) - it usually creates some wicked ghosting in faster moving scenes.




I then also tried using dup() with blending to much greater success - it works quite well in most scenes, but in slow scenes it can end up not being effective as the judder is more apparent and the threshold would have to be jacked up for it to work correctly.
Code:
MPEG2Source("full-movie.d2v")
dup(threshold=2,blend=true) #thresh set to 2 based on other parts of the film
saved = last
CropBottom(150)
TDecimate(cycleR=3, clip2=saved)
I suppose something like this:
Code:
MPEG2Source("full-movie.d2v")
saved = last
CropBottom(150)
TDecimate(cycleR=3, blend=true, clip2=saved)
would work - if it was a thing! So any ideas on the best way to fix this issue?
cools is offline   Reply With Quote
Old 7th August 2012, 11:12   #2  |  Link
Didée
Registered User
 
Join Date: Apr 2002
Location: Germany
Posts: 5,406
Shot in the blue:

Code:
merge(selectevery(1,1),0.5)
Srestore(frate=23.976,speed=-1)
That's just "hit or miss", short of coming up with a dedicated solution.

With some luck, it might work out. Try and see how it's going.

_____

edit: Just noted the bit about "annoying popups" ...

Just in case it does work out, the analyse/render separation can be done just as well:
Code:
merge(selectevery(1,1),0.5)

#and the decimation back to 24p while dealing with annoying pop-ups...
blabb = last
blubb = CropBottom(152)

blabb.Srestore(frate=23.976,speed=-1,dclip=blubb)
__________________
- We´re at the beginning of the end of mankind´s childhood -

My little flickr gallery. (Yes indeed, I do have hobbies other than digital video!)

Last edited by Didée; 7th August 2012 at 12:12.
Didée is offline   Reply With Quote
Old 7th August 2012, 17:30   #3  |  Link
Guest
Guest
 
Join Date: Jan 2002
Posts: 21,901
[bump after re-open following user clarification]
Guest is offline   Reply With Quote
Old 7th August 2012, 19:33   #4  |  Link
cools
Registered User
 
Join Date: Aug 2006
Posts: 3
Didee - the script worked for both slow and quick moving scenes (throughout the film). Thank you very much!

With some MPEG2 color correction and light denoising - I think I'll end up with a pretty solid encode!
cools is offline   Reply With Quote
Reply

Thread Tools
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 01:10.


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