Open AK-ITT opened 1 year ago
It's hard to comment without know if you're hoping to actually render mashes into true video format or not. If so, the third approach seems like the only possible option in Movie Masher since FFmpeg doesn't inherently understand ShaderToy or Canvas. In this case I would again point you to Remix since that effectively screen scrapes a web browser where these could be better supported.
If instead you are only trying to render the mash in a web browser the other approaches could make more sense. If you expect to continue working on the project indefinitely you might want to work with current version, understanding that some changes still need to be merged into the core library - the client changes are in the 5.1.2 branch, but not the server ones.
I'd need to investigate further, but additional changes might be possible in the current version to reintroduce canvas support for client-only deployments. The interface between React and the core library is actually agnostic about the content of each track - both SVGSVGElement and HTMLDivElement objects are supported. Theoretically at least, a canvas element could be returned.
Thanks @syntropo, for sharing your thoughts. As per your suggestion, we are focusing on SVG-based rendering and We have found similar kinds of effects in the SVG
Sobel Operator:- https://codepen.io/mullany/pen/pgKejj Raindrop:- https://codepen.io/tmrDevelops/pen/raGBoz Mattias CRT:- https://codepen.io/alisasila/pen/qBRNJbj
We are trying to integrate SobelOperator in movie-masher. Here are the steps and high-level structure:-
I am sharing code snippets please review the attachments for reference.
Right now, we are not getting the desired output
the second image is showing that SVG classes are adding
We are not able to figure out the correct way to implement this effect Could you please review and suggest the recommended approach?
Thanks AK
Hi @syntropo, Sobel-Operator effect issue is resolved. Earlier we were using some different configurations in the 'SobelOperatorFilter.ts' file, now we have changed few properties in the file.
Sharing the updated file please review it. sobel-operator-effect-working.zip
Thanks AK
Fantastic! If you're not needing to render the mash into video it seems like you're all set, right?
Hi @syntropo , earlier for us SVG-effect rendering was a hard nut to crack, but after implementing the sobel-operator-effect successfully we feel confident about the usages of movie-masher library.
Thanks for your support.
Cheers!
One thing I would like to discuss regarding 'shader-toy' implementation in movie-masher-v5.0.6
Could you please guide us on how we should proceed from here?
Thanks
AK
Can't you just create a new context manually and supply it to the class instance? I forget how flexible the class was in that old version...
can you provide some code snippet if possible?
Hi @syntropo, We have implemented raindrop/ripple effect in movie-masher(5.1.1) through react-shadertoy,
As we are planning to render the shader effect through the canvas in (5.1.1) version. for this, we have few approaches that I would like to discuss with you.
[High-level approach - First]
[High-level approach - Second]
[High-level approach - Three]
that you already mentioned in this thread
please share your thoughts on this.
Thanks AK
Shader.zip