manusse
2nd November 2008, 22:02
Hi,
Maybe this question has already been asked but a simple search on the forum didn't give me an answer. So please direct me to the answer if it already exists.
My problem is rather simple:
I own a low cost HDD-camcorder with which I've filmed some home movies. The format output by the camcorder is mpeg2, 720x576 25fps interlaced (PAL) with a 16:9 aspect ratio. I want to overlay some ass subtitle but I want them to match the 16:9 aspect ratio. Also I don't want to modify my ass file if possible.
I've tried the following script (v is my video clip):
v=ConvertToRGB32(v)
v=ResetMask(v)
BackGround=BlankClip(v,width=width(v)*4/3)
BackGround=TextSub(BackGround,"presentations.ass")
BackGround=BicubicResize(BackGround,width(v),height(v))
v=OverLay(v,Background,mode="add",opacity=1)
return v
This works quite well except I would like my subtitle to be opaque and here it is transparent. I know this comes from the OverLay instruction. Is there a simple way to overlay Background with all its non-black areas being opaque and overlaid on top of v and its black areas being transparent?
Thanks for your help
Manusse
Maybe this question has already been asked but a simple search on the forum didn't give me an answer. So please direct me to the answer if it already exists.
My problem is rather simple:
I own a low cost HDD-camcorder with which I've filmed some home movies. The format output by the camcorder is mpeg2, 720x576 25fps interlaced (PAL) with a 16:9 aspect ratio. I want to overlay some ass subtitle but I want them to match the 16:9 aspect ratio. Also I don't want to modify my ass file if possible.
I've tried the following script (v is my video clip):
v=ConvertToRGB32(v)
v=ResetMask(v)
BackGround=BlankClip(v,width=width(v)*4/3)
BackGround=TextSub(BackGround,"presentations.ass")
BackGround=BicubicResize(BackGround,width(v),height(v))
v=OverLay(v,Background,mode="add",opacity=1)
return v
This works quite well except I would like my subtitle to be opaque and here it is transparent. I know this comes from the OverLay instruction. Is there a simple way to overlay Background with all its non-black areas being opaque and overlaid on top of v and its black areas being transparent?
Thanks for your help
Manusse