diff --git a/src/Options.php b/src/Options.php index 5823af7..9a55db1 100644 --- a/src/Options.php +++ b/src/Options.php @@ -37,7 +37,7 @@ class Options self::AUDIO_FORMAT_ALAC, ]; - public const RECODE_VIDEO_FORMATS = ['mp4', 'flv', 'ogg', 'webm', 'mkv', 'avi']; + public const RECODE_VIDEO_FORMATS = ['avi', 'flv', 'gif', 'mkv', 'mov', 'mp4', 'webm', 'aac', 'aiff', 'alac', 'flac', 'm4a', 'mka', 'mp3', 'ogg', 'opus', 'vorbis', 'wav']; public const SUBTITLE_FORMAT_SRT = 'srt'; public const SUBTITLE_FORMAT_VTT = 'vtt'; @@ -1375,10 +1375,10 @@ public function audioQuality(?string $audioQuality): self /** * Remux the video into another container if necessary (currently supported: - * mp4|mkv|flv|webm|mov|avi|mp3|mka|m4a|ogg|opus). If target container does - * not support the video/audio codec, remuxing will fail. You can specify - * multiple rules; Eg. "aac>m4a/mov>mp4/mkv" will remux aac to * m4a, - * mov to mp4 and anything else to mkv. + * avi, flv, gif, mkv, mov, mp4, webm, aac, aiff, alac, flac, m4a, mka, mp3, ogg, + * opus, vorbis, wav). If target container does not support the video/audio codec, + * remuxing will fail. You can specify multiple rules; e.g. "aac>m4a/mov>mp4/mkv" + * will remux aac to m4a, mov to mp4 and anything else to mkv. */ public function remuxVideo(?string $remuxVideo): self { diff --git a/tests/OptionsTest.php b/tests/OptionsTest.php index f5b0e22..ef91e7d 100644 --- a/tests/OptionsTest.php +++ b/tests/OptionsTest.php @@ -29,7 +29,7 @@ public function testInvalidAudioFormatThrows(): void public function testInvalidRecodeVideoThrows(): void { $this->expectException(InvalidArgumentException::class); - $this->expectExceptionMessage('Option `recodeVideo` expected one of: "mp4", "flv", "ogg", "webm", "mkv", "avi". Got: "mp4000".'); + $this->expectExceptionMessage('Option `recodeVideo` expected one of: "avi", "flv", "gif", "mkv", "mov", "mp4", "webm", "aac", "aiff", "alac", "flac", "m4a", "mka", "mp3", "ogg", "opus", "vorbis", "wav". Got: "mp4000".'); Options::create()->recodeVideo('mp4000'); }