Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > Capturing and Editing Video > Avisynth Usage

Reply
 
Thread Tools Search this Thread Display Modes
Old 15th February 2017, 22:06   #1081  |  Link
GMJCZP
Registered User
 
GMJCZP's Avatar
 
Join Date: Apr 2010
Location: I have a statue in Hakodate, Japan
Posts: 744
In simple x264 I put directly (withouth avisynth) the source and the custom parameter --input-depth 12.

With both avisynth and avisynth+ I get the same results, opening the script with VirtualDub:

FFVideoSource("video.mp4") # source is x265 12 bit
AssumeFPS("ntsc_film")
f3kdb(0,0,0,0,0,0, keep_tv_range=true, dither_algo=2, input_mode=2, input_depth=12, output_mode=0, output_depth=8)
__________________
By law and justice!

GMJCZP's Arsenal
GMJCZP is offline   Reply With Quote
Old 15th February 2017, 22:21   #1082  |  Link
sneaker_ger
Registered User
 
Join Date: Dec 2002
Posts: 5,565
At least for AviSynth FFVideoSource() will already dither to 8 bit. For AviSynth+ it may output native 12 bit but then again f3kdb() does not support anything high-bitdepth natively in AviSynth+. It may depend on the exact ffms2 and AviSynth+ version but I believe your script never makes sense. You could try LWLibavvideosource() (L-Smash Works) with stacked=true and e.g. format="YUV420P16" (*) parameters, then input_mode=1 for f3kdb().


(*) format="YUV420P16" for 4:2:0 sub-sampling. Change accordingly if required.

Last edited by sneaker_ger; 15th February 2017 at 22:23.
sneaker_ger is offline   Reply With Quote
Old 15th February 2017, 22:49   #1083  |  Link
GMJCZP
Registered User
 
GMJCZP's Avatar
 
Join Date: Apr 2010
Location: I have a statue in Hakodate, Japan
Posts: 744
Could you please put the new script? My head is spinning.

EDIT: It works with Avisynth+:

LWLibavvideosource("C21 jap.mp4" )
AssumeFPS("ntsc_film")
f3kdb(0,0,0,0,0,0, keep_tv_range=true, dither_algo=2, input_mode=2, input_depth=12, output_mode=0, output_depth=8)

Now, is the script correct to go from 12 bit to 8 bit?

EDIT2: the outpu in Simplex264 is with garbage, lol.
__________________
By law and justice!

GMJCZP's Arsenal

Last edited by GMJCZP; 15th February 2017 at 23:22.
GMJCZP is offline   Reply With Quote
Old 15th February 2017, 23:22   #1084  |  Link
sneaker_ger
Registered User
 
Join Date: Dec 2002
Posts: 5,565
Yes, should be correct. It should also work like that in normal AviSynth.
sneaker_ger is offline   Reply With Quote
Old 15th February 2017, 23:29   #1085  |  Link
GMJCZP
Registered User
 
GMJCZP's Avatar
 
Join Date: Apr 2010
Location: I have a statue in Hakodate, Japan
Posts: 744
Quote:
Originally Posted by sneaker_ger View Post
Yes, should be correct. It should also work like that in normal AviSynth.
Ok, but and the output with garbage with simplex264? Should I define the format with LWLibavvideosource?
__________________
By law and justice!

GMJCZP's Arsenal
GMJCZP is offline   Reply With Quote
Old 15th February 2017, 23:30   #1086  |  Link
sneaker_ger
Registered User
 
Join Date: Dec 2002
Posts: 5,565
I cannot comprehend that sentence.
sneaker_ger is offline   Reply With Quote
Old 15th February 2017, 23:32   #1087  |  Link
GMJCZP
Registered User
 
GMJCZP's Avatar
 
Join Date: Apr 2010
Location: I have a statue in Hakodate, Japan
Posts: 744
The output with x264 presents garbage, is it not that I need to define the format with LWLibavvideosource to prevent encoding errors?
EDIT: placing LWLibavvideosource ("video.mp4", format = "YUV420P12") causes VirtualDub to display the same garbage as when encoding with Simplex264.
__________________
By law and justice!

GMJCZP's Arsenal

