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

Reply
 
Thread Tools Search this Thread Display Modes
Old 30th November 2013, 18:08   #1181  |  Link
Myrsloik
Professional Code Monkey
 
Myrsloik's Avatar
 
Join Date: Jun 2003
Location: Kinnarps Chair
Posts: 2,555
Quote:
Originally Posted by Mystery Keeper View Post
Oh. And now vspipe x64 printed "Frame returned not of the declared type" before crashing. VirtualDub still works perfectly fine.

Why so hostile? I'm sincerely trying to help by testing and suggesting improvements. I really appreciate your hard work.
Because it's a pointless problem to solve. I may as well put up an archive of all the files in the installer or make it possible to manually select the python install path(s). That would make more sense even for your odd portable case.

Anyway, I'll test makediff and see what happens...
__________________
VapourSynth - proving that scripting languages and video processing isn't dead yet
Myrsloik is offline   Reply With Quote
Old 30th November 2013, 18:21   #1182  |  Link
Myrsloik
Professional Code Monkey
 
Myrsloik's Avatar
 
Join Date: Jun 2003
Location: Kinnarps Chair
Posts: 2,555
Quote:
Originally Posted by Mystery Keeper View Post
Played with my script. The source of crashes is core.std.MakeDiff.
Can't reproduce it. I used this script:

Code:
import vapoursynth as vs
    
core = vs.get_core()

clip = core.avisource.AVISource('a downloaded file.avi')
blur_clip = core.generic.Blur(clip, planes=0)
diff_clip = core.std.MakeDiff(clip, blur_clip, planes=0)
sharpened_clip = core.std.MergeDiff(clip, diff_clip, planes=0)
sharpened_clip.set_output()
__________________
VapourSynth - proving that scripting languages and video processing isn't dead yet
Myrsloik is offline   Reply With Quote
Old 30th November 2013, 18:35   #1183  |  Link
Mystery Keeper
Beyond Kawaii
 
Mystery Keeper's Avatar
 
Join Date: Feb 2008
Location: Russia
Posts: 724
Tried your script, only with ffms2. The same result:
-perfectly fine with vspipe x32
-perfectly fine with VirtualDub x64
-crash with vspipe x64

Went as far as completely reinstalling all Python 3.3 distributions and VapourSynth. Still the same.
__________________
...desu!

Last edited by Mystery Keeper; 30th November 2013 at 19:00.
Mystery Keeper is offline   Reply With Quote
Old 1st December 2013, 11:07   #1184  |  Link
Are_
Registered User
 
Join Date: Jun 2012
Location: Ibiza, Spain
Posts: 321
I'm able to reproduce this with some videos only when using ffms2 as source filter (linux.x86_64).

Investigating a little it looks like generic.Blur corrupts the frames (not sure why, how), and once this happens, if you pass this frames to std.MakeDiff it crashes vspipe (it also crashes vsviewer).
Code:
import vapoursynth as vs
    
core = vs.get_core()

clip = core.ffms2.Source('[some] random - 07 [file].mkv')
blur_clip = core.generic.Blur(clip, planes=0)
#diff_clip = core.std.MakeDiff(clip, blur_clip, planes=0)
diff_clip = blur_clip
sharpened_clip = core.std.MergeDiff(clip, diff_clip, planes=0)
sharpened_clip.set_output()
A corrupted frame.

But I'm not sure if its ffms2's fault, genericfilters's fault, or my hardware. :/

Last edited by Are_; 1st December 2013 at 11:10.
Are_ is offline   Reply With Quote
Old 1st December 2013, 12:21   #1185  |  Link
Mystery Keeper
Beyond Kawaii
 
Mystery Keeper's Avatar
 
Join Date: Feb 2008
Location: Russia
Posts: 724
For me it doesn't crash my 64-bit build of vsviewer. Though I modified it to compile with Qt5. Shouldn't make any difference. Also, no corrupted frames.
64-bit vspipe crashes regardless of the source, even if I replace Blur with BlankClip. Both MakeDiff and MergeDiff lead to crash. And the crash always happens right in the beginning.
__________________
...desu!

Last edited by Mystery Keeper; 1st December 2013 at 12:36.
Mystery Keeper is offline   Reply With Quote
Old 4th December 2013, 22:30   #1186  |  Link
Myrsloik
Professional Code Monkey
 
Myrsloik's Avatar
 
Join Date: Jun 2003
Location: Kinnarps Chair
Posts: 2,555
Here's R22 RC1.

