View Full Version : Line flickering problem on doorframes etc on Progressive video
simcut
4th November 2012, 15:39
Hi all
Firstly, I apologise in advance for being a relative noob at all this stuff :p
I've got a DVD in VOB format where at the beginning of the scene (and in other parts) there's horizon & vertical line flickering which is *really* offputting, and I want to try and get rid of it the best I can when encoding it.
Here's a screenshot to show you what I mean, as a screenshot is going to show much better than me trying to explain it properly! xD
http://gyazo.com/1ed09b9ef10ddbb3e63261491d3f80a2.png?1352036954
As you can see, the jagged lines on the doorframe close to the 2 people, and the lines of the tiles on the floor, and most noticably at the bottom of the door in the left background, there is also flickering on the door handles in the background on the 2 doors to the left of the 2 people.
This screenshot is from the untouched vob file, source is PAL and 16:9 Progressive, there's no visual interlace at all in any of the entire video, just these annoying jagged lines!
Just some other info for what I use when encoding
MeGUI (latest dev version)
Avisynth 2.5
QTGMC deinterlacer
SDB Profiles for MeGUI
DGIndexNV
Also, to kill 2 birds with 1 stone (in other words, I might as well ask another question at the same time) I have these avisynth scripts set up for use in avisynth script creator in MeGUI, do these look okay for use with each type of video, or am I missing something that should be there?
#Interlaced 30fps BFF script
SetMemoryMax(1400)
setmtmode(5, 4)
<input>
setmtmode(2)
AssumeBFF()
SelectEven()
<crop>
QTGMC( Preset="Slower", edithreads=1 )
#Interlaced 30fps TFF script
SetMemoryMax(1400)
setmtmode(5, 4)
<input>
setmtmode(2)
AssumeTFF()
SelectEven()
<crop>
QTGMC( Preset="Slower", edithreads=1 )
#Progressive script
SetMemoryMax(1400)
setmtmode(5, 4)
<input>
setmtmode(2)
<crop>
QTGMC( Preset="Slower", InputType=1 )
#Telecined script
<input>
TFM()
TDecimate()
<crop>
Thanks in advance guys, I'm a novice with avisynth etc, so you'll have to bear with me when explaining stuff :)
Kind Regards
simcut
10th November 2012, 23:07
Anyone able to help please? :( Thank you,.
Mounir
11th November 2012, 02:17
try an antialiasing method for the jagged lines like this :
NNEDI3(field=-2)
Merge(SelectEven(),SelectOdd())
#note: for progressive video
simcut
11th November 2012, 14:38
Thanks, will give this a try :)
simcut
11th November 2012, 14:46
I've just tried it and its made it worse, the lines have like a wave effect when there is motion... :(
Any other ideas at all?
Thanks.
LemMotlow
11th November 2012, 15:18
d l t d
simcut
11th November 2012, 15:22
a) yeah, the source is Progressive, but its been badly deinterlaced... can anything be done about it?
b) Alright thanks, so SelectEven() should be at the bottom of the script?
c) <crop> is in there as part of the 'default' script, if it stays as <crop> it doesnt crop at all, the <crop> bit changes if I use MeGUI and crop something, its like a placeholder for it.
d) I did some reading up on the QTGMC script and apparently its quite good at removing artifacts from Progressive video, so I thought I'd give it a try. I use it for general deinterlacing normally.
simcut
11th November 2012, 15:31
Btw, for a Progressive video shall I put SelectEven() at the bottom of the script, or shall I only use that for Interlaced content?
I've now changed my avs default script for Progressive to:-
<input>
<crop>
<input> changes to the location of the .dgi file when I open it in the avisynth script creator in meGUI as does the <crop> line if I have to crop something.
Is that alright? :)
Thanks for your help/suggestions btw.
LemMotlow
12th November 2012, 04:06
d l t d
simcut
25th November 2012, 18:55
Thanks for your reply, will upload a sample of the source VOB, what's the best way of cutting part of the vob?
Thanks.
manono
26th November 2012, 05:07
Twhat's the best way of cutting part of the vob?
One way is to open the VOB in DGIndex and use the [ and ] buttons to isolate the piece you want. Then File->Save Project and Demux Video. Upload the resulting M2V.
LemMotlow
26th November 2012, 14:11
d l t d
simcut
29th November 2012, 02:22
Okay, thanks, will do this tomorrow, thanks guys :)
simcut
27th January 2013, 17:13
Really sorry folks for never posting up the vob, had some computer problems.
I'm just about to demux the video and will post it.
Guest
27th January 2013, 17:30
a) yeah, the source is Progressive, but its been badly deinterlaced... can anything be done about it? Who deinterlaced it? What is the DVD and where did you get it? Rule 6 red flags are waving.
simcut
27th January 2013, 21:34
Who deinterlaced it? What is the DVD and where did you get it? Rule 6 red flags are waving.
Hiya
It was in response to someone saying that it was badly deinterlaced (and I agree, the company who put it on DVD have really made a mockery of doing it!)
I bought the DVD and have a physical copy of it, I am trying to encode from Source DVD to mp4 x264
Will be quite happy to prove the legitimacy of it.
Bit frustrating spending money on a DVD and then find out it looks like shit when u play it :\
I'm just in the process of making an .iso from the source dvd so that I can do work on it without having to keep the dvd in the drive, will put up the demuxed video in a bit
simcut
27th January 2013, 23:05
Right, here's the demuxed video at long last.
http://www51.zippyshare.com/v/16656039/file.html
and here's a screengrab of what DGIndex shows for it - http://i.imgur.com/Id08CiE.jpg
it shows it as Interlaced TFF 25fps (so must be PAL)
If you want me to upload the .dgi as well let me know :)
Thanks in advance, hope you can help with this, you'll really notice the problem on the doorframes etc..
simcut
15th February 2013, 23:29
Please can anyone help? Thank you :)
Guest
15th February 2013, 23:52
The source is trashed, there is no magic bullet.
simcut
16th February 2013, 00:14
Damn :( no hope with it at all?
Annoying to say the least, shocking that it was put out for release this way.
Guest
16th February 2013, 01:39
Looks hopeless to me but we have some wizards here, you never know.
But looking at the bottom of the doorway early on, I don't see how that can be fixed. Call it a failure of imagination if you like. :)
simcut
16th February 2013, 01:48
Oh well, will hold out some hope then, bloody annoying buying something and then having stuff like that, regardless of what it is, that flickering and stuff is so offputting
pbristow
18th February 2013, 03:03
Ah yes, I've hit this problem before with, uh, similar material... ;) It's been "film-ised" by the crudest possible means of de-interlacing: Throwing away half of the original fields (and thus half the vertical *and* temporal information) and replacing them with either a duplicate of the other field, or a crude interpolation. It's a horrible, horrible trick used by some people to make their videos look less "video-y" and more "filmy". (Even the BBC have been known to stoop to it! :( )
What most amateur / low-budget movie makers fail to take into account is the extra work "proper" movie makers have to put into designing, lighting and shooting things so as to avoid the combination of harsh contrasts and fast camera moves that would cause annoying flicker at the lower frame rate. Combine that with the distortion of sloped edges caused by skipping half the original video lines, and the result is what you see here: Horrible.
The best thing you can do is to throw away the fake fields of the DVD (keeping whichever field of each frame has the cleaner information), and re-interpolate what remains with a more intelligent interpolator/deinterlacer.
Try using nnedi3, with the largest possible x-radius, e.g:
nnedi3(field=0, nsize=3, nns=2)
(N.B. It will be quite slow! :) )
Try encoding the short section you've posted here, first using field=0 (as above), then again with field=1. Chose whichever option looks cleaner.
kolak
18th February 2013, 22:26
Yes- so common problem and even on pro level - eg AVID users.
simcut
18th February 2013, 22:36
Thank you for the quick reply pbristow and kolak
Please can you confirm if the below script is okay?
# Set DAR in encoder to 16 : 9. The following line is for automatic signalling
global MeGUI_darx = 16
global MeGUI_dary = 9
LoadPlugin("C:\Program Files (x86)\MeGUI_2153_x86\tools\dgindexnv\DGDecodeNV.dll")
DGSource("D:\Encode\VTS_02_1.demuxed.dgi",fieldop=0)
nnedi3(field=0, nsize=3, nns=2)
crop(0, 0, 0, -4)
Thanks :)
simcut
18th February 2013, 22:41
I've just tried the above and it didnt make any difference for those, they still have really bad flickering, didnt seem to make any improvement, I tried with field=0 and field=1
simcut
18th February 2013, 22:47
has to be said, this seems to be going far too quick to be doing any work, I get like over 40fps when its running the .avs file in megui, seems far too fast to be able to do the work you mention, I wonder where I'm going wrong :o
pbristow
21st February 2013, 20:30
I don't use either MeGui or DGSource myself (can't afford the license!), so I don't know what "fieldop=0" does or what factors might be affecting your speed. (That said, I'm finding it quicker than I expected on my set-up, too! Maybe it's just too long since I worked with material that wasn't 1080p. :) )
I've tried running a similar script using DirectShowSource: Yeah, all NNEDI3 manages to do is soften the edges of the light streaks under the door. The problem is that the gap through which the light is shining is less than one scan-line wide, so aving thrown away every other scan line there are complete gaps in the the gap (as it were!) that NNEDI3 isn't able to join up.
I'm doing some experiments with other interpolaters. We're not going to be able to get rid of the strobbing entirely, but I'll try to find what combination does the best job of minimising it.
kolak
21st February 2013, 21:35
I had many sources like this and it's badly damaged and not much can be done.
simcut
24th February 2013, 00:01
I don't use either MeGui or DGSource myself (can't afford the license!), so I don't know what "fieldop=0" does or what factors might be affecting your speed. (That said, I'm finding it quicker than I expected on my set-up, too! Maybe it's just too long since I worked with material that wasn't 1080p. :) )
I've tried running a similar script using DirectShowSource: Yeah, all NNEDI3 manages to do is soften the edges of the light streaks under the door. The problem is that the gap through which the light is shining is less than one scan-line wide, so aving thrown away every other scan line there are complete gaps in the the gap (as it were!) that NNEDI3 isn't able to join up.
I'm doing some experiments with other interpolaters. We're not going to be able to get rid of the strobbing entirely, but I'll try to find what combination does the best job of minimising it.
That's great, thanks very much man :)
vBulletin® v3.8.11, Copyright ©2000-2025, vBulletin Solutions Inc.