A self-hosted media server and file management system
Vue ffmpegfile-serverjellyfinlaravelmediamedia-playermedia-servermediabrowsermediaservermusicmusic-librarymusic-playermusicplayerself-hostedvuejs
support mp2t
aminnausin14474c3bf498
diff --git a/README.md b/README.mdindex 5e94def7..b18563e6 100755--- a/README.md+++ b/README.md@@ -179,6 +179,7 @@ You can share direct links to both videos and folders with the share buttons in#### Default File Types- MP4 (ExifTool/FFmpeg)+- MP2T (FFmpeg)- MKV (FFmpeg)- MP3 (FFmpeg)- OGG (FFmpeg)diff --git a/app/Jobs/EmbedUidInMetadata.php b/app/Jobs/EmbedUidInMetadata.phpindex b186d043..4608f1d9 100644--- a/app/Jobs/EmbedUidInMetadata.php+++ b/app/Jobs/EmbedUidInMetadata.php@@ -142,7 +142,7 @@ class EmbedUidInMetadata implements ShouldQueue {$tempFilePath = $this->filePath . '.tmp';- $formatMap = ['mp4' => 'mp4', 'mkv' => 'matroska', 'mp3' => 'mp3', 'ogg' => 'opus', 'flac' => 'flac'];+ $formatMap = ['mp4' => 'mp4', 'mp2t' => 'mp2t', 'mkv' => 'matroska', 'mp3' => 'mp3', 'ogg' => 'opus', 'flac' => 'flac'];$format = $formatMap[$ext] ?? $ext;if ($ext === 'mp4') {diff --git a/app/Jobs/IndexFiles.php b/app/Jobs/IndexFiles.phpindex a985d4b3..03912c93 100755--- a/app/Jobs/IndexFiles.php+++ b/app/Jobs/IndexFiles.php@@ -468,7 +468,7 @@ class IndexFiles implements ShouldBeUnique, ShouldQueue {$absolutePath = str_replace('\\', '/', Storage::disk('public')->path('')) . $file;$ext = pathinfo($file, PATHINFO_EXTENSION);- if (strtolower($ext) !== 'mp4' && strtolower($ext) !== 'mkv' && strtolower($ext) !== 'mp3' && strtolower($ext) !== 'ogg' && strtolower($ext) !== 'flac') { // && strtolower($ext) !== 'ogg' && strtolower($ext) !== 'flac' the conversion breaks ogg idk about flac+ if (strtolower($ext) !== 'mp4' && strtolower($ext) !== 'mp2t' && strtolower($ext) !== 'mkv' && strtolower($ext) !== 'mp3' && strtolower($ext) !== 'ogg' && strtolower($ext) !== 'flac') { // && strtolower($ext) !== 'ogg' && strtolower($ext) !== 'flac' the conversion breaks ogg idk about flaccontinue;}@@ -600,4 +600,5 @@ class IndexFiles implements ShouldBeUnique, ShouldQueue {}}}-class BatchCancelledException extends \Exception {}+class BatchCancelledException extends \Exception {+}