Class 'FFMpeg\FFMpeg\Coordinate\Dimension' not found
<p>I am trying to execute <a href="https://github.com/PHP-FFMpeg/PHP-FFMpeg#basic-usage" rel="nofollow">basic example</a> of php-ffmpeg library in Laravel 5. I have already installed ffmeg on ubuntu and working fine from command line. I am getting following error while running the example.</p>

<hr>

<p><strong>Error</strong></p>

<blockquote>
  <p>FatalErrorException in WelcomeController.php line 26: Class
  'FFMpeg\FFMpeg\Coordinate\Dimension' not found</p>
</blockquote>

<hr>

<p><strong>My Code</strong></p>

<p>

<pre><code>use FFMpeg\FFMpeg;

class WelcomeController extends Controller {

    public function __construct()
    {
        $this-&gt;middleware('guest');
    }

    public function index()
    {
        return view('welcome');
    }

    public function video()
    {

        $ffmpeg = FFMpeg::create();

        $video = $ffmpeg-&gt;open('test1.mp4');

        $video
            -&gt;filters()
            -&gt;resize(new FFMpeg\Coordinate\Dimension(320, 240))
            -&gt;synchronize();
        $video
            -&gt;frame(FFMpeg\Coordinate\TimeCode::fromSeconds(10))
            -&gt;save('frame.jpg');
        $video
            -&gt;save(new FFMpeg\Format\Video\X264(), 'export-x264.mp4')
            -&gt;save(new FFMpeg\Format\Video\WMV(), 'export-wmv.wmv')
            -&gt;save(new FFMpeg\Format\Video\WebM(), 'export-webm.webm');
    }
}
</code></pre>

<p>What would be the error?</p>