mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-06 03:26:07 +02:00
support EnableMpegtsM2TsMode
This commit is contained in:
parent
ae248b045a
commit
44d3b28476
1 changed files with 5 additions and 0 deletions
|
@ -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 a new issue