{"id":15027441,"url":"https://github.com/projektgopher/laravel-ffmpeg-tools","last_synced_at":"2026-03-06T23:32:39.075Z","repository":{"id":143659827,"uuid":"616610269","full_name":"ProjektGopher/laravel-ffmpeg-tools","owner":"ProjektGopher","description":"Tools and utilities to help generate complex strings for FFMpeg in Laravel.","archived":false,"fork":false,"pushed_at":"2024-03-19T22:09:24.000Z","size":45,"stargazers_count":50,"open_issues_count":1,"forks_count":2,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-04-09T02:59:18.033Z","etag":null,"topics":["ffmpeg","ffmpeg-wrapper","laravel","laravel-package","php","php81","tween","tweening"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ProjektGopher.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2023-03-20T18:15:29.000Z","updated_at":"2024-11-18T14:12:25.000Z","dependencies_parsed_at":null,"dependency_job_id":"7efed404-20ec-433c-9caf-a021552d1bd4","html_url":"https://github.com/ProjektGopher/laravel-ffmpeg-tools","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":"spatie/package-skeleton-laravel","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ProjektGopher%2Flaravel-ffmpeg-tools","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ProjektGopher%2Flaravel-ffmpeg-tools/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ProjektGopher%2Flaravel-ffmpeg-tools/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ProjektGopher%2Flaravel-ffmpeg-tools/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ProjektGopher","download_url":"https://codeload.github.com/ProjektGopher/laravel-ffmpeg-tools/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248104610,"owners_count":21048367,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ffmpeg","ffmpeg-wrapper","laravel","laravel-package","php","php81","tween","tweening"],"created_at":"2024-09-24T20:06:26.359Z","updated_at":"2025-10-24T15:31:38.169Z","avatar_url":"https://github.com/ProjektGopher.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Tools and utilities to help generate complex strings for FFMpeg in Laravel.\n[![Latest Version on Packagist](https://img.shields.io/packagist/v/projektgopher/laravel-ffmpeg-tools.svg?style=flat-square)](https://packagist.org/packages/projektgopher/laravel-ffmpeg-tools)\n[![GitHub Tests Action Status](https://img.shields.io/github/actions/workflow/status/projektgopher/laravel-ffmpeg-tools/run-tests.yml?branch=main\u0026label=tests\u0026style=flat-square)](https://github.com/projektgopher/laravel-ffmpeg-tools/actions?query=workflow%3Arun-tests+branch%3Amain)\n[![GitHub Code Style Action Status](https://img.shields.io/github/actions/workflow/status/projektgopher/laravel-ffmpeg-tools/phpstan.yml?branch=main\u0026label=code%20style\u0026style=flat-square)](https://github.com/projektgopher/laravel-ffmpeg-tools/actions?query=workflow%3A\"phpstan\"+branch%3Amain)\n[![Total Downloads](https://img.shields.io/packagist/dt/projektgopher/laravel-ffmpeg-tools.svg?style=flat-square)](https://packagist.org/packages/projektgopher/laravel-ffmpeg-tools)\n\nFFMpeg can be opaque in its commands. Take the following example:\n```bash\nif(lt(t\\,5)\\,((w*7/8)-text_w-200)\\,if(gt(t\\,5+2)\\,((w*7/8)-text_w)\\,((w*7/8)-text_w-200)+((((w*7/8)-text_w)-((w*7/8)-text_w-200))(if(eq(((t-5)/2)\\,0)\\,0\\,if(eq(((t-5)/2)\\,1)\\,1\\,pow(2\\,-10((t-5)/2))*sin((((t-5)/2)*10-0.75)*2.0943951023932)+1))))))\n```\nThis **completely bonkers** string will calculate _just_ the `x` position of a text element. It'll wait 5 seconds, animate the element from 200px left of its final position over 2 seconds with an easing of `EaseOutElastic`. How would you approach changing this to an easing of `EaseOutBounce`? Not gonna happen.\n\nThis package allows you to build these string in a fluent way that's easily maintainable in a way that feels familiar to php and Laravel devs. The following example will output the exact same string as above, but imagine how much easier it'll be to change:\n```php\n$finalXpos = '(w*7/8)-text_w';\n$x = (new Tween())\n    -\u003efrom(\"{$finalXpos}-200\")\n    -\u003eto($finalXpos)\n    -\u003edelay(Timing::seconds(5))\n    -\u003eduration(Timing::seconds(2))\n    -\u003eease(Ease::OutElastic);\n```\n\nThe API is modelled after [The GreenSock Animation Platform (GSAP)](https://greensock.com/get-started/#whatIsGSAP)\nand all the math for the easings is ported from [Easings.net](https://easings.net).\nThe stringification of these math strings is ported from [This Gitlab repo](https://gitlab.com/dak425/easing/-/blob/master/ffmpeg/ffmpeg.go)\n\n## Installation\nYou can install the package via composer:\n```bash\ncomposer require projektgopher/laravel-ffmpeg-tools\n```\n\n## Usage\n - [Easing](docs/Easing.md)\n - [Expressions](docs/Expressions.md)\n - [Filters](docs/Filters.md)\n - [Filter Graphs](docs/FilterGraphs.md)\n - [Timelines and Keyframes](docs/Timelines.md)\n - [Tweening](docs/Tweening.md)\n\n### Using outside of a Laravel application\nFor now this package can only be used within a Laravel app, but there are plans to extract the core functionality into a separate package that can be used without being bound to the framework.\n\n## Testing\n - [Instructions](docs/Testing.md)\n\n## Changelog\nPlease see [RELEASES](releases) for more information on what has changed recently.\n\n## Contributing\nPlease see [CONTRIBUTING](CONTRIBUTING.md) for details.\n\n## Security Vulnerabilities\nPlease review [our security policy](../../security/policy) on how to report security vulnerabilities.\n\n## Credits\nA **big** \"Thank You\" to [EXACTsports](https://github.com/EXACTsports) for supporting the development of this package.\n\n- [Len Woodward](https://github.com/ProjektGopher)\n- [All Contributors](../../contributors)\n\n## License\nThe MIT License (MIT). Please see [License File](LICENSE.md) for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprojektgopher%2Flaravel-ffmpeg-tools","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprojektgopher%2Flaravel-ffmpeg-tools","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprojektgopher%2Flaravel-ffmpeg-tools/lists"}