mirror of
https://git.waldn.net/git/knotteye/satyr.git
synced 2025-09-15 22:24:57 +00:00
Switch from video.js to dash.js, it seems to be more consistent and hiccup less during streams.
This means transcoding to HLS is no longer an option. Also add a bit of JS to reload the stream periodically if it hadn't started when the page was loaded. That thing spits out errors fucking constantly, so hopefully it won't cause any problems.
This commit is contained in:
@ -133,10 +133,10 @@ async function transCommand(user: string, key: string): Promise<string[]>{
|
||||
else {
|
||||
args = args.concat(['-c:a', 'copy', '-c:v', 'copy']);
|
||||
}
|
||||
if(config['transcode']['format'] === 'dash')
|
||||
//if(config['transcode']['format'] === 'dash')
|
||||
args = args.concat(['-remove_at_exit', '1', '-seg_duration', '1', '-window_size', '30', '-f', 'dash', config['http']['directory']+'/'+config['media']['publicEndpoint']+'/'+user+'/index.mpd']);
|
||||
else if(config['transcode']['format'] === 'hls')
|
||||
args = args.concat(['-remove_at_exit', '1', '-hls_time', '1', '-hls_list_size', '30', '-f', 'hls', config['http']['directory']+'/'+config['media']['publicEndpoint']+'/'+user+'/index.m3u8']);
|
||||
//else if(config['transcode']['format'] === 'hls')
|
||||
//args = args.concat(['-remove_at_exit', '1', '-hls_time', '1', '-hls_list_size', '30', '-f', 'hls', config['http']['directory']+'/'+config['media']['publicEndpoint']+'/'+user+'/index.m3u8']);
|
||||
return args;
|
||||
}
|
||||
export { init };
|
Reference in New Issue
Block a user