Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > Capturing and Editing Video > Avisynth Usage

Reply
 
Thread Tools Search this Thread Display Modes
Old 2nd August 2010, 11:34   #1  |  Link
Music Fan
Registered User
 
Join Date: May 2009
Location: Belgium
Posts: 1,719
Destination height is 0 or less (crop problem)

Hi,
I have a very weird problem.
With these scripts, there's no problem ;
Code:
Mpeg2Source(...)
crop(0,40,0,-40)
Code:
video=Mpeg2Source(...)
audio=WAVSource(...)
audiodub(video,audio)
But with this one ;
Code:
video=Mpeg2Source(...)
audio=WAVSource(...)
crop(0,40,0,-40)
audiodub(video,audio)
... I get this message : "Crop : Destination height is 0 or less".

Why can't I crop when I add sound ?
I don't understand it.
Thanks for your help.
Music Fan is offline   Reply With Quote
Old 2nd August 2010, 11:46   #2  |  Link
Didée
Registered User
 
Join Date: Apr 2002
Location: Germany
Posts: 5,394
The crop line is referring to Avisynth's inherent "LAST" variable. Since you put video and audio explicitely into named variables, the "last" variable is not defined.

The script
Code:
Mpeg2Source(...)
crop(0,40,0,-40)
is seen by Avisynth like this:
Code:
last = Mpeg2Source(...)
last.crop(0,40,0,-40)

Correct code:
Code:
video = Mpeg2Source(...)
audio = WAVSource(...)
video = video.crop(0,40,0,-40)
audiodub(video,audio)
__________________
- We´re at the beginning of the end of mankind´s childhood -

My little flickr gallery. (Yes indeed, I do have hobbies other than digital video!)
Didée is offline   Reply With Quote
Old 2nd August 2010, 12:09   #3  |  Link
Music Fan
Registered User
 
Join Date: May 2009
Location: Belgium
Posts: 1,719
Thanks a lot !
I didn't know that at all, I usually do very simple scripts without sound.

Last edited by Music Fan; 2nd August 2010 at 12:12.
Music Fan is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 10:46.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, vBulletin Solutions Inc.