fix (#522): issue handling certain kind of mkv

whenever too many audio are available, videojs wouldn't be able to
load the hls stream
This commit is contained in:
Mickael Kerjean
2022-11-29 08:25:58 +11:00
parent 8d34848c8a
commit ec575d68b1

View File

@ -19,7 +19,7 @@ import (
)
const (
HLS_SEGMENT_LENGTH = 10
HLS_SEGMENT_LENGTH = 25
CLEAR_CACHE_AFTER = 12
VideoCachePath = "data/cache/video/"
)
@ -192,6 +192,7 @@ func hls_transcode(ctx *App, res http.ResponseWriter, req *http.Request) {
"-vcodec", "libx264",
"-preset", "veryfast",
"-acodec", "aac",
"-ac", "2",
"-pix_fmt", "yuv420p",
"-x264opts:0", "subme=0:me_range=4:rc_lookahead=10:me=dia:no_chroma_me:8x8dct=0:partitions=none",
"-force_key_frames", fmt.Sprintf("expr:gte(t,n_forced*%d.000)", HLS_SEGMENT_LENGTH),