View Full Version : Green blocks in video
gunfelix
14th July 2016, 10:31
When I try to encode this video, I get green blocks everywhere. This only happens on this video, all the others are fine. If I play input.mkv in Windows Media Player or on my TV the green blocks are gone, output.mkv always has them. Do I need to install an additional codec pack or change some settings in ffdshow? I use ffvideosource + Avs2YUV + Avisynth+ + x264.
Samples:
https://www.sendspace.com/filegroup/n3Sg6pZa%2F0bm7zH5i5uPDA
The green blocks:
http://i.imgur.com/PERMn7T.png
Groucho2004
14th July 2016, 16:21
Very odd, I get the same thing with LWLibavVideoSource(), even with "threads = 1".
These decoders work without any artefacts:
- DGDecodeNV()
- DirectShowSource().
Taurus
14th July 2016, 17:58
LWLibavVideoSource("input.mkv", fpsnum=30000, fpsden=1001, threads=1) working!
FFVideoSource("input.mkv", fpsnum=30000, fpsden=1001, threads=1) working!
DirectShowSource("input.mkv") no go, green blocks all over the place!
Previewed in MPC-HC and encoded to x264.
Avisynth 2.6 MT, latest LWLibavVideoSource and FFvideoSource.
Did not test other threads settings...
Groucho2004
14th July 2016, 18:18
LWLibavVideoSource("input.mkv", fpsnum=30000, fpsden=1001, threads=1) working!
FFVideoSource("input.mkv", fpsnum=30000, fpsden=1001, threads=1) working!
DirectShowSource("input.mkv") no go, green blocks all over the place!
LWLibavVideoSource("input.mkv", fpsnum=30000, fpsden=1001, threads=1) Green blocks
FFVideoSource("input.mkv", fpsnum=30000, fpsden=1001, threads=1) Working
DirectShowSource("input.mkv") Working:D
Preview in VDub and MPCHC, Avisynth version doesn't seem to matter.
hello_hello
14th July 2016, 19:07
DirectShowSource produced green blocks for me (ffdshow decoding) as did LWLibavVideoSource (I'm using an older version of L-Smash though, as it runs on XP).
ffvideosource was fine, as long as I included threads=1, otherwise all I got was a non-specific access violation message. I'm using ffms2 version 2.22.
LoadPlugin("C:\Program Files\MeGUI\tools\ffms\ffms2.dll")
FFVideoSource("E:\input.mkv", threads=1)
gunfelix
14th July 2016, 19:25
DirectShowSource blacks the entire video except for the channel logo: https://www.sendspace.com/file/vdwyum
FFVideoSource with threads=1 still shows blocks
LWLibavVideoSource returns: error: Cannot load file 'C:/Program Files (x86)/AviSynth+/plugins/LSMASHSource.dll'The file is in that location.
Can't find DGDecodeNV except for a $15 donation page an dead links.
Taurus
14th July 2016, 20:37
Well, strange.
FFVideoSource and LWLibavVideoSource are doing fine on my side with threads=1,2,3,etc.
SetMTMode(3,0) multithreaded.. or without any thing.
Directshowsource bombs with green artefacts whatever I do.
Disabling/enabling ffdshow, disabling/enabling LAV directshow components doesn't help.
Here is a simple sample script I've used lately (without any MT stuff):
# Directshowsource("input.mkv")
# LWLibavVideoSource("input.mkv")
FFvideoSource("input.mkv")
TDecimate(cycleR=1)
Avisynth 2.6.0.6 with SET's MT Patch from 2.6.0.5
FFVideoSource from ffms2-2.22
LWLibavVideoSource from L-SMASH-Works-r879
FFDShow tryouts = latest
MPC-HC = latest stable
Virtualdub = latest stable
LAV Components = latest stable
All necessary C++ Runtimes installed (especially C++2015 for lmashsource.dll :p )
All components 32bit on Win7 64bit
Groucho2004
14th July 2016, 21:17
LWLibavVideoSource returns: error: Cannot load file 'C:/Program Files (x86)/AviSynth+/plugins/LSMASHSource.dll'The file is in that location.Probably a missing dependency like VS2015 runtime. You can use AVSMeter (http://forum.doom9.org/showthread.php?t=165528) to check for missing dependencies (use the "-avsinfo" switch).
Can't find DGDecodeNV except for a $15 donation page an dead links.Here's (http://rationalqm.us/dgdecnv/dgdecnv.html) the DGDecNV page. The 15 bucks are well spent, at least in my opinion.
gunfelix
14th July 2016, 21:55
Probably a missing dependency like VS2015 runtime. You can use AVSMeter (http://forum.doom9.org/showthread.php?t=165528) to check for missing dependencies (use the "-avsinfo" switch).
Here's (http://rationalqm.us/dgdecnv/dgdecnv.html) the DGDecNV page. The 15 bucks are well spent, at least in my opinion.
That looks like it, will install it tomorrow.
I don't have a creditcard unfortunately
gunfelix
15th July 2016, 22:14
Probably a missing dependency like VS2015 runtime. You can use AVSMeter (http://forum.doom9.org/showthread.php?t=165528) to check for missing dependencies (use the "-avsinfo" switch).
AVSMeter says: Cannot load file 'C:/Program Files (x86)/AviSynth+/plugins/LSMASHSource.dll'.
The file is in that directory. No other dependencies seem to be missing.
Groucho2004
15th July 2016, 22:46
AVSMeter says: Cannot load file 'C:/Program Files (x86)/AviSynth+/plugins/LSMASHSource.dll'.
The file is in that directory. No other dependencies seem to be missing.
1. Where did you download the file?
2. What OS are you running?
3. Post the entire AVSMeter log ("avsmeter -avsinfo -log")
4. Try DependencyWalker (http://www.dependencywalker.com/) to check for problems
raffriff42
16th July 2016, 00:09
5. Avisynth 2.6 or greater
Groucho2004
16th July 2016, 00:14
5. Avisynth 2.6 or greater
AVSMeter only runs on Avisynth >= 2.6.
gunfelix
16th July 2016, 08:07
1. Where did you download the file?
2. What OS are you running?
3. Post the entire AVSMeter log ("avsmeter -avsinfo -log")
4. Try DependencyWalker (http://www.dependencywalker.com/) to check for problems
1. http://avisynth.nl/index.php/LSMASHSource
2. Windows 7 64bit
3. C:\AVSMeter229>avsmeter -avsinfo
AVSMeter 2.2.9 (x86) - Copyright (c) 2012-2016 Groucho2004
Avisynth version string: AviSynth+ 0.1 (r1576, x86)
File version: 2.6.0.5
Avisynth Interface Version: 5
Muli-threading support: No
Linker/compiler version: 11.0
Avisynth DLL location: C:\Windows\SysWOW64\AviSynth.dll
Avisynth DLL time stamp: 2014-01-02, 20:14:26
PluginDir+ (HKLM, x86): C:\Program Files (x86)\AviSynth+\plugins+
PluginDir2_5 (HKLM, x86): C:\Program Files (x86)\AviSynth+\plugins
[Avisynth CPP 2.6 plugins]
C:\Program Files (x86)\AviSynth+\plugins+\DirectShowSource.dll (n/a)
C:\Program Files (x86)\AviSynth+\plugins+\ImageSeq.dll (n/a)
C:\Program Files (x86)\AviSynth+\plugins+\Shibatch.dll (n/a)
C:\Program Files (x86)\AviSynth+\plugins+\TimeStretch.dll (n/a)
C:\Program Files (x86)\AviSynth+\plugins+\VDubFilter.dll (n/a)
C:\Program Files (x86)\AviSynth+\plugins\Average.dll (n/a)
C:\Program Files (x86)\AviSynth+\plugins\checkmate.dll (n/a)
C:\Program Files (x86)\AviSynth+\plugins\fturn-26.dll (n/a)
C:\Program Files (x86)\AviSynth+\plugins\masktools2.dll (2.1.0.0)
C:\Program Files (x86)\AviSynth+\plugins\RgTools.dll (n/a)
C:\Program Files (x86)\AviSynth+\plugins\SangNom2.dll (n/a)
C:\Program Files (x86)\AviSynth+\plugins\tmaskcleaner.dll (n/a)
C:\Program Files (x86)\AviSynth+\plugins\vinverse.dll (n/a)
[Avisynth CPP 2.5 plugins]
C:\Program Files (x86)\AviSynth+\plugins\AddGrainC.dll (1.7.1.0)
C:\Program Files (x86)\AviSynth+\plugins\avstp.dll (1.0.1.0)
C:\Program Files (x86)\AviSynth+\plugins\aWarpSharp.dll (n/a)
C:\Program Files (x86)\AviSynth+\plugins\aWarpSharp2.dll (n/a)
C:\Program Files (x86)\AviSynth+\plugins\ChromaShift.dll (n/a)
C:\Program Files (x86)\AviSynth+\plugins\cnr2.dll (2.6.1.0)
C:\Program Files (x86)\AviSynth+\plugins\ColorMatrix.dll (2.5.0.0)
C:\Program Files (x86)\AviSynth+\plugins\ColourLike_25Aug05.dll (n/a)
C:\Program Files (x86)\AviSynth+\plugins\ContinuityFixer.dll (n/a)
C:\Program Files (x86)\AviSynth+\plugins\DctFilter.dll (0.0.1.4)
C:\Program Files (x86)\AviSynth+\plugins\De.dll (0.0.0.2)
C:\Program Files (x86)\AviSynth+\plugins\Decomb.dll (n/a)
C:\Program Files (x86)\AviSynth+\plugins\deen.dll (n/a)
C:\Program Files (x86)\AviSynth+\plugins\degrainmedian.dll (0.8.2.0)
C:\Program Files (x86)\AviSynth+\plugins\dfttest.dll (1.9.4.0)
C:\Program Files (x86)\AviSynth+\plugins\DGDecode.dll (1.5.8.0)
C:\Program Files (x86)\AviSynth+\plugins\dither.dll (n/a)
C:\Program Files (x86)\AviSynth+\plugins\EEDI2.dll (0.9.2.0)
C:\Program Files (x86)\AviSynth+\plugins\FDecimate.dll (n/a)
C:\Program Files (x86)\AviSynth+\plugins\ffms2.dll (n/a)
C:\Program Files (x86)\AviSynth+\plugins\FFT3DFilter.dll (2.1.1.0)
C:\Program Files (x86)\AviSynth+\plugins\FFT3dGPU.dll (0.8.2.0)
C:\Program Files (x86)\AviSynth+\plugins\Ghostbuster.dll (n/a)
C:\Program Files (x86)\AviSynth+\plugins\gradfun2db.dll (n/a)
C:\Program Files (x86)\AviSynth+\plugins\GRunT.dll (n/a)
C:\Program Files (x86)\AviSynth+\plugins\hqdn3d.dll (n/a)
C:\Program Files (x86)\AviSynth+\plugins\LSMASHSource.dll (n/a)
C:\Program Files (x86)\AviSynth+\plugins\MaskTools.dll (1.5.1.0)
C:\Program Files (x86)\AviSynth+\plugins\medianblur.dll (0.8.4.1)
C:\Program Files (x86)\AviSynth+\plugins\MosquitoNR.dll (n/a)
C:\Program Files (x86)\AviSynth+\plugins\mvtools2.dll (2.6.0.5)
C:\Program Files (x86)\AviSynth+\plugins\nnedi3.dll (0.9.4.0)
C:\Program Files (x86)\AviSynth+\plugins\RemapFrames.dll (n/a)
C:\Program Files (x86)\AviSynth+\plugins\SangNom.dll (n/a)
C:\Program Files (x86)\AviSynth+\plugins\SmoothDeinterlacer.dll (1.5.5.0)
C:\Program Files (x86)\AviSynth+\plugins\TBilateral.dll (0.9.11.0)
C:\Program Files (x86)\AviSynth+\plugins\TIsophote.dll (0.9.1.0)
C:\Program Files (x86)\AviSynth+\plugins\TIVTC.dll (1.0.5.0)
C:\Program Files (x86)\AviSynth+\plugins\TNLMeans.dll (1.0.3.0)
C:\Program Files (x86)\AviSynth+\plugins\Toon-v1.1.dll (n/a)
C:\Program Files (x86)\AviSynth+\plugins\TTempSmooth.dll (0.9.4.0)
C:\Program Files (x86)\AviSynth+\plugins\UnDot.dll (0.0.1.1)
C:\Program Files (x86)\AviSynth+\plugins\UnFilter.dll (0.0.1.5)
C:\Program Files (x86)\AviSynth+\plugins\warpsharp.dll (n/a)
[Plugin errors]
-------------------------------------------------------------------------------
Cannot load file 'C:/Program Files (x86)/AviSynth+/plugins/LSMASHSource.dll'.
-------------------------------------------------------------------------------4.Error: At least one module has an unresolved import due to a missing export function in an implicitly dependent module.
Error: Modules with different CPU types were found.
Warning: At least one delay-load dependency module was not found.
Warning: At least one module has an unresolved import due to a missing export function in a delay-load dependent module.
Error locating file. The system can not find the path specified (2).:
API-MS-WIN-APPMODEL-RUNTIME-L1-1-0.DLL
API-MS-WIN-CORE-WINRT-ERROR-L1-1-0.DLL
API-MS-WIN-CORE-WINRT-L1-1-0.DLL
API-MS-WIN-CORE-WINRT-ROBUFFER-L1-1-0.DLL
API-MS-WIN-CORE-WINRT-STRING-L1-1-0.DLL
API-MS-WIN-SHCORE-SCALING-L1-1-1.DLL
DCOMP.DLL
IESHIMS.DLL5. Avisynth 2.6 or greater5. Avisynth+
StainlessS
16th July 2016, 09:59
Looks like it might be related to this:- https://support.microsoft.com/en-us/kb/2999226
EDIT: What is 'dll hell' anyway, does it really exist or just a figment of someones imagination.
Groucho2004
16th July 2016, 10:27
Looks like it might be related to this:- https://support.microsoft.com/en-us/kb/2999226
Yes, that's where my googling took me, too.
gunfelix
16th July 2016, 12:13
Looks like it might be related to this:- https://support.microsoft.com/en-us/kb/2999226
'Update for Windows (KB2999226) is already installed on this computer'
Reinstalling it doesn't help.
Groucho2004
16th July 2016, 13:37
One more thing you could try is the FFMS2 C-plugin (http://forum.doom9.org/showthread.php?p=1762372#post1762372). This does not produce the green blocks in my test.
Reel.Deel
16th July 2016, 13:56
There's also the patched FFMS2 here: http://avisynth.nl/index.php/High_bit-depth_Support_with_Avisynth#FFMS2
Have not tried with the sample above but might be worth a try (particularly the FFmbc build).
Taurus
16th July 2016, 15:23
@gunfelix:
Did you try "LSMASHSource-AviSynth-plugin-r879-msvc-32bit" lmashsource.dll
or the one one bundled with "L-SMASH-Works-r879-20160615-32bit"?
Static against dynamic linkin dll's
Both are working on my side.
Maybe some dependancies in the "L-SMASH-Works-r879-20160615-32bit" package missing?
Still strange, all decoders, except directshowsource are working fine on my side.
I think there is something fishy with the source.
Don't have the time to debug this phenomenon, maybe somebody with more insight can help you.
StainlessS
16th July 2016, 15:49
I think I read on StackOverflow, that could be related to coder using some dll not included in redistributable.
Taurus
16th July 2016, 20:04
I've finally made Directshowsource working.
FFDShow was the culprit!
I had FFDShow disabeled for avisynth and raw decoding for my tests.
But Process Explorer showed me ffdshow running in the background. No icon...
So I disabled ffdshow completely and "Bingo!", LAV Splitter and LAV Video Decoder takes control on the directshow chain.
If somebody wants to verify this: In ffdshow video decoder config/codecs:
Disable h264/avc
Disable avisynth
Disable raw
LAV is a working solution.
So time to say good bye to my old fella ffdshow...:devil::)
Only used for some postprocessing and from bad habit.
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.