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 Development
Register FAQ Calendar Today's Posts Search

Reply
 
Thread Tools Search this Thread Display Modes
Old 9th August 2015, 11:40   #41  |  Link
RRD
Registered User
 
RRD's Avatar
 
Join Date: Nov 2009
Location: France
Posts: 20
I installed AviSynth 2.6.0 [May 31st, 2015], three files were created in the /AviSynth/plugins folder:


Whenever I try to use SoundOut() I get “Script error: there is no function named "SoundOut"”.

I downloaded Wilbert's SoundOut26-1.1.1.zip (that he posted in http://forum.doom9.org/showpost.php?...&postcount=185). If I put SoundOut.dll and libsndfile-1.dll in the /AviSynth/plugins folder, SoundOut() works.

Several pages indicate that the SoundOut plugin is included in AviSynth from 2.6.0 on (http://avisynth.nl/index.php/SoundOut), so I believe the behaviour I am experiencing is not normal.

Oddly, it is not mentioned in the 2.6.0 changelog (AviSynth/Docs/English/changelist26.htm file).

The same issue occurred on my two PCs (Windows 7 32-bit and Windows 7 64-bit) and I fail to see what I did wrong.
RRD is offline   Reply With Quote
Old 9th August 2015, 13:27   #42  |  Link
Groucho2004
 
Join Date: Mar 2006
Location: Barcelona
Posts: 5,034
Quote:
Originally Posted by RRD View Post
Several pages indicate that the SoundOut plugin is included in AviSynth from 2.6.0 on (http://avisynth.nl/index.php/SoundOut), so I believe the behaviour I am experiencing is not normal.
Oddly, it is not mentioned in the 2.6.0 changelog
All I can tell you is that SoundOut is not part of the Avisynth core no matter what is written on some pages.
The change log is the most reliable source.
Groucho2004 is offline   Reply With Quote
Old 9th August 2015, 15:45   #43  |  Link
Wilbert
Moderator
 
Join Date: Nov 2001
Location: Netherlands
Posts: 6,364
Yes it's not part of the core yet, i will update the documentation.
Wilbert is offline   Reply With Quote
Old 15th August 2015, 03:18   #44  |  Link
ryrynz
Registered User
 
ryrynz's Avatar
 
Join Date: Mar 2009
Posts: 3,650
Wilbert, using ffdshow and Avisynth 2.6 with Tritical's NNEDI3 using the following syntax

nnedi3_rpow2(rfactor=2)

is causing display issues (interlaced, stretched and wrong colors) in the media player MPDN, this issue does not occur with MPC so the developer thinks it's related to to memory corruption which .NET is quite strict on. I haven't encountered any issues using any other filters in MPDN with ffdshow.

Any chance I could get you track down where the issue lies?

The only thing that seems to affect it is setting RGB out in ffdshow, this changes the colors to match the original frames.

This issue occurs also with Avisynth MT and jpsdr's NNEDI3.
Cheers.
ryrynz is offline   Reply With Quote
Old 15th August 2015, 07:44   #45  |  Link
hello_hello
Registered User
 
Join Date: Mar 2011
Posts: 4,829
Quote:
Originally Posted by ryrynz View Post
The only thing that seems to affect it is setting RGB out in ffdshow, this changes the colors to match the original frames.
I don't know about the stretching, but I've found (using XP) that MPC-HC uses the wrong colorimetry for HD video (rec.601) when opening Avisynth scripts, unless ffdshow's raw video decoder is enabled in which case it displays using rec.709. I don't understand why, but a different set of filters is used.

With ffdshow's raw video decoder enabled (for YUV):
AVI/wav file source
ffdshow video decoder
WMR9 (renderless)

With ffdshow's raw video decoder disabled:
AVI/wav file source
AVI decompressor (YV12)
colour space converter
WMR9 (renderless)

In the second case I assume the colour space converter is converting to RGB using the wrong colorimetry.
hello_hello is offline   Reply With Quote
Old 15th August 2015, 08:47   #46  |  Link
Groucho2004
 
Join Date: Mar 2006
Location: Barcelona
Posts: 5,034
Quote:
Originally Posted by ryrynz View Post
causing display issues (interlaced, stretched and wrong colors) in the media player MPDN, this issue does not occur with MPC so the developer thinks it's related to to memory corruption
I can't follow the logic here. How does this point to Avisynth being the cause?

You should start with the most likely candidates for this problem,
- player/renderer
- ffdshow

Have you tried with AVS+?
Groucho2004 is offline   Reply With Quote
Old 15th August 2015, 08:48   #47  |  Link
Groucho2004
 
Join Date: Mar 2006
Location: Barcelona
Posts: 5,034
Quote:
Originally Posted by hello_hello View Post
I don't know about the stretching, but I've found (using XP) that MPC-HC uses the wrong colorimetry for HD video (rec.601) when opening Avisynth scripts, unless ffdshow's raw video decoder is enabled in which case it displays using rec.709. I don't understand why, but a different set of filters is used.
Why is this in the Avisynth thread?
Groucho2004 is offline   Reply With Quote
Old 15th August 2015, 13:30   #48  |  Link
ryrynz
Registered User
 
ryrynz's Avatar
 
Join Date: Mar 2009
Posts: 3,650
Quote:
Originally Posted by Groucho2004 View Post
I can't follow the logic here. How does this point to Avisynth being the cause?

You should start with the most likely candidates for this problem,
- player/renderer
- ffdshow

Have you tried with AVS+?
The logic is to start where you think someone can help

Player - I've already asked as above, perhaps his conclusion could be wrong, IDK, that's what I'm trying to figure out.
Renderer - No options to switch renderer in MPDN, but I've already tried all the options for output. Either I get no image or a distorted one.
ffdshow - no dev, no help. Again I've already looked at all the options, no difference.

Yes, same issue with AVS+ too (1576) Also occurs on my Intel graphics system running 7 (the other is running 10 with a 750Ti) so it's not related to any Windows version or graphics card drivers.

It would be quite simple to replicate, just need someone who can determine what's causing it and my first thought was Wilbert. Any help is appreciated.
ryrynz is offline   Reply With Quote
Old 15th August 2015, 14:01   #49  |  Link
Groucho2004
 
Join Date: Mar 2006
Location: Barcelona
Posts: 5,034
Quote:
Originally Posted by ryrynz View Post
The logic is to start where you think someone can help

Player - I've already asked as above, perhaps his conclusion could be wrong, IDK, that's what I'm trying to figure out.
Renderer - No options to switch renderer in MPDN, but I've already tried all the options for output. Either I get no image or a distorted one.
ffdshow - no dev, no help. Again I've already looked at all the options, no difference.

Yes, same issue with AVS+ too (1576) Also occurs on my Intel graphics system running 7 (the other is running 10 with a 750Ti) so it's not related to any Windows version or graphics card drivers.

It would be quite simple to replicate, just need someone who can determine what's causing it and my first thought was Wilbert. Any help is appreciated.
OK. All Avisynth versions show the same behaviour. I'm quite certain that you can rule out Avisynth.
You mentioned MPC, I would try MPC-HC and/or MPC-BE (or any other suitable player you can think of). If your problem doesn't show up with those I think you have found your culprit.

Edit: One more thing you could try is setting the internal number of threads to 1 in nnedi3.

Last edited by Groucho2004; 15th August 2015 at 14:22.
Groucho2004 is offline   Reply With Quote
Old 15th August 2015, 14:29   #50  |  Link
ryrynz
Registered User
 
ryrynz's Avatar
 
Join Date: Mar 2009
Posts: 3,650
Quote:
Originally Posted by Groucho2004 View Post
OK. All Avisynth versions show the same behaviour. I'm quite certain that you can rule out Avisynth.
You mentioned MPC, I would try MPC-HC and/or MPC-BE (or any other suitable player you can think of). If your problem doesn't show up with those I think you have found your culprit.
No issues with HC, BE, Zoomplayer or Potplayer. Guess I'll need Zach to look into it further.. I do wonder though what's different about the output of NNEDI3 that causes this to happen. I've had no issues with any other filters.
ryrynz is offline   Reply With Quote
Old 15th August 2015, 14:33   #51  |  Link
Groucho2004
 
Join Date: Mar 2006
Location: Barcelona
Posts: 5,034
Quote:
Originally Posted by ryrynz View Post
I do wonder though what's different about the output of NNEDI3 that causes this to happen. I've had no issues with any other filters.
Have you tried what I suggested in my edit above?
Groucho2004 is offline   Reply With Quote
Old 15th August 2015, 14:42   #52  |  Link
ryrynz
Registered User
 
ryrynz's Avatar
 
Join Date: Mar 2009
Posts: 3,650
Tried it, threads=1 and 0, also tried opt=1 and fapprox=0, no change.
ryrynz is offline   Reply With Quote
Old 17th August 2015, 05:14   #53  |  Link
foxyshadis
Angel of Night
 
foxyshadis's Avatar
 
Join Date: Nov 2004
Location: Tangled in the silks
Posts: 9,559
Try ending the scripts with Info() to figure out what colorspace nnedi3 is converting to. Maybe that'll sort it.
foxyshadis is offline   Reply With Quote
Old 29th August 2015, 00:32   #54  |  Link
real.finder
Registered User
 
Join Date: Jan 2012
Location: Mesopotamia
Posts: 2,587
Code:
ColorBars(width=640, height=480, pixel_type="RGB32")
ConvertToYV12(interlaced=true,chromaoutplacement="dv")
SeparateFields
uToY
Code:
ColorBars(width=640, height=480, pixel_type="RGB32")
Dither_convert_rgb_to_yuv(cplace ="dv",interlaced=true)
SeparateFields
uToY
there are a noticeable difference in vertical shift between them, I think the ConvertToYV12 do the dv-pal chroma with reverse u and v in shifting

----


edit: look like it not in ConvertToYV12 only

test with yv16
Code:
ColorBars(width=640, height=480, pixel_type="RGB32")
ConvertToYV16(interlaced=true)
SeparateFields
uToY
Code:
ColorBars(width=640, height=480, pixel_type="RGB32")
Dither_convert_rgb_to_yuv(cplace ="dv",interlaced=true)
ConvertToYV16(chromainplacement="dv", interlaced=true)
SeparateFields
uToY
edit: YToUV(VToY8(), UToY8(), ConvertToY8()) (or SwapUV()) before and after ConvertToXXX will solve the problem
__________________
See My Avisynth Stuff

Last edited by real.finder; 7th November 2015 at 00:41.
real.finder is offline   Reply With Quote
Old 24th September 2015, 11:39   #55  |  Link
ryrynz
Registered User
 
ryrynz's Avatar
 
Join Date: Mar 2009
Posts: 3,650
Quote:
Originally Posted by foxyshadis View Post
Try ending the scripts with Info() to figure out what colorspace nnedi3 is converting to. Maybe that'll sort it.
Info() just shows that YV12 being used. Subtitles delivered by xysubfilter appear perfectly normal on top of the stretched pink and green distorted display. Still no closer to figuring this one out. One thing I didn't mention is that nnedi3 used with awarp4 delivers the proper output.

Also if I launch a script playing that doesn't have nnedi3 in it and then change to one that does via ffdshow raw the output is correct, if I start with that script then the picture is distorted.

Another thing I've noticed is that when using MPC and nnedi3/ffdshow any subtitles displayed get processed by nnedi3, with MPDN they don't.. could that be related somehow? Disabling subtitles completely in MPDN doesn't change anything so I guess not.

Last edited by ryrynz; 24th September 2015 at 12:14.
ryrynz is offline   Reply With Quote
Old 8th December 2015, 05:13   #56  |  Link
StainlessS
HeartlessS Usurer
 
StainlessS's Avatar
 
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
Ignore this

Below Fails in v2.5 but works ok in v2.6.

Code:
INPUT=avisource("F:\V\cabaret.avi")
return last
Only mentions of 'Last' in v2.6 ChangeList below

Code:
Fixed AviSource NULL GetWritePtr() failure due to premature setting of last_frame. 
WriteFileStart/End save current_frame and set Last. 
Change implicit Last parsing for argless, bracketless calls to match bracketed cases. (Gavino)
Is it a bug or undocumented change ?

EDIT: Same for
Code:
INPUT=Directshowsource("F:\V\cabaret.avi")
return last
EDIT: IGNORE ABOVE ...
Uninstalled Avisynth completely. Deleted remaining Avisynth directory. Ran CCleaner and Cleaned registry too.
Re-installed Avisynth v2.6. No longer succeeds with above code snippit.
No idea at all why it succeeded before
__________________
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; 8th December 2015 at 07:36. Reason: Bewitched, Bothered and Bewildered
StainlessS is offline   Reply With Quote
Old 12th December 2015, 19:20   #57  |  Link
Groucho2004
 
Join Date: Mar 2006
Location: Barcelona
Posts: 5,034
Quote:
Originally Posted by rean View Post
Hello. Anyone compiled Avisynth using Visual C++ 2015?
Don't do it.
Newer compilers expect the code to be compliant with SEH (Microsoft Structured Exception Handling) which the current code base is not.

Apparently, Avisynth 2.6.1 will be compatible with newer compilers.

Last edited by Groucho2004; 12th December 2015 at 19:25.
Groucho2004 is offline   Reply With Quote
Old 12th December 2015, 19:38   #58  |  Link
Groucho2004
 
Join Date: Mar 2006
Location: Barcelona
Posts: 5,034
Quote:
Originally Posted by rean View Post
Groucho2004, /SAFESEH:NO
Never used it, I'd have to research what it does and if/how it would help.
Groucho2004 is offline   Reply With Quote
Old 12th December 2015, 22:18   #59  |  Link
Groucho2004
 
Join Date: Mar 2006
Location: Barcelona
Posts: 5,034
Quote:
Originally Posted by rean View Post
I have successfully compiled it (with SEt MT mod). It seems work correctly and exceptions are work too.
Ok. Please run this script with AVSMeter and tell us what happens:
Code:
setmemorymax(9999)
n = 12
colorbars(width = 1920 * n, height = 1080 * n, pixel_type = "yv12").killaudio().assumefps(25, 1).trim(0, 9999)
pointresize(width() - 64, height() - 64).turnleft()
temporalsoften(2,4,8,15,2)
pointresize(width() + 64, height() + 64).turnright()
temporalsoften(2,4,8,15,2)
a=selectevery(3, 0).addborders(0,0, 16,0).crop(0,0, -16,0)
b=selectevery(3, 1).addborders(0,0, 32,0).crop(0,0, -32,0)
c=selectevery(3, 2).addborders(0,0, 64,0).crop(0,0, -64,0)
interleave(a, b, c)
Groucho2004 is offline   Reply With Quote
Old 13th December 2015, 10:08   #60  |  Link
Groucho2004
 
Join Date: Mar 2006
Location: Barcelona
Posts: 5,034
Quote:
Originally Posted by rean View Post
Groucho2004,
You mean benchmark or memory usage? It works with the same speed as the reference mt 2.6 build and it eats the same memory (using your script or my real usage scripts). The difference is +/-1 %
That script causes Avisynth to throw an out of memory exception after reading 1 or 2 frames. I just wanted to know if your DLL behaves correctly in this situation.

Quote:
Originally Posted by rean View Post
It works with the same speed as the reference mt 2.6 build and it eats the same memory (using your script or my real usage scripts).
I'm surprised, to say the least, that the script actually worked for you.

Last edited by Groucho2004; 13th December 2015 at 11:05.
Groucho2004 is offline   Reply With Quote
Reply


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 04:13.


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