shotstack / shotstack-sdk-php

PHP SDK for Shotstack, the cloud video editing API.
https://shotstack.io/product/sdk/php/
11 stars 5 forks source link

[Feature Request] wipeUp / wipeDown Transitions #4

Closed ghost closed 3 years ago

ghost commented 4 years ago

Would be great to provide a complete set of wipe style transitions with up and down included.

jeffski commented 4 years ago

Thanks for the suggestion. We are close to releasing a luma matte feature which will likely supersede all built in transitions. We'll provide a set of free to use transition mattes but also you will be able to create your own and also use off the shelf mattes from stock libraries.

We'll cover off the basic wipes but it will basically open up an infinite amount of possible fades and transitions.

I'll leave this issue open until we release the feature and post back when live.

ghost commented 4 years ago

Does the "Luma" update here https://github.com/shotstack/shotstack-sdk-php/releases/tag/v0.0.17 provide the changes you referenced above?

jeffski commented 4 years ago

Yes, we have pushed the change out to our sandbox/staging environment so you can start using it. It is currently undocumented but will be shortly along with a tutorial. It should be available in production end of this week.

If you want to try just add the luma asset on the same track as a video asset you want to apply the matte transition to, like this:

{
    "clips": [
        {
            "asset": {
                "type": "luma",
                "src": "https://shotstack-assets.s3-ap-southeast-2.amazonaws.com/examples/luma-mattes/paint-left.mp4"
            },
            "start": 2.5,
            "length": 1.12
        },
        {
            "asset": {
                "type": "video",
                "src": "https://shotstack-assets.s3-ap-southeast-2.amazonaws.com/footage/table-mountain.mp4"
            },
            "start": 0,
            "length": 5
        }
    ]
}

Place another asset in a track underneath this one and it will reveal the asset underneath.

You would need to translate this to using the PHP SDK but hopefully this will give you an idea.

jeffski commented 3 years ago

This has been available for a while now and is available in our SDK's and fully documented. Check out the tutorial here to get started: https://shotstack.io/learn/luma-matte-transitions/