Quick question, I have a video that needs deinterlacing BFF, I am deinterlacing by simple replication (blending). Since I have to swap the field order to avoid ghosting, will this desync the audio?
At 25 fps each frame lasts 40 ms, so by my logic, swapping the field order should knock it out of sync by 20 ms. Is this right?
+ Reply to Thread
Results 1 to 17 of 17
-
-
You aren't making any sense what-so-ever.
The best thing to do would be to cut a piece of the original video so that you get a file size that is no more than 100MB and then post that sample to a website such as http://www.rapidshare.com/ so we can download it and take a look at it.
- John "FulciLives" Coleman"The eyes are the first thing that you have to destroy ... because they have seen too many bad things" - Lucio Fulci
EXPLORE THE FILMS OF LUCIO FULCI - THE MAESTRO OF GORE
-
Is this right?
However, I question most of your first paragraph. I don't understand why swapping the field order keeps from introducing ghosting when using a blend deinterlacer. Unless you just have the common PAL problem of phase shifted fields, and you've put them back in phase. Which would mean no deinterlacing is needed.
I see now that FulciLives has also answered. And he beat me to what was going to be my next suggestion, a short sample of the video in question.
100 MB? 10 seconds or so should be enough to see what's going on. -
Makes sense to me. Each field is shown for half the time each frame lasts. If I swap the fields and deinterlace, then the audio should be knocked out of sync by one half of the frame time.
I think I've noticed this but it's hard to be sure. -
All that swapping the fields does is change the order in which they are drawn. It does nothing to the number of fields, frame or duration as far as I can see. Unless you actually discard a field somewhere in the process, you should not have any issues.
Read my blog here.
-
Originally Posted by manono
Here is a sample of the video.
http://rapidshare.com/files/43951408/f.mpg.html
See how the interlacing by BFF causes it to be constantly out of phase. By swapping the field order and blending this is easily fixed, but does this effect the sync? -
Originally Posted by guns1inger
-
Here is your AviSynth script:
Code:LoadPlugin("DGDecode.dll") LoadPlugin("Decomb.dll") MPEG2Source("D:\ZZZ\sample.d2v") AssumeTFF() Telecide(guide=2) ConvertToYUY2()
Download Link: http://rapidshare.com/files/43956353/sample.mpg
The name of the file is "sample.mpg"
The last frame is interlaced but that's just due to the frame it was cut on. The video is now progressive other than that last frame.
Do I win something? :P
- John "FulciLives" Coleman"The eyes are the first thing that you have to destroy ... because they have seen too many bad things" - Lucio Fulci
EXPLORE THE FILMS OF LUCIO FULCI - THE MAESTRO OF GORE
-
I think it makes perfect sense. Using TmpgEnc, when you swap the fields and deinterlace, you are essentially moving everthing back by half a frame. Half a frame is 20 ms, so setting the audio shift to -20 ms is needed to keep it perfectly in sync.
I leave it to anyone to prove I'm wrong. -
Do I win something?
Originally Posted by manonoOriginally Posted by Alex DeLarge
Originally Posted by Alex DeLarge
Think what you want about the audio, but I haven't ever heard of anyone feeling the need to adjust the audio delay after performing a simple Telecide (or its equivalent). -
Originally Posted by manono
20 ms is easy to spot though.
Originally Posted by manono -
I was just playing with this some more. Am I right in thinking that you're not frameserving with AviSynth? Because I was experimenting with 2 AviSynth IVTCs on your sample just now. FulciLives is right in saying that the last frame is interlaced (if the default deinterlacer is turned off) when using Decomb's Telecide for the field matching. And his first frame is nice looking. It seems that Decomb's IVTC is tossing out the first field (for which there is no good match), thereby creating a 20ms asynch in the audio.
But, when using TIVTC for the job, the first frame is interlaced (with the default deinterlacer turned off), and the last frame is nice looking. Both methods have the same 241 frames as the sample, but it looks to me as if TIVTC is keeping the first field, and also keeps the audio synch.
So, I guess in answer to your question about whether or not the audio gets out of synch (even by so little that "normal" people can't tell), the answer is, "It depends". But I have no idea what TMPGEnc does. Maybe use your sample in TMPGEnc, swap the fields, and see if the first or last frame remains interlaced.
Interesting, so you just swap the fields and encode as interlaced.
What if you want to change the aspect ratio?
Then you would have to deinterlace first. Yes?
By the way, that sample is Top Field First. Perhaps the field order got switched when you cut the sample. Or maybe you didn't figure the field order correctly (hint: don't believe TMPGEnc). -
No, I'm not using avisynth, I sometimes use it for loading difficult files into TmpgEnc, but not here.
It seems very clear to me, load the file in TmpgEnc, skip along to a scene change or easily identifiable cut. Then deinterlace, when you swap the fields the picture changes. It moves back and forward by one frame. The time stays the same, the position of the audio file stays the same, but the frame changes.
This clealy shows that deinterlacing this clip, badly interlaced as it is, as lots of others are too, knocks the audio out of sync by exactly one half frame. Ie, 20 ms.
The only way to keep the sync would be to keep it as it is, blend as it is, or move the audio back by 20 ms.
Similar Threads
-
Lower field first/upper field first/progressive/de-interlaced?
By John Nada in forum EditingReplies: 7Last Post: 2nd Sep 2011, 03:12 -
Deinterlacing with CoreAVC decoder - Single field and BOB
By brunori in forum Video ConversionReplies: 5Last Post: 19th Nov 2008, 10:28 -
upper field or lower field first? how should I export from premiere
By phpmysql348 in forum EditingReplies: 2Last Post: 6th Sep 2008, 22:54 -
Top Field First to Bottom Field First
By boblin2 in forum Video ConversionReplies: 0Last Post: 5th Dec 2007, 23:19 -
How to use the deinterlacing in the TV when using the TV out from the PC?
By erik1958 in forum Software PlayingReplies: 2Last Post: 9th Jul 2007, 14:07