CopyVideoFormat   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 33
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 8
c 1
b 0
f 0
dl 0
loc 33
rs 10
wmc 4

4 Methods

Rating   Name   Duplication   Size   Complexity  
A supportBFrames() 0 3 1
A getAvailableVideoCodecs() 0 3 1
A getAvailableAudioCodecs() 0 3 1
A __construct() 0 7 1
1
<?php
2
3
namespace ProtoneMedia\LaravelFFMpeg\FFMpeg;
4
5
use FFMpeg\Format\Video\DefaultVideo;
6
7
class CopyVideoFormat extends DefaultVideo
8
{
9
    public function __construct()
10
    {
11
        $this->audioCodec = 'copy';
12
        $this->videoCodec = 'copy';
13
14
        $this->kiloBitrate      = 0;
15
        $this->audioKiloBitrate = null;
16
    }
17
18
    /**
19
     * {@inheritDoc}
20
     */
21
    public function getAvailableAudioCodecs()
22
    {
23
        return ['copy'];
24
    }
25
26
    /**
27
     * {@inheritDoc}
28
     */
29
    public function getAvailableVideoCodecs()
30
    {
31
        return ['copy'];
32
    }
33
34
    /**
35
     * {@inheritDoc}
36
     */
37
    public function supportBFrames()
38
    {
39
        return false;
40
    }
41
}
42