Last edited by GMJCZP; 15th February 2017 at 23:37.
GMJCZP is offline   Reply With Quote
Old 15th February 2017, 23:39   #1088  |  Link
sneaker_ger
Registered User
 
Join Date: Dec 2002
Posts: 5,565
You already had the correct script in #1085. Don't change it. The script outputs 8 bit so you must not set any bitdepth parameters in x264/Simplex264.
sneaker_ger is offline   Reply With Quote
Old 15th February 2017, 23:46   #1089  |  Link
GMJCZP
Registered User
 
GMJCZP's Avatar
 
Join Date: Apr 2010
Location: I have a statue in Hakodate, Japan
Posts: 744
Quote:
Originally Posted by sneaker_ger View Post
You already had the correct script in #1085. Don't change it. The script outputs 8 bit so you must not set any bitdepth parameters in x264/Simplex264.
Okay, but with that script the video looks like garbage after coding without set the bitdepth.
__________________
By law and justice!

GMJCZP's Arsenal
GMJCZP is offline   Reply With Quote
Old 15th February 2017, 23:53   #1090  |  Link
sneaker_ger
Registered User
 
Join Date: Dec 2002
Posts: 5,565
(Simple)x264 command/log?
sneaker_ger is offline   Reply With Quote
Old 16th February 2017, 00:04   #1091  |  Link
GMJCZP
Registered User
 
GMJCZP's Avatar
 
Join Date: Apr 2010
Location: I have a statue in Hakodate, Japan
Posts: 744
In these last tests with LWLibavvideosource coding errors have been my fault.
I added the Stab() function in the script and when removing everything was solved, thanks Sneaker_Ger and all for your patience.

Now the question remains: Do DePan/Repair have any incompatibility with 12 bit?
__________________
By law and justice!

GMJCZP's Arsenal

Last edited by GMJCZP; 16th February 2017 at 00:09.
GMJCZP is offline   Reply With Quote
Old 16th February 2017, 13:21   #1092  |  Link
real.finder
Registered User
 
Join Date: Jan 2012
Location: Mesopotamia
Posts: 2,587
Quote:
Originally Posted by GMJCZP View Post
In these last tests with LWLibavvideosource coding errors have been my fault.
I added the Stab() function in the script and when removing everything was solved, thanks Sneaker_Ger and all for your patience.

Now the question remains: Do DePan/Repair have any incompatibility with 12 bit?
the old avs don't support anything more than 8 bit, there are some hack way in some old filter like f3kdb and dither, any new filter that support anything more than 8 bit will need avs+, in old avs will work in 8 bit only cuz no one care about old hacks if there are native support
__________________
See My Avisynth Stuff
real.finder is offline   Reply With Quote
Old 26th February 2017, 11:42   #1093  |  Link
tormento
Acid fr0g
 
tormento's Avatar
 
Join Date: May 2002
Location: Italy
Posts: 2,542
Quote:
Originally Posted by cretindesalpes View Post
Could you give it a bump to adapt to latest AVS+ with high bit support too?
__________________
@turment on Telegram
tormento is offline   Reply With Quote
Old 29th November 2017, 02:04   #1094  |  Link
felicityb
Registered User
 
