Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Motion Vectors in AfterEffects

New Here ,
Jan 19, 2012 Jan 19, 2012

Hi,

The plugin i am developing needs Motion vectors. Looking at the SDK documentation the only  reference I have found in the sdk docs for motion vectors are in relation to the PF_CHANNELSUITE1, PF_GetLayerChannelTypedRefAndDesc. Which I read to only be availiable if they were in the underlying "file type", not quite sure what that means but doesn't sound like something I can depend on. Does after effects provide access to motion vectors for the input layer of effects?

Thanks,

Cian.

TOPICS
SDK
3.7K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Contributor , Jan 21, 2012 Jan 21, 2012

I am not an expert in video compression, but it seems to be the field specific term for the same concept.

After Effects does not provide any image processing algorithms beyond standard pixel blending and colour conversion, so yes, you would need to obtain pixels of the layer, call a custom algorithm and then write it back to the output layer/world. Beware that after effects uses ARGB channel sequence in a pixel, which is different to what most other libraries use (e.g. BGRA or RGBA).

greets

Translate
Contributor ,
Jan 20, 2012 Jan 20, 2012

Hi,

What exactly do you mean by motion vectors? Do you mean optical flow (http://en.wikipedia.org/wiki/Optical_flow)? Then you have to compute them yourself, e.g. using OpenCV.

greets

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jan 20, 2012 Jan 20, 2012

Thank you for your response. I am not really interested in identifing objects or surfaces in frame.

I am refereing to  http://en.wikipedia.org/wiki/Motion_vector that would descibe a pixels or block of pixels movement from one frame to another. These might be used for creating motion compensated frames (http://en.wikipedia.org/wiki/Motion_compensation).  

So I am hearing this is a no?

Thanks,

Cian.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Jan 21, 2012 Jan 21, 2012
LATEST

I am not an expert in video compression, but it seems to be the field specific term for the same concept.

After Effects does not provide any image processing algorithms beyond standard pixel blending and colour conversion, so yes, you would need to obtain pixels of the layer, call a custom algorithm and then write it back to the output layer/world. Beware that after effects uses ARGB channel sequence in a pixel, which is different to what most other libraries use (e.g. BGRA or RGBA).

greets

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines