mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-05-24 02:02:36 -04:00
Add eac3 to list of supported codecs
This commit is contained in:
parent
cd46050c94
commit
83b1c6b398
@ -3,6 +3,7 @@ package src
|
||||
import (
|
||||
"cmp"
|
||||
"fmt"
|
||||
"log"
|
||||
"strings"
|
||||
|
||||
"github.com/zoriya/go-mediainfo"
|
||||
@ -118,11 +119,16 @@ func GetMimeCodec(mi *mediainfo.File, kind mediainfo.StreamKind, i int) *string
|
||||
ret := "mp4a.a5"
|
||||
return &ret
|
||||
|
||||
case "audio/eac3", "E-AC-3":
|
||||
ret := "mp4a.a6"
|
||||
return &ret
|
||||
|
||||
case "audio/x-flac", "FLAC":
|
||||
ret := "fLaC"
|
||||
return &ret
|
||||
|
||||
default:
|
||||
log.Printf("No known mime format for: %s", codec)
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
@ -19,7 +19,7 @@ var safe_path = src.GetEnvOr("GOCODER_SAFE_PATH", "/video")
|
||||
// Encode the version in the hash path to update cached values.
|
||||
// Older versions won't be deleted (needed to allow multiples versions of the transcoder to run at the same time)
|
||||
// If the version changes a lot, we might want to automatically delete older versions.
|
||||
var version = "v1."
|
||||
var version = "v2-"
|
||||
|
||||
func GetPath(c echo.Context) (string, string, error) {
|
||||
key := c.Param("path")
|
||||
|
Loading…
x
Reference in New Issue
Block a user