Log in

View Full Version : Artifacts during first 2 seconds


fabje
31st January 2015, 18:29
A lot of things I encode get artifacts during the first 2 seconds and after that I don't get any artifacts anymore.

I cut the video using VideoRedo 5, and use TsMuxer to convert the h264 file to a ts file, and this is the file I load into Staxrip.
This is then my avisynth config:
LoadCPlugin("D:\Staxrip\Applications\AviSynth\plugins\Yadif\yadif.dll")
SetMTMode(5,3)
DirectShowSource("D:\test.720p.ts", audio=false, convertfps=true, fps=25)
SetMTMode(2)
Yadif()
Crop(2,2,-2,-2)
LanczosResize(1280,720)
Trim(0,83180)

When I cut the video first in DGIndexNV and load the dgi file into Staxrip and encode everything I don't have that anymore.
LoadCPlugin("D:\Staxrip\Applications\AviSynth\plugins\Yadif\yadif.dll")
LoadPlugin("D:\Staxrip\Applications\DGDecNV\DGDecodeNV.dll")
SetMTMode(5,3)
DGSource("D:\test3.720p.dgi",deinterlace=0,resize_w=0,resize_h=0)
SetMTMode(2)
Yadif()
LanczosResize(1280,720)
Trim(111,83292)

Anyone that has an idea how I can solve this?

Groucho2004
31st January 2015, 18:46
Have you tried without SetMTMode? Different source filter than DSS?
I'm not sure how well DSS and Avisynth MT work together.

videoh
31st January 2015, 19:48
Anyone that has an idea how I can solve this? Keep using DGSource(). ;)

Groucho2004
31st January 2015, 19:49
Keep using DGSource(). ;)
Ha, missed that. Good advice. :)

hello_hello
2nd February 2015, 17:31
Aside from DirectShowSource vs DGSource the first script contains Trim(0,83180) while for the second it's Trim(111,83292), so the second script isn't encoding the first 111 frames. How's Trim() being added to the script?

I've got to ask..... why are you cutting the video before encoding given you can use Trim() to encode just the bits you want. I don't use StaxRip but MeGUI has an AVS cutter under the tools menu for adding cuts to a script and it'll save a file to load into the audio section so it's encoded to match (or there's an audio cutter under the tools menu if you don't want to re-encode). Of course you can do that all yourself but I find the AVS Cutter makes it easier.

stax76
3rd February 2015, 04:14
It's much likely LAV splitter causing the artifacts, Haali's TS splitter don't produce them and seeking is faster too, you can enable it with 'Codec Tweak Tool'.

A robust and convenient solution might be to cut beginning and end roughly with DGIndexNV and then cut with StaxRip frame accurate, it's best done with keyboard, the shortcuts are customizable.

pcordes
21st February 2015, 16:09
You're not using x264 1-pass ABR, are you? The first I-frame in 1-pass ABR mode is usually very starved for bitrate, so unless your video starts with some black frames, the opening bit looks like crap.

You didn't say anything about what kind of artifacts.