Thread: Avisynth+
View Single Post
Old 21st February 2017, 01:07   #3055  |  Link
real.finder
Registered User
 
Join Date: Jan 2012
Location: Mesopotamia
Posts: 2,587
Quote:
Originally Posted by blaze077 View Post
Could anyone tell me why Avisynth gives an error when trying to use the chroma planes of YV12 videos that output a non-mod2 chroma plane but have a mod2 luma resolution?

Resolutions such as: 1760x990 or 1504x846

Script:
Code:
BlankClip(240, 1760, 990, pixel_type="YV12").UToY()
"Filter Error: Attempted to request a planar frame that wasn't mod2 in height!"

The BlankClip filter call alone works well.
Thank you.

EDIT: How would one process the chroma separately in this case? UToY() outputs a YV12 video so it cannot be non-mod2. And adding a ConvertToY8() call after UToY() also does not work.
UToY is old, it's for avs25, use UToY8 is avs26

and in avs+ there are ExtractU
__________________
See My Avisynth Stuff
real.finder is offline