/** * Creates the filename for this video path and format * * @param FieldValues $values * @param string $format * @return string */ protected function filename($values, $format) { $filepath = $values->original; $audioChannels = $values->audio_channels(2); $audioBitDepth = $values->audio_bit_depth(16); $info = $this->MediaPaths->isUrlPath($filepath) ? $this->MediaPaths->fileVersionInfoFromUrl($filepath) : $this->MediaPaths->fileVersionInfo($filepath); return $this->MediaPaths->makeRelativePath("{$info->versiondir}/{$info->filename}_{$audioChannels}_{$audioBitDepth}.{$format}"); }