![]() Since this is an example app, the database migration is quite simple. Databaseįirst let's generate a Video model and make sure we create a controller and database migration as well: php artisan make:model Video -migration -controller I'll not dig into the configuration of these disks, you can find it in the Laravel documentation. ![]() Laravel's filesystem handles the storage of the files. The names of these disks are videos_disk, downloadable_videos and streamable_videos. Laravel FFMpeg FFMpeg Integration Visit Site Description FFMpeg Integration 'This package provides an integration with the multimedia framework FFmpeg for Laravel. One non-public disk to store the original uploaded video, one public disk to store a low-bitrate version of the video and another public disk to store a HLS export to do HTTP streaming. In this example I'll use three different Filesystem disks. What we'll build is a controller that stores an uploaded video and then dispatches two jobs that will process the video. It's great if you want to learn more about testing! The package itself is compatible with Laravel 5.1 and up but for this blogpost I'll use Laravel 5.4. I'm not digging into writing tests but if you're interested I suggest to take a look at Test Driven Laravel. Feel free to adopt if you like it or change it where needed. use FFmpeg use FFmpeg\Coordinate\Dimension use FFmpeg\Format\Video\X264 In your construct function. ![]() Go to your job class and at the top use these namespaces. ![]() Of course this example is just one way of doing it. When you run this command compressVideo.php file is created in your App\Jobs folder. The example below is not taken from one of these projects but the goal is to give you a sense of what you could do with this package. We use this package ourselves in three different production environments. Download this laravel script to create your own property listing and rental. After some issues that got opened on GitHub I decided to write a blogpost on the Laravel FFmpeg package we created. Waleed Ahmad wrote a good tutorial on how to transcode media in your Laravel apps with FFmpeg and defer processing using Laravel queues. Descargar e instalar FFMPEG en Windows Podemos descargar FFMPEG para Windows, macOS y Linux de forma totalmente gratuita desde el siguiente enlace. This is an independent PHP Laravel CMS script to create a real estate. ![]()
0 Comments
Leave a Reply. |