Compress Videos using FFmpeg Laravel & shell_exec method

--

Compress Videos using FFmpeg Laravel & shell_exec method
Compress Videos using FFmpeg Laravel & shell_exec method

Introduction

  1. First of all, install FFmpeg in your composer. Perform the steps below to install it on Ubuntu:composer require pbmedia/laravel-FFmpeg
  2. Start by updating the packages list: $ sudo apt update
  3. In your app.php use these
  4. In providers
    Pbmedia\LaravelFFmpeg\FFmpegServiceProvider::class
  5. In your controller
    Use the following on top of the controller-
  6. use FFmpeg;
    use FFmpeg\Coordinate\Dimension;
    use FFmpeg\Format\Video\X264;

Result:

By using this example you can do video compression.

Webner Solutions is a Software Development company focused on developing Insurance Agency Management Systems, Learning Management Systems and Salesforce apps. Contact us at dev@webners.com for your Insurance, eLearning and Salesforce applications.

Originally published at https://blog.webnersolutions.com on April 29, 2020.

--

--

Webner Solutions
Webner Solutions

Written by Webner Solutions

Our team in Salesforce is very strong, with in-depth knowledge of Salesforce classic and Lightning development as well as the Service cloud.

No responses yet