transitive-bullshit / ffmpeg-gl-transition

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

general uniforms support #21

Open turengege opened 6 years ago

turengege commented 6 years ago

Hi This feature is unfinished but I think it should help.

Usage:

./ffmpeg -i media/0.mp4 -i media/1.mp4 -filter_complex "gltransition=duration=4:offset=1.5:source=WaterDrop.glsl:uniforms='amplitude=10.0&speed=15.5'" -y out.mp4

Limits: only int and float are supported

turengege commented 6 years ago

need more test

transitive-bullshit commented 6 years ago

This looks awesome @turengege! Will have some time to view more in-depth this weekend 💯

Thanks!!

turengege commented 6 years ago

Int and float vectors are supported now:

ffmpeg -i media/0.mp4 -i media/1.mp4 -filter_complex "gltransition=duration=2:offset=1.5:source=fadecolor.glsl:uniforms='color=vec3(0.0,0.5,0.0)',format=yuv420p" -y out.mp4

I don't have much C Coding experience. Hope for code reviewing and suggestions. @transitive-bullshit

transitive-bullshit commented 6 years ago

Added a few quick comments -- overall, this looks really great!

xinghuolei commented 5 years ago

awesome! why not merge it ?

joao-carvalheira commented 5 years ago

Hello, which ffmpeg version were you using?

owen-m1 commented 5 years ago

+1

turengege commented 4 years ago

Hello, which ffmpeg version were you using?

I think I use the latest version at that time.

SiviP-Glossai commented 1 year ago

@transitive-bullshit @xinghuolei What's missing here to merge? I am willing to step in and help finish this one