mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-05-24 02:02:36 -04:00
Fix RFC-6381 for some codecs
This commit is contained in:
parent
7e3a1743c0
commit
d7cb6f3c96
@ -35,7 +35,7 @@ func GetMimeCodec(stream *ffprobe.Stream) *string {
|
||||
ret += fmt.Sprintf("%02x", stream.Level)
|
||||
return &ret
|
||||
|
||||
case "h265":
|
||||
case "h265", "hevc":
|
||||
// The h265 syntax is a bit of a mystery at the time this comment was written.
|
||||
// This is what I've found through various sources:
|
||||
// FORMAT: [codecTag].[profile].[constraint?].L[level * 30].[UNKNOWN]
|
||||
@ -95,15 +95,15 @@ func GetMimeCodec(stream *ffprobe.Stream) *string {
|
||||
ret := "Opus"
|
||||
return &ret
|
||||
|
||||
case "ac-3":
|
||||
case "ac3":
|
||||
ret := "mp4a.a5"
|
||||
return &ret
|
||||
|
||||
case "eac3", "E-AC-3":
|
||||
case "eac3":
|
||||
ret := "mp4a.a6"
|
||||
return &ret
|
||||
|
||||
case "x-flac", "FLAC":
|
||||
case "flac":
|
||||
ret := "fLaC"
|
||||
return &ret
|
||||
|
||||
|
@ -248,7 +248,7 @@ func saveInfo[T any](save_path string, mi *T) error {
|
||||
func getInfo(path string) (*MediaInfo, error) {
|
||||
defer printExecTime("mediainfo for %s", path)()
|
||||
|
||||
ctx, cancelFn := context.WithTimeout(context.Background(), 5*time.Second)
|
||||
ctx, cancelFn := context.WithTimeout(context.Background(), 30*time.Second)
|
||||
defer cancelFn()
|
||||
|
||||
mi, err := ffprobe.ProbeURL(ctx, path)
|
||||
|
Loading…
x
Reference in New Issue
Block a user