timing picute in a video

This forum is for questions and discussion of all the aspects of handling and cleaning up your footage with Avisynth.
DorDahan
Joined: Fri Apr 22, 2011 7:55 pm
Org Profile

Re: timing picute in a video

Post by DorDahan » Sun Apr 24, 2011 6:29 am

i tried to change

Code: Select all

Overlay(part5, image2, x=-130, y=-180, mask=image.ShowAlpha())
-130 and -180 many times.
it doesnt effect anything.. what should i change here?

User avatar
Zarxrax
Joined: Sun Apr 01, 2001 6:37 pm
Location: North Cackalacky
Contact:
Org Profile

Re: timing picute in a video

Post by Zarxrax » Sun Apr 24, 2011 11:34 am

Ok, maybe I was wrong about the size part. But you need to write the whole error message, because "something about wight" doesn't really tell me anything.

DorDahan
Joined: Fri Apr 22, 2011 7:55 pm
Org Profile

Re: timing picute in a video

Post by DorDahan » Sun Apr 24, 2011 3:34 pm

Code: Select all

video = DirectShowSource("C:\Users\Dor\Desktop\dbzkaiep\ep1\[www.bafsubs.tk]Dragon_Ball_Kai_E1.mkv",fps=23.976,convertfps=true)
part1 = video.Trim(0,300)
part2 = video.Trim(301,404)
part3 = video.Trim(405,0)
image = Imagesource("C:\Users\Dor\Desktop\dbzkaiep\ep1\pic7.png", pixel_type="RGB32")
video = part1 ++ Overlay(part2, image, x=130, y=140, mask=image.ShowAlpha()) ++ part3

part4 = video.Trim(0,300)
part5 = video.Trim(301,404)
part6 = video.Trim(405,0)
image2 = Imagesource("C:\Users\Dor\Desktop\dbzkaiep\ep1\dbzkailogo2.png", pixel_type="RGB32")
Overlay(part5, image2, x=450, y=500, mask=image2.ShowAlpha())
part4 ++ Overlay(part5, image2, x=450, y=470, mask=image2.ShowAlpha()) ++ part6

textsub("C:\Users\Dor\Desktop\dbzkaiep\DragonBallKaiStartKaraoke.ass")
i tried to put textsub but it says "textsub: cant open"C'....................................................................."
blah blah; lint 15

DorDahan
Joined: Fri Apr 22, 2011 7:55 pm
Org Profile

Re: timing picute in a video

Post by DorDahan » Sun Apr 24, 2011 3:42 pm

when i use the code this way:

Code: Select all

textsub("C:\Users\Dor\Desktop\dbzkaiep\[www.bafsubs.tk]Dragon Ball Kai E1.ass")
video = DirectShowSource("C:\Users\Dor\Desktop\dbzkaiep\ep1\[www.bafsubs.tk]Dragon_Ball_Kai_E1.mkv",fps=23.976,convertfps=true)
part1 = video.Trim(0,300)
part2 = video.Trim(301,404)
part3 = video.Trim(405,0)
image = Imagesource("C:\Users\Dor\Desktop\dbzkaiep\ep1\pic7.png", pixel_type="RGB32")
video = part1 ++ Overlay(part2, image, x=130, y=140, mask=image.ShowAlpha()) ++ part3

part4 = video.Trim(0,300)
part5 = video.Trim(301,404)
part6 = video.Trim(405,0)
image2 = Imagesource("C:\Users\Dor\Desktop\dbzkaiep\ep1\dbzkailogo2.png", pixel_type="RGB32")
Overlay(part5, image2, x=450, y=500, mask=image2.ShowAlpha())
part4 ++ Overlay(part5, image2, x=450, y=470, mask=image2.ShowAlpha()) ++ part6
i get script error invaild arguments to function "textsub"

User avatar
Zarxrax
Joined: Sun Apr 01, 2001 6:37 pm
Location: North Cackalacky
Contact:
Org Profile

Re: timing picute in a video

Post by Zarxrax » Sun Apr 24, 2011 6:39 pm

I dont see anything wrong with your textsub line. Make sure the path to the file is correct.

But anyways, you will need to remove that line or get it working in order for it to tell an error about anything else.

DorDahan
Joined: Fri Apr 22, 2011 7:55 pm
Org Profile

Re: timing picute in a video

Post by DorDahan » Sun Apr 24, 2011 6:48 pm

Code: Select all

video = DirectShowSource("C:\Users\Dor\Desktop\פרקי דרגון בול\נקיים\[www.bafsubs.tk]Dragon_Ball_Kai_E1.mkv",fps=23.976,convertfps=true)
part1 = video.Trim(0,300)
part2 = video.Trim(301,404)
part3 = video.Trim(405,0)
image = Imagesource("C:\Users\Dor\Desktop\פרקי דרגון בול\נקיים\pic7.png", pixel_type="RGB32")
video = part1 ++ Overlay(part2, image, x=130, y=140, mask=image.ShowAlpha()) ++ part3

part4 = video.Trim(0,300)
part5 = video.Trim(301,404)
part6 = video.Trim(405,0)
image2 = Imagesource("C:\Users\Dor\Desktop\פרקי דרגון בול\נקיים\dbzkailogo2.png", pixel_type="RGB32")
Overlay(part5, image2, x=450, y=500, mask=image2.ShowAlpha())
part4 ++ Overlay(part5, image2, x=450, y=470, mask=image2.ShowAlpha()) ++ part6

TextSub("C:\Users\Dor\Desktop\dbzkaiep\ep1\DragonBallKaiStartKaraoke.ass")
used this code.. its opens with out errors but i cant see the text.... what now? :cry:

User avatar
Phantasmagoriat
Joined: Mon Feb 06, 2006 11:26 pm
Status: ☁SteamPunked≈☂
Contact:
Org Profile

Re: timing picute in a video

Post by Phantasmagoriat » Wed Apr 27, 2011 7:55 am

Perhaps there is something wrong with your subtitles. Maybe check the timecodes with a program like Aegisub, and re-save your subs.
Image
Org Profile | AMVGuide | Phan Picks! | THE424SHOW | YouTube | "Painkiller"

"Effort to Understand; Effort to be Understood; to See through Different Eyes."

Mister Hatt
Joined: Tue Dec 25, 2007 8:26 am
Status: better than you
Contact:
Org Profile

Re: timing picute in a video

Post by Mister Hatt » Sun May 01, 2011 8:55 am

At this point it's probably just faster to use a .ass script for subtitles and textsub() it. Just remember to set the encoding flag for Hebrew or you get some fancy word order issues that are a pain to fix. Phantasmagoriat's suggestion of Aegisub is right on, that's the app you need.

Locked

Return to “AviSynth Help”