CopyFormat   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 5
c 1
b 0
f 0
dl 0
loc 23
rs 10
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getExtraParams() 0 3 1
A __construct() 0 5 1
A getAvailableAudioCodecs() 0 3 1
1
<?php
2
3
namespace ProtoneMedia\LaravelFFMpeg\FFMpeg;
4
5
use FFMpeg\Format\Audio\DefaultAudio;
6
7
class CopyFormat extends DefaultAudio
8
{
9
    public function __construct()
10
    {
11
        $this->audioCodec = 'copy';
12
13
        $this->audioKiloBitrate = null;
14
    }
15
16
    /**
17
     * {@inheritdoc}
18
     */
19
    public function getExtraParams()
20
    {
21
        return ['-codec', 'copy'];
22
    }
23
24
    /**
25
     * {@inheritDoc}
26
     */
27
    public function getAvailableAudioCodecs()
28
    {
29
        return ['copy'];
30
    }
31
}
32