Log in

View Full Version : Horizontal lines


12thman115
14th December 2013, 18:05
Hello All,

After some trial and error I finally got an encode that has the file size and quality that I like. However there are some horizontal lines that appear in motion scenes and also scene cuts/fades. Is there settings that help reduce this ? Would this be the B and P frames settings? I'm using the insane preset with a CRF of 23, slow. Any thoughts ? Thanks for your help !

Guest
14th December 2013, 18:17
Do you know about interlacing and deinterlacers? If not, use google to learn about it. If it is not attributable to that then please post a link to an unprocessed source sample and give us your avisynth script.

12thman115
14th December 2013, 22:58
Thanks for the Tip. I have started to go through all of my source video and I am finding that they do need to be de-interlaced. So I am setting up filters and encoding and will make the adjustments from there. Thanks for your help!

Guest
15th December 2013, 00:52
One thing to watch out for, since you are new to this interlacing stuff. You have to know also about telecining, because you can get those horizontal lines from either telecining or interlacing. For telecined content you have to use IVTC to correct it, while for pure interlacing you need a deinterlacer. If you'd like to post an unprocessed source sample we can help you to determine the correct processing for it.

EDIT: Another possibility is that you have blended fields, which require yet another processing method.

12thman115
15th December 2013, 22:57
So I took a raw source and used AviSynth script creator> then use the file index option> once I have the D2V file I load that into script creator>Then under deinterlacing> I use the analyses function> after it is complete I get the source type, field order and the deinterlacer to use. I then save the script.

I watched some of the videos I did this morning and there were areas where I noticed the deinterlacer was working/had worked and the lines were not as fine but you could tell where they where.

I have tried to attach raw source but receive the following message -

"Your submission could not be processed because a security token was missing.

If this occurred unexpectedly, please inform the administrator and describe the action you performed before you received this error."
So is there a one size fits all deinterlacer ? Is there anything that I could be doing/should be doing different ?

Below is the script that I use


LoadPlugin("C:\Program Files (x86)\AviSynth 2.5\plugins\deblock.dll")
<input>
<deinterlace>
<crop>
BilinearResize(1280,720) # Bilinear (Soft)
LoadPlugin("C:\Program Files (x86)\megui\tools\avisynth_plugin\TIVTC.dll")
tfm(order=1).tdecimate()
<denoise>
#deblock(quant=25,aOffset-boffset=25)
#DirectShowSource(Titel,fps=FpsZ)EnsureVBRMP3Sync()
function mcdaa3(clip input) {
sup = input.HQdn3d.FFT3DFilter.MSuper(pel=2,sharp=1)
fv1 = sup.MAnalyse(isb=false,delta=1,DCT=2,Truemotion=false)
fv2 = sup.MAnalyse(isb=true,delta=1,DCT=2,Truemotion=true)
csaa = input.daa3mod
momask1 = input.MMask(fv1, kind = 1, ml=2)
momask2 = input.MMask(fv2, kind = 1, ml=3)
momask = mt_average(momask1,momask2)
mt_merge(input,csaa,momask,u=3,v=3)
}

LoRd_MuldeR
15th December 2013, 23:17
Please upload a piece of your unprocessed original source at Mediafire.com or a similar service and post the download link here.

(You cannot attach files bigger than 200 KB in this forum)

Guest
16th December 2013, 00:45
Also, you should start with simpler scripts until you understand what you are doing.

12thman115
16th December 2013, 03:01
12345

Guest
16th December 2013, 03:20
Can you please tell us where you got that file?

12thman115
16th December 2013, 03:52
Is it relevant to the current issue ?

LoRd_MuldeR
16th December 2013, 13:19
Is it relevant to the current issue ?

Yes, it is relevant.

Also you may which to read the rules again, especially rule #6:
http://forum.doom9.org/forum-rules.htm

turbojet
18th December 2013, 06:21
You should always ivtc (tfm/tdecimate in this case) before resizing but your source has a lot more dupe frames then it should have. I capped that criminal minds ep that had correct 3:2 pulldown and it ivtc'd fine.

12thman115
22nd December 2013, 17:33
You should always ivtc (tfm/tdecimate in this case) before resizing but your source has a lot more dupe frames then it should have. I capped that criminal minds ep that had correct 3:2 pulldown and it ivtc'd fine.

I have went through all my video sources and found that each ones is a little different. So I set up individual encoder settings for each. So far it is working but there are still some with lines in them. So question #1 is how do you do the interlace before resize? Does the interlace function have to be before the resize in the script ?

Question #2 Is there a threshold for the deinterlacer. Example, I went through and analyzed each source on its own to get the proper deinterlacing source, field order and which deinterlacer to use. I then made a script with that filter for each source. Yes it was a lot of work but I figured not all source is created equal and it would set me up for future use. So is the average is film, top field first, TiViC and the script is tfm(order=1).tdecimate() can there or is there adjust to be made to the script if the final product still has some lines in it?

neuron2 and LoRd_MuldeR thanks for your help with this issue, I removed all of the script but the resize and the deinterlacer. I then used insane preset with CRF 18-22 and I am getting the quality and size that I want. So should have applied Occam's Razor to this issue. I went simple and it worked. Thanks for the help!

Guest
22nd December 2013, 19:12
You must not resize before deinterlacing.

Typically, you may need to tweak settings for different sources. There is no universal recipe.