scratch – Blame information for rev 115

Subversion Repositories:
Rev:
Rev Author Line No. Line
115 office 1 <?php
2  
3 /*
4 * This file is part of PHP-FFmpeg.
5 *
6 * (c) Alchemy <dev.team@alchemy.fr>
7 *
8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this source code.
10 */
11  
12 namespace FFMpeg\Filters\Video;
13  
14 use FFMpeg\Format\VideoInterface;
15 use FFMpeg\Media\Video;
16  
17 /**
18 * Synchronizes audio and video in case of desynchronized movies.
19 */
20 class SynchronizeFilter implements VideoFilterInterface
21 {
22 private $priority;
23  
24 public function __construct($priority = 12)
25 {
26 $this->priority = $priority;
27 }
28  
29 /**
30 * {@inheritdoc}
31 */
32 public function getPriority()
33 {
34 return $this->priority;
35 }
36  
37 /**
38 * {@inheritdoc}
39 */
40 public function apply(Video $video, VideoInterface $format)
41 {
42 return array('-async', '1', '-metadata:s:v:0', 'start_time=0');
43 }
44 }