mirror of
https://github.com/mickael-kerjean/filestash.git
synced 2025-10-28 12:16:48 +08:00
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:
@ -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),
|
||||
|
||||
Reference in New Issue
Block a user