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 > General > Newbies
Register FAQ Calendar Today's Posts Search

Reply
 
Thread Tools Search this Thread Display Modes
Old 12th January 2013, 13:48   #1  |  Link
feisty2
I'm Siri
 
feisty2's Avatar
 
Join Date: Oct 2012
Location: void
Posts: 2,633
colorspace problem

I wanna adjust the color of some vids in After Effects
since I have to edit it in AE,so the colorspace will become RGB32 and the original clips are yv12,so when I finish editing video in AE and convert it to yv12 again,there'll certainly cause quality loss
any way to make colorspace conversion like yv12-rgb32-yv12 lossless?
I found a old post here and get these codes
Code:
ConvertToYV24(interlaced=true, chromaresample="point")
MergeChroma(PointResize(width, height, 0, 2))
ConvertToRGB32()
... # filtering in RGB32
ConvertToYV12(interlaced=true, chromaresample="point")
but it doesn't work very well,sometimes chroma look "spilling out" and I don't know why
any ideas?
feisty2 is offline   Reply With Quote
Old 12th January 2013, 17:55   #2  |  Link
Gavino
Avisynth language lover
 
Join Date: Dec 2007
Location: Spain
Posts: 3,431
Quote:
Originally Posted by feisty2 View Post
I found a old post here and get these codes
Code:
ConvertToYV24(interlaced=true, chromaresample="point")
MergeChroma(PointResize(width, height, 0, 2))
ConvertToRGB32()
... # filtering in RGB32
ConvertToYV12(interlaced=true, chromaresample="point")
but it doesn't work very well,sometimes chroma look "spilling out"
I recognise that code from this thread.
But is your source really interlaced?

If not, you should instead use the code from post #19 of the thread:
Code:
ConvertToYV24(chromaresample="point")
MergeChroma(PointResize(width, height, 0, 1))
ConvertToRGB32()
... # filtering in RGB32
ConvertToYV12(chromaresample="point")
__________________
GScript and GRunT - complex Avisynth scripting made easier
Gavino is offline   Reply With Quote
Old 13th January 2013, 02:19   #3  |  Link
feisty2
I'm Siri
 
feisty2's Avatar
 
Join Date: Oct 2012
Location: void
Posts: 2,633
it's telecined, the clips are from dvd,so is it interlaced type?
feisty2 is offline   Reply With Quote
Old 13th January 2013, 02:36   #4  |  Link
Asmodian
Registered User
 
Join Date: Feb 2002
Location: San Jose, California
Posts: 4,407
Do you want to feed RGB32 out of Avisynth to AE?

If you do want RGB32 leave out the final ConvertToYV12.
Code:
ConvertToYV24(interlaced=true, chromaresample="point")
MergeChroma(PointResize(width, height, 0, 2))
ConvertToRGB32()
If you can I think it would be better to do IVTC before any color space conversions.
Asmodian is offline   Reply With Quote
Old 13th January 2013, 02:40   #5  |  Link
poisondeathray
Registered User
 
Join Date: Sep 2007
Posts: 5,379
Quote:
Originally Posted by feisty2 View Post
it's telecined, the clips are from dvd,so is it interlaced type?
DVD can be hard telecine (encoded interlaced) or soft telecine (progressive encoded with flags)


Eitherway I would IVTC it (so it's progressive 24p, and use the progressive version of the script) before importing into AE, and use the reverse script after
poisondeathray is offline   Reply With Quote
Old 13th January 2013, 09:09   #6  |  Link
feisty2
I'm Siri
 
feisty2's Avatar
 
Join Date: Oct 2012
Location: void
Posts: 2,633
I already did ivtc before colorspace conversion
what to do with colorspace is right?
Code:
ConvertToYV24(chromaresample="point")
MergeChroma(PointResize(width, height, 0, 1))
ConvertToRGB32()
... # filtering in RGB32
ConvertToYV12(chromaresample="point")
is this right?
feisty2 is offline   Reply With Quote
Old 13th January 2013, 09:28   #7  |  Link
Asmodian
Registered User
 
Join Date: Feb 2002
Location: San Jose, California
Posts: 4,407
What are you doing? Let us know your process step by step.

If you are loading a script in After Effects just use:
Code:
ConvertToYV24(chromaresample="point")
MergeChroma(PointResize(width, height, 0, 1))
ConvertToRGB32()
Think of After Effects as this line:
Code:
... # filtering in RGB32
Use this on the output from After Effects (save as RGB32 in AE):
Code:
ConvertToYV12(chromaresample="point")
Quote:
Originally Posted by feisty2 View Post
I already did ivtc before colorspace conversion
Once you do IVTC the video is progressive.
Asmodian is offline   Reply With Quote
Old 13th January 2013, 09:33   #8  |  Link
feisty2
I'm Siri
 
feisty2's Avatar
 
Join Date: Oct 2012
Location: void
Posts: 2,633
here the original clip (ivtc only,zoomed to 1600%)

here's the picture after using
Code:
ConvertToYV24(chromaresample="point")
MergeChroma(PointResize(width, height, 0, 1))
ConvertToRGB32()
... # filtering in RGB32
ConvertToYV12(chromaresample="point")

something's wrong with chroma,the line I circled out seems "blue"
both
Code:
ConvertToYV24(interlaced=true, chromaresample="point")
MergeChroma(PointResize(width, height, 0, 2))
ConvertToRGB32()
... # filtering in RGB32
ConvertToYV12(chromaresample="point")
and
Code:
ConvertToYV24(chromaresample="point")
MergeChroma(PointResize(width, height, 0, 1))
ConvertToRGB32()
... # filtering in RGB32
ConvertToYV12(chromaresample="point")
give me this "blue line" thing

Last edited by feisty2; 13th January 2013 at 09:35.
feisty2 is offline   Reply With Quote
Reply


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 07:02.


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