diff --git a/transcoder/src/codec.go b/transcoder/src/codec.go index a52612d4..4aa63fa0 100644 --- a/transcoder/src/codec.go +++ b/transcoder/src/codec.go @@ -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 diff --git a/transcoder/src/info.go b/transcoder/src/info.go index 9d3d047e..eea3b6b2 100644 --- a/transcoder/src/info.go +++ b/transcoder/src/info.go @@ -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)