Welcome Guest ( Log In | Register )


Important

The forums will be closing permanently the weekend of March 15th. Please see the notice in the announcements forum for details.

 
Avisynth Error
« Next Oldest | Next Newest » Track this topic | Email this topic | Print this topic
uhhuhhim
Posted: Feb 6 2011, 08:26 PM


Newbie


Group: Members
Posts: 8
Member No.: 28430
Joined: 3-September 10



Hey everyone,

I'm not sure if this is the appropriate forum for this questions, so mods please feel free to move it, but:

I'm fairly new to AVISynth and what it does. I mostly use it to open non-AVI files for editing like most people would, but I've encountered the following error twice and want to what the general solution is:

"AviSynth open failure:
AviSynth error: YV12 images for output must have a width divisible by 4
(use crop)!"

What needs to be added to the code [DirectShowSource("nameoffile.mp4")] to resolve the error above if it's encountered?
 
     Top
ale5000
Posted: Feb 6 2011, 08:30 PM


Advanced Member


Group: Members
Posts: 1114
Member No.: 22180
Joined: 30-September 07



If you use Avisynth just to open non-AVI files then you could try to switch to input plugins: http://forums.virtualdub.org/index.php?act...=ST&f=7&t=12664
It is easier and you could also use Direct Stream Copy in this way.

I suggest the Quicktime input plugin for .mp4 files.

--------------------
New VirtualDub forum
VirtualDub AIO (All-in-One installer for VirtualDub and plugins)
Codec Toolbox RS (A tool to read/change merit of codecs and many other things)
Input plugins for VirtualDub / ACM codecs / VFW codecs
 
     Top
uhhuhhim
Posted: Feb 6 2011, 08:37 PM


Newbie


Group: Members
Posts: 8
Member No.: 28430
Joined: 3-September 10



QUOTE (ale5000 @ Feb 6 2011, 08:30 PM)
If you use Avisynth just to open non-AVI files then you could try to switch to input plugins: http://forums.virtualdub.org/index.php?act...=ST&f=7&t=12664
It is easier and you could also use Direct Stream Copy in this way.

Well, I really don't know much about plugins in general, but I was just wondering what the error itself meant?

The original file had dimensions of 718x364. I don't understand the error, what would the dimension need to be changed to in order for the error to disappear?

Edit: I also checked out the plugins list you linked and clicked on Quicktime (http://www.tateu.net/software/). Which program would I click on in the list, the one for AVISynth or VirtualDub?
 
     Top
dloneranger
Posted: Feb 6 2011, 08:56 PM


Moderator


Group: Moderators
Posts: 2366
Member No.: 22158
Joined: 26-September 07



1)
QUOTE
The original file had dimensions of 718x364. I don't understand the error, what would the dimension need to be changed to in order for the error to disappear?


It's self explanatory

The message says images can only be outputted at sizes that are multiples of 4
Your size is 718x364

718/4 = 179.5 This is obviously not divisible by 4, so it shows a message telling you that

You want to crop it to 179*4 = 716

The command in avisynth for that is
Crop(0,0,716,364)

2)
QUOTE
Edit: I also checked out the plugins list you linked and clicked on Quicktime (http://www.tateu.net/software/). Which program would I click on in the list, the one for AVISynth or VirtualDub?


If you want avisynth to be able to decode quicktime, then you'd pick the quicktime one
If you want virtualdub to be able to decode quicktime, then you'd pick the virtualdub one

--------------------
MultiAdjust JoinWav WavNormalize FFMPeg Input Plugin v1827 UnSharpMask
Windows7/8 Codec Chooser
All FccHandlers Stuff inc. Installers for acm codecs AAC, AC3, LameMp3
 
    Top
uhhuhhim
Posted: Feb 6 2011, 09:21 PM


Newbie


Group: Members
Posts: 8
Member No.: 28430
Joined: 3-September 10



QUOTE (dloneranger @ Feb 6 2011, 08:56 PM)

You want to crop it to 179*4 = 716

The command in avisynth for that is
Crop(0,0,716,364)


I would enter that as line 2 of the script file, right?

QUOTE
If you want virtualdub to be able to decode virtualdub , then you'd pick the virtualdub one


That's what I thought, but: What is the difference between the install zip and the source zip? I don't get it.
 
     Top
dloneranger
Posted: Feb 6 2011, 09:40 PM


Moderator


Group: Moderators
Posts: 2366
Member No.: 22158
Joined: 26-September 07



QUOTE
I would enter that as line 2 of the script file, right?

Yes

QUOTE
That's what I thought, but: What is the difference between the install zip and the source zip? I don't get it.


The install is the program or plugin etc
Source code is the code the author wrote that a compiler turns into the finished files

You only ever download the sourcecode if you want to compile it
It's one of those "if you dont' know what it is, you don't want it" things

--------------------
MultiAdjust JoinWav WavNormalize FFMPeg Input Plugin v1827 UnSharpMask
Windows7/8 Codec Chooser
All FccHandlers Stuff inc. Installers for acm codecs AAC, AC3, LameMp3
 
    Top
uhhuhhim
Posted: Feb 6 2011, 10:40 PM


Newbie


Group: Members
Posts: 8
Member No.: 28430
Joined: 3-September 10



QUOTE (dloneranger @ Feb 6 2011, 09:40 PM)
Yes


Ok.

QUOTE
The install is the program or plugin etc
Source code is the code the author wrote that a compiler turns into the finished files

You only ever download the sourcecode if you want to compile it
It's one of those "if you dont' know what it is, you don't want it" things


Ok. Thanks for being so patient with my questions. I'm gonna try the crop command in my .avs file and if that doesn't work, I'll try downloading and installing the plugin. I'll come back here if I have a problem smile.gif

Edit: The Crop(0,0,716,364) command worked perfectly, dloneranger. I just have a small question: What do the zeroes in the command represent?
 
     Top
ale5000
Posted: Feb 6 2011, 11:19 PM


Advanced Member


Group: Members
Posts: 1114
Member No.: 22180
Joined: 30-September 07



The video have four sides, four values to crop from four sides biggrin.gif

--------------------
New VirtualDub forum
VirtualDub AIO (All-in-One installer for VirtualDub and plugins)
Codec Toolbox RS (A tool to read/change merit of codecs and many other things)
Input plugins for VirtualDub / ACM codecs / VFW codecs
 
     Top
Gral
Posted: Feb 7 2011, 12:08 AM


Advanced Member


Group: Members
Posts: 125
Member No.: 11018
Joined: 11-July 04



You can use
ConvertToRGB()
instead - if you don't want crop.
 
     Top
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:
8 replies since Feb 6 2011, 08:26 PM Track this topic | Email this topic | Print this topic

<< Back to Advanced Video Processing