Changes from test 3:
  • Generic filters not included at the moment since there probably are some bugs in it
  • Fixes reference leaks in some filters when a frame error occurs
  • The resize filter reports more errors immediately on instantiation
  • Sorting in list_functions()

Still looking at the crashiness created by generic filters and maybe makediff. Will probably be a few more days until I have time to investigate it thoroughly.
__________________
VapourSynth - proving that scripting languages and video processing isn't dead yet
Myrsloik is offline   Reply With Quote
Old 5th December 2013, 12:48   #1187  |  Link
Myrsloik
Professional Code Monkey
 
Myrsloik's Avatar
 
Join Date: Jun 2003
Location: Kinnarps Chair
Posts: 2,555
Here's an x64 compile of genericfilters.

It fixes an access violation in the sse2 optimized 9/10 bit 3x3 convolution. If there still are any crahes at all remaining in VapourSynth it'd be helpful if you report them again.
__________________
VapourSynth - proving that scripting languages and video processing isn't dead yet
Myrsloik is offline   Reply With Quote
Old 5th December 2013, 17:37   #1188  |  Link
Mystery Keeper
Beyond Kawaii
 
Mystery Keeper's Avatar
 
Join Date: Feb 2008
Location: Russia
Posts: 724
The same. 64-bit vspipe crashes on MakeDiff/MergeDiff. Now with error message.


Edit: And I remind, the crash does NOT happen in 64-bit VirtualDub.
__________________
...desu!

Last edited by Mystery Keeper; 5th December 2013 at 17:55.
Mystery Keeper is offline   Reply With Quote
Old 5th December 2013, 22:32   #1189  |  Link
Myrsloik
Professional Code Monkey
 
Myrsloik's Avatar
 
Join Date: Jun 2003
Location: Kinnarps Chair
Posts: 2,555
Quote:
Originally Posted by Mystery Keeper View Post
The same. 64-bit vspipe crashes on MakeDiff/MergeDiff. Now with error message.


Edit: And I remind, the crash does NOT happen in 64-bit VirtualDub.
Tried it again. It still works here in vspipe. I even tried YUV420P8/10/16 in valgrind and didn't see anything relevant. I simply can't reproduce it.

Any kind of debugging info would help or would it be possible for me to remotely control your computer for a few minutes?
__________________
VapourSynth - proving that scripting languages and video processing isn't dead yet
Myrsloik is offline   Reply With Quote
Old 5th December 2013, 23:41   #1190  |  Link
Mystery Keeper
Beyond Kawaii
 
Mystery Keeper's Avatar
 
Join Date: Feb 2008
Location: Russia
Posts: 724
WunDBG output.

__________________
...desu!

Last edited by Mystery Keeper; 5th December 2013 at 23:47.
Mystery Keeper is offline   Reply With Quote
Old 6th December 2013, 00:18   #1191  |  Link
Myrsloik
Professional Code Monkey
 
Myrsloik's Avatar
 
Join Date: Jun 2003
Location: Kinnarps Chair
Posts: 2,555
Find me on irc. I'm in #darkhold on Rizon and some other avisynth channels. This won't be solved without faster communication.
__________________
VapourSynth - proving that scripting languages and video processing isn't dead yet
Myrsloik is offline   Reply With Quote
Old 6th December 2013, 16:39   #1192  |  Link
absence
Registered User
 
Join Date: Jun 2009
Posts: 17
Is the CUDA work general enough that OpenCL can be added as well? Hopefully CUDA and OpenCL can share common logic for handling filter placement, transfers to/from GPU, etc. even if the APIs are different.
absence is offline   Reply With Quote
Old 7th December 2013, 12:56   #1193  |  Link
Myrsloik
Professional Code Monkey
 
Myrsloik's Avatar
 
Join Date: Jun 2003
Location: Kinnarps Chair
Posts: 2,555
Here's R22 RC2.

After a long debugging session with mystery keeper a very rare asm bug on x64 windows has been fixed.
The installer will now refuse to install when the python installations are a mess.
Generic filters has been added again after finding the crash issue in the code.

This will most likely become the final released version.
__________________
VapourSynth - proving that scripting languages and video processing isn't dead yet
Myrsloik is offline   Reply With Quote
Old 9th December 2013, 18:54   #1194  |  Link
lansing
Registered User
 