Join Date: Nov 2017
Posts: 3
Hello!! So I've recently gotten into making animated gifs using VirtualDub's gif creator and Avisynth (I don't got Photoshop monies). A major problem I'm running into is that it creates horrible banding, and I was wondering if Dither's color conversion scripts could help me out. Anyway, long story short - I keep getting this lovely message anytime I tried to call any Dither functions into my script.

"Avisynth Read Error: CAVIStreamSynth: System exception - Illegal Instruction at 0x5ab57ea0"

The script will open, but I get a gray box and anytime I try to scroll through the video, I get that message. I have the latest version of Dither and the 16bit mod of MaskTools, and I'm running the latest stable avs+.

This is my script -

ffvideosource(source="C:\Users\The Boys\Desktop\Dance.avi")

Dither_convert_yuv_to_rgb(matrix="601", interlaced=false,
tv_range=false, cplace="MPEG2", lsb_in=false,
chromak="spline64", mode=0, ampo=1, ampn=1,
staticnoise=false, slice=false, output="rgb24", noring=true)

And this does this with videos encoded with any codec. My initial test was with a video encoded with Lagarith, but then I tried one encoded in h.264 (it was a YT rip), and boop - same result.
felicityb is offline   Reply With Quote
Old 29th November 2017, 02:20   #1095  |  Link
StainlessS
HeartlessS Usurer
 
StainlessS's Avatar
 
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
Create a report with Groucho2004 AvsMeter, just so we know what you are using (versions etc).
Run command prompt,

then eg CD C:\Z (or change directory to some other known directory, I have a C:\Z folder)

AvsMeter -AvsInfo -log # will create log in Z directory. # Edit with AvsMeter in Z directory, or somewhere in your PATH.
Post it here.

Also, if possible, use AviSource, rather than FFMpegSource, just to remove it from the problem space.
also, does problem disappear if you change the arguments to Dither_convert_yuv_to_rgb ?

EDIT: Latest version Dither Tools is 1.27.2:- http://avisynth.nl/index.php/Dither_tools

EDIT: My log was 42KB (D9 post limit is 16KB in Usage forum), if you cut out the Internal(builtin) and External function/filter
names it should be cut down some (mine went down to 15KB), so you can post in thread.
__________________
I sometimes post sober.
StainlessS@MediaFire ::: AND/OR ::: StainlessS@SendSpace

"Some infinities are bigger than other infinities", but how many of them are infinitely bigger ???

Last edited by StainlessS; 29th November 2017 at 03:04.
StainlessS is offline   Reply With Quote
Old 29th November 2017, 03:07   #1096  |  Link
felicityb
Registered User
 
Join Date: Nov 2017
Posts: 3
Quote:
Originally Posted by StainlessS View Post
Create a report with Groucho2004 AvsMeter, just so we know what you are using (versions etc).
Run command prompt,

eg CD C:\Z (or change to some known directory, I have a C:\Z folder)

AvsMeter -AvsInfo -log # will create log in Z directory. # Edit with AvsMeter in Z directory, or somewhere in your PATH.
Post it here.

Also, if possible, use AviSource, rather than FFMpegSource, just to remove it from the problem space.
also, does problem disappear if you change the arguments to Dither_convert_yuv_to_rgb ?

EDIT: Latest version Dither Tools is 1.27.2:- http://avisynth.nl/index.php/Dither_tools

EDIT: My log was 42KB (D9 post limit is 16KB in Usage forum), if you cut out the Internal(builtin) and External function/filter
names it should be cut down some (mine went down to 15KB), so you can post in thread.
Sorry for the wait, it's been quite a while since I've used CLI. Anyway, here's the relevant bits of the log file.

Quote:
[OS/Hardware info]
Operating system: Windows 7 (x86) Service Pack 1.0 (Build 7601)
CPU brand string: Intel(R) Pentium(R) M processor 1.60GHz
CPU features: MMX, SSE, SSE2


[Avisynth info]
VersionString: AviSynth+ 0.1 (r1576, x86)
VersionNumber: 2.60
File / Product version: 2.6.0.5 / 2.6.0.5
Interface Version: 5
Multi-threading support: No
Avisynth.dll location: C:\Windows\system32\avisynth.dll
Avisynth.dll time stamp: 2014-01-03, 00:14:26 (UTC)
PluginDir2_5 (HKLM, x86): C:\Program Files\AviSynth\plugins
PluginDir+ (HKLM, x86): C:\Program Files\AviSynth+\plugins+


[CPP 2.5 / 32 Bit Plugins]
C:\Program Files\AviSynth\plugins\AddGrainC.dll [1.7.1.0]
C:\Program Files\AviSynth\plugins\dfttest.dll [1.9.4.0]
C:\Program Files\AviSynth\plugins\dither.dll
C:\Program Files\AviSynth\plugins\eedi3.dll [0.9.2.0]
C:\Program Files\AviSynth\plugins\FFT3DFilter.dll [2.1.1.0]
C:\Program Files\AviSynth\plugins\gradfun2db.dll
C:\Program Files\AviSynth\plugins\mvtools2.dll [2.6.0.5]
C:\Program Files\AviSynth\plugins\SmoothUV.dll [1.4.0.0]
C:\Program Files\AviSynth\plugins\SSE2Tools.dll
C:\Program Files\AviSynth\plugins\TBilateral.dll [0.9.11.0]
C:\Program Files\AviSynth\plugins\TUnsharp.dll [0.9.3.0]

[CPP 2.6 / 32 Bit Plugins]
C:\Program Files\AviSynth+\plugins+\DirectShowSource.dll
C:\Program Files\AviSynth+\plugins+\ImageSeq.dll
C:\Program Files\AviSynth+\plugins+\Shibatch.dll
C:\Program Files\AviSynth+\plugins+\TimeStretch.dll
C:\Program Files\AviSynth+\plugins+\VDubFilter.dll
C:\Program Files\AviSynth\plugins\DePan.dll [2.13.1.3]
C:\Program Files\AviSynth\plugins\DePanEstimate.dll [2.10.0.2]
C:\Program Files\AviSynth\plugins\DirectShowSource.dll [2.6.0.3]
C:\Program Files\AviSynth\plugins\ffms2.dll
C:\Program Files\AviSynth\plugins\masktools2.dll [2.1.0.0]
C:\Program Files\AviSynth\plugins\MedianBlur2.dll
C:\Program Files\AviSynth\plugins\RgTools.dll
C:\Program Files\AviSynth\plugins\TCPDeliver.dll [2.6.0.7]

[Scripts / AVSI]
C:\Program Files\AviSynth+\plugins+\colors_rgb.avsi
C:\Program Files\AviSynth\plugins\colors_rgb.avsi
C:\Program Files\AviSynth\plugins\Dehalo_alpha_MT2.avsi
C:\Program Files\AviSynth\plugins\dither.avsi
C:\Program Files\AviSynth\plugins\FFMS2.avsi
C:\Program Files\AviSynth\plugins\FineDehalo.avsi
C:\Program Files\AviSynth\plugins\LRemoveDust.avsi
C:\Program Files\AviSynth\plugins\mt_xxpand_multi.avsi
C:\Program Files\AviSynth\plugins\RemoveDustHD.avsi
C:\Program Files\AviSynth\plugins\tA7aHtYP.avsi

[Uncategorized / 32 Bit DLLs]
C:\Program Files\AviSynth\plugins\libfftw3f-3.dll

[Uncategorized / Other]
C:\Program Files\AviSynth+\plugins+\colors_rgb.txt
C:\Program Files\AviSynth\plugins\ffms2.lib
C:\Program Files\AviSynth\plugins\ffmsindex.exe
I changed FFMPEGSource to AVISource and I get the same message. I also ran the avs script through AVS Meter and it gives me the same error. And I've tweaked nearly every argument in the script, left some on default, etc etc. Gives me the same message.

Last edited by felicityb; 29th November 2017 at 04:41.
felicityb is offline   Reply With Quote
Old 29th November 2017, 14:28   #1097  |  Link
StainlessS
HeartlessS Usurer
 
StainlessS's Avatar
 
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
Code:
[Avisynth info]
VersionString: AviSynth+ 0.1 (r1576, x86)
VersionNumber: 2.60
File / Product version: 2.6.0.5 / 2.6.0.5
Interface Version: 5
Multi-threading support: No
Avisynth.dll location: C:\Windows\system32\avisynth.dll
Avisynth.dll time stamp: 2014-01-03, 00:14:26 (UTC)         # Old ver$, Update to current Pinterf Avisynth+ r2542 (20171114)

[Scripts / AVSI]
C:\Program Files\AviSynth\plugins\tA7aHtYP.avsi             # Dont like, looks like typical malware name. No hits on Google. What is it ?

[Uncategorized / 32 Bit DLLs]
C:\Program Files\AviSynth\plugins\libfftw3f-3.dll           # Should be in System32 EDIT: Think for dfttest and/or others.

[Uncategorized / Other]
C:\Program Files\AviSynth\plugins\ffms2.lib                 # Maybe Delete (not intended to be here)
Update to Avisynth+ r2542 (20171114), (Not MT Version, unless required) here:- https://github.com/pinterf/AviSynthPlus/releases

Many updates since your version AVS+, maybe problem fixed already.

EDIT: OK, Google'ed tA7aHtYP without the 'avsi' and its, DeHaloHmod 11 11 2016 http://pastebin.com/tA7aHtYP
Suggest rename to something more descriptive.
__________________
I sometimes post sober.
StainlessS@MediaFire ::: AND/OR ::: StainlessS@SendSpace

"Some infinities are bigger than other infinities", but how many of them are infinitely bigger ???

Last edited by StainlessS; 29th November 2017 at 14:38.
StainlessS is offline   Reply With Quote
Old 29th November 2017, 20:21   #1098  |  Link
felicityb
Registered User
 
Join Date: Nov 2017
Posts: 3
Quote:
Originally Posted by StainlessS View Post
Update to Avisynth+ r2542 (20171114), (Not MT Version, unless required) here:- https://github.com/pinterf/AviSynthPlus/releases

Many updates since your version AVS+, maybe problem fixed already.

EDIT: OK, Google'ed tA7aHtYP without the 'avsi' and its, DeHaloHmod 11 11 2016 http://pastebin.com/tA7aHtYP
Suggest rename to something more descriptive.
I upgraded everything and I'm still getting the same error. AVSMeter says the error is coming directly from Dither.dll.

Code:
AVSMeter 2.6.8 (x86) - Copyright (c) 2012-2017, Groucho2004
AviSynth+ 0.1 (r2544, MT, i386) (0.1.0.0)

Exception 0xC000001D [STATUS_ILLEGAL_INSTRUCTION]
Module:   C:\Program Files\AviSynth\plugins\dither.dll
Address:  0x60457EA0
I also couldn't find a version of avs+ r2544 without MT
felicityb is offline   Reply With Quote
Old 29th November 2017, 21:57   #1099  |  Link
Groucho2004
 
Join Date: Mar 2006
Location: Barcelona
Posts: 5,034
Quote:
Originally Posted by felicityb View Post
I upgraded everything and I'm still getting the same error. AVSMeter says the error is coming directly from Dither.dll.

Code:
AVSMeter 2.6.8 (x86) - Copyright (c) 2012-2017, Groucho2004
AviSynth+ 0.1 (r2544, MT, i386) (0.1.0.0)

Exception 0xC000001D [STATUS_ILLEGAL_INSTRUCTION]
Module:   C:\Program Files\AviSynth\plugins\dither.dll
Address:  0x60457EA0
I suggest starting from scratch. Remove all plugins (make a backup, just in case) and add plugins as needed.

Quote:
Originally Posted by felicityb View Post
I also couldn't find a version of avs+ r2544 without MT
There is no such thing. AVS+ has been multi-threaded since r16xx.
__________________
Groucho's Avisynth Stuff
Groucho2004 is offline   Reply With Quote
Old 30th November 2017, 12:11   #1100  |  Link
StainlessS
HeartlessS Usurer
 
StainlessS's Avatar
 
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
Quote:
Originally Posted by Groucho2004 View Post
There is no such thing. AVS+ has been multi-threaded since r16xx.
OK, but whats difference in the '-MT' postfixed versions then ???

Quote:
Latest release

r2544-MT
53b8d15

Avisynth+ r2544-MT

@pinterf pinterf released this 15 days ago · 2 commits to MT since this release
Avisynth+ r2544 (20171115)

20171115 r2544
Fixes

Expr: fix "scalef" for 10-16 bits

modification, additions

Expr optimization: eliminate ^1 +0 -0 *1 /1

Avisynth+ r2542 (20171114)
Fixes

Fix: RGB (full scale) conversion: 10-16 bits to 8 bits rounding issue; pic got darker in repeated 16<->8 bit conversion chain
Fix: ConvertToY: remove unnecessary clamp for Planar RGB 32 bit float
Fix: RGB ConvertToY when rec601, rec709 (limited range) matrix. Regression since r2266
EDIT: Arh, the one in red is not post fixed, perhaps pinterf adds -MT or not, depending upon mood
EDIT: Nah, my mistake, all are postfixed now in actual file name.
EDIT: Guess that I should not skim read.
EDIT: Think I'm finally gonna try avs+ (long-long time since done that), and in x64 I think.
__________________
I sometimes post sober.
StainlessS@MediaFire ::: AND/OR ::: StainlessS@SendSpace

"Some infinities are bigger than other infinities", but how many of them are infinitely bigger ???

Last edited by StainlessS; 30th November 2017 at 12:31.
StainlessS is offline   Reply With Quote
Reply

Tags
color banding, deblocking, noise reduction

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 00:04.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.