mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-06-03 05:34:23 -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 (
|
import (
|
||||||
"cmp"
|
"cmp"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
"log"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/zoriya/go-mediainfo"
|
"github.com/zoriya/go-mediainfo"
|
||||||
@ -118,11 +119,16 @@ func GetMimeCodec(mi *mediainfo.File, kind mediainfo.StreamKind, i int) *string
|
|||||||
ret := "mp4a.a5"
|
ret := "mp4a.a5"
|
||||||
return &ret
|
return &ret
|
||||||
|
|
||||||
|
case "audio/eac3", "E-AC-3":
|
||||||
|
ret := "mp4a.a6"
|
||||||
|
return &ret
|
||||||
|
|
||||||
case "audio/x-flac", "FLAC":
|
case "audio/x-flac", "FLAC":
|
||||||
ret := "fLaC"
|
ret := "fLaC"
|
||||||
return &ret
|
return &ret
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
log.Printf("No known mime format for: %s", codec)
|
||||||
return nil
|
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.
|
// 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)
|
// 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.
|
// 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) {
|
func GetPath(c echo.Context) (string, string, error) {
|
||||||
key := c.Param("path")
|
key := c.Param("path")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user