scratch – Blame information for rev

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 <info@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\Format\Video;
13  
14 /**
15 * The WebM video format
16 */
17 class WebM extends DefaultVideo
18 {
19 public function __construct($audioCodec = 'libvorbis', $videoCodec = 'libvpx')
20 {
21 $this
22 ->setAudioCodec($audioCodec)
23 ->setVideoCodec($videoCodec);
24 }
25  
26 /**
27 * {@inheritDoc}
28 */
29 public function supportBFrames()
30 {
31 return true;
32 }
33  
34 /**
35 * {@inheritDoc}
36 */
37 public function getExtraParams()
38 {
39 return array('-f', 'webm');
40 }
41  
42 /**
43 * {@inheritDoc}
44 */
45 public function getAvailableAudioCodecs()
46 {
47 return array('libvorbis');
48 }
49  
50 /**
51 * {@inheritDoc}
52 */
53 public function getAvailableVideoCodecs()
54 {
55 return array('libvpx');
56 }
57 }