manzati
10th May 2011, 16:21
I want to use the AvsP pyavs module into my python karaoke creator. The module will be used to create a preview.
When i run the example script (main action) on pyavs.py it crashes dealing with an access error violation.
Traceback (most recent call last):
Avisynth clip created successfully
Width = 216
Height = 30
Framecount = 240
Framerate = 24.0
FramerateNumerator = 24
FramerateDenominator = 1
Audiorate = 44100
Audiolength = 441000
Audiochannels = 1
Audiobits = 16
IsAudioFloat = False
IsAudioInt = True
Colorspace = RGB32
IsRGB = True
IsRGB24 = False
IsRGB32 = True
IsYUY2 = False
IsYV12 = False
IsYUV = False
IsPlanar = False
IsInterleaved = True
IsFieldBased = False
IsFrameBased = True
GetParity = 0
HasAudio = True
HasVideo = True
Traceback (most recent call last):
File "C:\Python26\visualkaraoker\pyavs.py", line 516, in <module>
AVI._x_SaveFrame("test_file.bmp", 0)
File "C:\Python26\visualkaraoker\pyavs.py", line 409, in _x_SaveFrame
self._GetFrame(frame)
File "C:\Python26\visualkaraoker\pyavs.py", line 301, in _GetFrame
src=self.clip.GetFrame(frame)
File "C:\Python26\visualkaraoker\avisynth.py", line 277, in GetFrame
def GetFrame(self,n): return avs_get_frame(self,n)
WindowsError: exception: access violation reading 0x0000000000000004
I've also tried to use pyavs_avifile, but it outputs an image containing "DircetShowSource" could not be found. But the compiled version of AvsP works.... why?
Please can anyone tell me how to solve or suggest me a python/dll subtitle rendering?
Thanks for the attention,
Mattia.
When i run the example script (main action) on pyavs.py it crashes dealing with an access error violation.
Traceback (most recent call last):
Avisynth clip created successfully
Width = 216
Height = 30
Framecount = 240
Framerate = 24.0
FramerateNumerator = 24
FramerateDenominator = 1
Audiorate = 44100
Audiolength = 441000
Audiochannels = 1
Audiobits = 16
IsAudioFloat = False
IsAudioInt = True
Colorspace = RGB32
IsRGB = True
IsRGB24 = False
IsRGB32 = True
IsYUY2 = False
IsYV12 = False
IsYUV = False
IsPlanar = False
IsInterleaved = True
IsFieldBased = False
IsFrameBased = True
GetParity = 0
HasAudio = True
HasVideo = True
Traceback (most recent call last):
File "C:\Python26\visualkaraoker\pyavs.py", line 516, in <module>
AVI._x_SaveFrame("test_file.bmp", 0)
File "C:\Python26\visualkaraoker\pyavs.py", line 409, in _x_SaveFrame
self._GetFrame(frame)
File "C:\Python26\visualkaraoker\pyavs.py", line 301, in _GetFrame
src=self.clip.GetFrame(frame)
File "C:\Python26\visualkaraoker\avisynth.py", line 277, in GetFrame
def GetFrame(self,n): return avs_get_frame(self,n)
WindowsError: exception: access violation reading 0x0000000000000004
I've also tried to use pyavs_avifile, but it outputs an image containing "DircetShowSource" could not be found. But the compiled version of AvsP works.... why?
Please can anyone tell me how to solve or suggest me a python/dll subtitle rendering?
Thanks for the attention,
Mattia.