matzed
5th February 2006, 15:53
Hi all,
I am trying to wrote a generic avs file who should work for any kind of video files, and who generates a 9 images video file which will generate BMP files with imagewriter. In that way i can have 9 BMP images for each video i have in my HD.
I am using avisource if extension is avi, directshowsource if other.
In certain cases, videos soen't opens correctly with directshowsource, and avisynth returns a video with the error in it (i think it uses MessageClip for that). The problem is that in this case the script stops, and all the operation after directshowsource are not executed.
How can i force avisynth to return a BlankClip when the directshowsource returns an error, i.e. something like :
file = directshowsource("c:\test.mpg")
if error then file = BlankClip(length=9, color=$000000)
Thanks for your help
Matz
I am trying to wrote a generic avs file who should work for any kind of video files, and who generates a 9 images video file which will generate BMP files with imagewriter. In that way i can have 9 BMP images for each video i have in my HD.
I am using avisource if extension is avi, directshowsource if other.
In certain cases, videos soen't opens correctly with directshowsource, and avisynth returns a video with the error in it (i think it uses MessageClip for that). The problem is that in this case the script stops, and all the operation after directshowsource are not executed.
How can i force avisynth to return a BlankClip when the directshowsource returns an error, i.e. something like :
file = directshowsource("c:\test.mpg")
if error then file = BlankClip(length=9, color=$000000)
Thanks for your help
Matz