Join Date: Sep 2006
Posts: 1,657
I tried to run a vpy script in vsfs mode, the script has loaded mvtools2 from avs, and when I try to mount it, it returned an error.
Code:
Python exception: No attribute with the name avs exists. Did you mistype a plugin namespace?
Traceback (most recent call last):
  File "vapoursynth.pyx", line 1148, in vapoursynth.vpy_evaluateScript (src\cython\vapoursynth.c:17833)
  File "F:\source\1993.vpy", line 12, in <module>
    core.avs.LoadPlugin(r"C:\Program Files (x86)\AviSynth 2.5\plugins\mvtools2.dll")
  File "vapoursynth.pyx", line 789, in vapoursynth.Core.__getattr__ (src\cython\vapoursynth.c:12729)
vapoursynth.Error: No attribute with the name avs exists. Did you mistype a plugin namespace?
lansing is offline   Reply With Quote
Old 9th December 2013, 19:02   #1195  |  Link
Myrsloik
Professional Code Monkey
 
Myrsloik's Avatar
 
Join Date: Jun 2003
Location: Kinnarps Chair
Posts: 2,555
Quote:
Originally Posted by lansing View Post
I tried to run a vpy script in vsfs mode, the script has loaded mvtools2 from avs, and when I try to mount it, it returned an error.
Code:
Python exception: No attribute with the name avs exists. Did you mistype a plugin namespace?
Traceback (most recent call last):
  File "vapoursynth.pyx", line 1148, in vapoursynth.vpy_evaluateScript (src\cython\vapoursynth.c:17833)
  File "F:\source\1993.vpy", line 12, in <module>
    core.avs.LoadPlugin(r"C:\Program Files (x86)\AviSynth 2.5\plugins\mvtools2.dll")
  File "vapoursynth.pyx", line 789, in vapoursynth.Core.__getattr__ (src\cython\vapoursynth.c:12729)
vapoursynth.Error: No attribute with the name avs exists. Did you mistype a plugin namespace?
VSFS uses the x64 version by default and avisynth compatibility can't work there. You have to unregister the x64 vsfs handler and register the 32 bit one instead to do what you want.
__________________
VapourSynth - proving that scripting languages and video processing isn't dead yet
Myrsloik is offline   Reply With Quote
Old 9th December 2013, 19:11   #1196  |  Link
lansing
Registered User
 
Join Date: Sep 2006
Posts: 1,657
Quote:
Originally Posted by Myrsloik View Post
VSFS uses the x64 version by default and avisynth compatibility can't work there. You have to unregister the x64 vsfs handler and register the 32 bit one instead to do what you want.
Got it working thanks.
lansing is offline   Reply With Quote
Old 10th December 2013, 14:53   #1197  |  Link
Myrsloik
Professional Code Monkey
 
Myrsloik's Avatar
 
Join Date: Jun 2003
Location: Kinnarps Chair
Posts: 2,555
R22 released. Download links on the website as usual and the changelog is in the first post.

Don't forget to read the notes in the release blog post about compatibility. Lut2, Merge and MaskedMerge got the arguments changed.

Have fun with the 64 bits in windows.
__________________
VapourSynth - proving that scripting languages and video processing isn't dead yet
Myrsloik is offline   Reply With Quote
Old 10th December 2013, 15:29   #1198  |  Link
sneaker_ger
Registered User
 
Join Date: Dec 2002
Posts: 5,565
The following script does crash, not sure if l-smash's or vs' fault:
Code:
import vapoursynth as vs
core = vs.get_core()

ret = core.lsmas.LWLibavSource(source='park_joy_1080p50.y4m')

ret.set_output()
http://media.xiph.org/video/derf/y4m/park_joy_1080p50.y4m
sneaker_ger is offline   Reply With Quote
Old 10th December 2013, 15:34   #1199  |  Link
Myrsloik
Professional Code Monkey
 
Myrsloik's Avatar
 
Join Date: Jun 2003
Location: Kinnarps Chair
Posts: 2,555
Quote:
Originally Posted by sneaker_ger View Post
The following script does crash, not sure if l-smash's or vs' fault:
Code:
import vapoursynth as vs
core = vs.get_core()

ret = core.lsmas.LWLibavSource(source='park_joy_1080p50.y4m')

ret.set_output()
http://media.xiph.org/video/derf/y4m/park_joy_1080p50.y4m
Try it with other files and see if it works. Preferably one that's worked before.
__________________
VapourSynth - proving that scripting languages and video processing isn't dead yet
Myrsloik is offline   Reply With Quote
Old 10th December 2013, 15:55   #1200  |  Link
sneaker_ger
Registered User
 
Join Date: Dec 2002
Posts: 5,565
Crashes with other y4m files as well, not with e.g. mov files. So I guess it's l-smash's fault?

Any other source filter for y4m?
sneaker_ger is offline   Reply With Quote
Reply

Tags
speed, vaporware, vapoursynth


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 02:54.


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