support EnableMpegtsM2TsMode
This commit is contained in:
parent
ae248b045a
commit
44d3b28476
|
@ -138,6 +138,11 @@ namespace MediaBrowser.Api.Playback.Progressive
|
|||
return state.VideoStream != null && IsH264(state.VideoStream) ? args + " -bsf h264_mp4toannexb" : args;
|
||||
}
|
||||
|
||||
if (state.EnableMpegtsM2TsMode)
|
||||
{
|
||||
args += " -mpegts_m2ts_mode 1";
|
||||
}
|
||||
|
||||
const string keyFrameArg = " -force_key_frames expr:if(isnan(prev_forced_t),gte(t,.1),gte(t,prev_forced_t+5))";
|
||||
|
||||
args += keyFrameArg;
|
||||
|
|
Loading…
Reference in New Issue
Block a user