Avisynth: Mpeg 2 Interlaced encoding and scripts?
I'm mostly working with mpeg 2 encoding (SKVCD and KDVD) and want to keep the encodes interlaced. I've been reading a little about the fact that the fields should be filtered sepperately because of the way smoothing and denoising filters work. What parts of the optimal script would this effect, and what changes would need to be made.
I'm thinking that the fields have to be sepperated, filtered on their own, and then put back together...or maybe I'm way off. If someone knows and give some examples that would be appreciated. I think most people here do mpeg1 so it hasn't come up for them. Thanks for any feedback. |
try this:
Mpeg2Source("Your_D2V_Source_Here") SeparateFields() ... #the sharpen filters... #the resize line... #the filters lines... ... Weave() AddBorders(x,x,x,x) #or gripborders with MA script! do a sample for test! :wink: |
I have found out yesterday a much better way to do this. The problem with Jorel solution is that fields are not aligned, one field is shifted up and the other down, so temporal filtering won't work right. What this funcition below does is put odd fields in the left side and even fields on the right side of each frame, apply filters and interlace fields back. It's a much better approach! A interlaced frame like this:
AAAAAAAAAAAAAA - Frame 1 BBBBBBBBBBBBBB AAAAAAAAAAAAAA - Frame 2 BBBBBBBBBBBBBB AAAAAAAAAAAAAA - Frame 3 BBBBBBBBBBBBBB Becomes: AAAAAAAAAAAAAABBBBBBBBBBBBBB - Frame 1 AAAAAAAAAAAAAABBBBBBBBBBBBBB - Frame 2 AAAAAAAAAAAAAABBBBBBBBBBBBBB - Frame 3 Then you apply the filters and get back to: AAAAAAAAAAAAAA - Frame 1 BBBBBBBBBBBBBB AAAAAAAAAAAAAA - Frame 2 BBBBBBBBBBBBBB AAAAAAAAAAAAAA - Frame 3 BBBBBBBBBBBBBB Check it out: http://forum.doom9.org/showthread.php?threadid=59029 []'s VMesquita |
I thougth that this subject deserved a small summary so that people in this forum get the idea.
quoting "stickboy": Quote:
http://forum.doom9.org/showthread.ph...AND+interlaced stickboy Quote:
vmesquita: Quote:
|
Site design, images and content © 2002-2024 The Digital FAQ, www.digitalFAQ.com
Forum Software by vBulletin · Copyright © 2024 Jelsoft Enterprises Ltd.