- Classes
- Namespaces
- Interfaces
- Traits
- Index

PHP-FFMpeg API
Class

# FFMpeg\Media\Video

class Video extends Audio

## Methods

| __construct($pathfile, FFMpegDriver $driver, FFProbe $ffprobe) | from AbstractMediaType
FFMpegDriver | getFFMpegDriver() | from AbstractMediaType
MediaTypeInterface | setFFMpegDriver(FFMpegDriver $driver) | from AbstractMediaType
FFProbe | getFFProbe() | from AbstractMediaType
MediaTypeInterface | setFFProbe(FFProbe $ffprobe) | from AbstractMediaType
string | getPathfile() | from AbstractMediaType
MediaTypeInterface | setFiltersCollection(FiltersCollection $filters) | from AbstractMediaType
MediaTypeInterface | getFiltersCollection() | from AbstractMediaType
StreamCollection | getStreams() | from AbstractStreamableMedia
Stream | getFormat() | from AbstractStreamableMedia
VideoFilters | filters() Returns the available filters. |
Video | addFilter(FilterInterface $filter) {@inheritdoc} |
Video | save(FormatInterface $format, string $outputPathfile) Exports the video in the desired format, applies registered filters. |
Frame | frame(TimeCode $at) Gets the frame at timecode. |

## Details

###
in AbstractMediaType at line 29
`public __construct($pathfile, FFMpegDriver $driver, FFProbe $ffprobe)`

#### Parameters

| $pathfile |
FFMpegDriver | $driver |
FFProbe | $ffprobe |

###
in AbstractMediaType at line 40
`public FFMpegDriver getFFMpegDriver()`

#### Return Value

FFMpegDriver |

###
in AbstractMediaType at line 50
`public MediaTypeInterface setFFMpegDriver(FFMpegDriver $driver)`

#### Parameters

FFMpegDriver | $driver |

#### Return Value

MediaTypeInterface |

###
in AbstractMediaType at line 60
`public FFProbe getFFProbe()`

#### Return Value

FFProbe |

###
in AbstractMediaType at line 70
`public MediaTypeInterface setFFProbe(FFProbe $ffprobe)`

#### Parameters

FFProbe | $ffprobe |

#### Return Value

MediaTypeInterface |

###
in AbstractMediaType at line 80
`public string getPathfile()`

#### Return Value

string |

###
in AbstractMediaType at line 90
`public MediaTypeInterface setFiltersCollection(FiltersCollection $filters)`

#### Parameters

FiltersCollection | $filters |

#### Return Value

MediaTypeInterface |

###
in AbstractMediaType at line 100
`public MediaTypeInterface getFiltersCollection()`

#### Return Value

MediaTypeInterface |

###
in AbstractStreamableMedia at line 24
`public StreamCollection getStreams()`

#### Return Value

StreamCollection |

###
in AbstractStreamableMedia at line 36
`public Stream getFormat()`

#### Return Value

Stream |

###
at line 34
`public VideoFilters filters()`

Returns the available filters.

#### Return Value

VideoFilters |

###
at line 44
`public Video addFilter(FilterInterface $filter)`

{@inheritdoc}

#### Parameters

FilterInterface | $filter |

#### Return Value

Video |

###
at line 61
`public Video save(FormatInterface $format, string $outputPathfile)`

Exports the video in the desired format, applies registered filters.

#### Parameters

FormatInterface | $format |
string | $outputPathfile |

#### Return Value

Video |

#### Exceptions

RuntimeException |

###
at line 180
`public Frame frame(TimeCode $at)`

Gets the frame at timecode.

#### Parameters

TimeCode | $at |

#### Return Value

Frame |