Yanak
22nd October 2017, 11:07
Hello all,
After getting pushed in a corner out of ideas trying to solve my issue i decide to ask for some help,
I'm simply trying to generate a picture with imagewriter that have his size based on the input video :
Input_Video = colorbars(width = 1920, height = 1080, pixel_type = "rgb32").killaudio()
Make_Pic = BlankClip(length=1, width= Input_Video.width , height= Input_Video.height, color=$FFFFFF) \
.Subtitle("Some Text", align= 1,size=300, text_color=$000000, halo_color=$FF000000) \
.ImageWriter("H:\pic_", 0,-1 , "bmp")
Make_Pic
return Input_Video
Goal is to have a video as input and create only one ( and possibly only once ) a .bmp picture based on the height & width of the input video using imagewriter, then calling again the video input and applying various filters on it.
- Problem is that following the script the creation of the image gets somehow skipped if i try to return the video at the end with either "return Input_Video" or simply calling it with "Input_Video".
- If i don't try to return the video at the end of the script the .bmp picture is created without issues, i tried many variations of this script and simply can't get this working :/
I am probably overlooking something but after spending hours on this trying to get it working and not progressing I resign and ask for help.
Thanks a lot in advance.
PS: in case it matters i'm using avs+x64
After getting pushed in a corner out of ideas trying to solve my issue i decide to ask for some help,
I'm simply trying to generate a picture with imagewriter that have his size based on the input video :
Input_Video = colorbars(width = 1920, height = 1080, pixel_type = "rgb32").killaudio()
Make_Pic = BlankClip(length=1, width= Input_Video.width , height= Input_Video.height, color=$FFFFFF) \
.Subtitle("Some Text", align= 1,size=300, text_color=$000000, halo_color=$FF000000) \
.ImageWriter("H:\pic_", 0,-1 , "bmp")
Make_Pic
return Input_Video
Goal is to have a video as input and create only one ( and possibly only once ) a .bmp picture based on the height & width of the input video using imagewriter, then calling again the video input and applying various filters on it.
- Problem is that following the script the creation of the image gets somehow skipped if i try to return the video at the end with either "return Input_Video" or simply calling it with "Input_Video".
- If i don't try to return the video at the end of the script the .bmp picture is created without issues, i tried many variations of this script and simply can't get this working :/
I am probably overlooking something but after spending hours on this trying to get it working and not progressing I resign and ask for help.
Thanks a lot in advance.
PS: in case it matters i'm using avs+x64