transitive-bullshit / ffmpeg-gl-transition

FFmpeg filter for applying GLSL transitions between video streams.
650 stars 126 forks source link

[bug] vertical coordinate is inverted from gl-transition expectations #3

Closed drlukacs closed 6 years ago

drlukacs commented 6 years ago

The vertical (y) coordinate appears to be inverted: For example, the heart.glsl transition draws an upside-down heart.

transitive-bullshit commented 6 years ago

Thanks for the bug report!

It looks like the ffmpeg AVFrame has a flipped vertical axis, so I just added a commit to flip the uv that the gl-transition gets while double-flipping the uv.y for texture access.

I tested it locally on heart.glsl and it appears to work as intended. Please let me know if this fixes your use case.

drlukacs commented 6 years ago

Thank you @transitive-bullshit. Problem is solved.