Adjust segment duration calculation in stream (#51149)
* Calculate min segment duration internally * Rename segments to sequences in StreamOutput * Fix segment duration calculation in test_worker
This commit is contained in:
parent
e08de22737
commit
6ad29aec2c
4 changed files with 37 additions and 18 deletions
|
@ -19,7 +19,11 @@ OUTPUT_IDLE_TIMEOUT = 300 # Idle timeout due to inactivity
|
|||
|
||||
NUM_PLAYLIST_SEGMENTS = 3 # Number of segments to use in HLS playlist
|
||||
MAX_SEGMENTS = 4 # Max number of segments to keep around
|
||||
MIN_SEGMENT_DURATION = 1.5 # Each segment is at least this many seconds
|
||||
TARGET_SEGMENT_DURATION = 2.0 # Each segment is about this many seconds
|
||||
SEGMENT_DURATION_ADJUSTER = 0.1 # Used to avoid missing keyframe boundaries
|
||||
MIN_SEGMENT_DURATION = (
|
||||
TARGET_SEGMENT_DURATION - SEGMENT_DURATION_ADJUSTER
|
||||
) # Each segment is at least this many seconds
|
||||
|
||||
PACKETS_TO_WAIT_FOR_AUDIO = 20 # Some streams have an audio stream with no audio
|
||||
MAX_TIMESTAMP_GAP = 10000 # seconds - anything from 10 to 50000 is probably reasonable
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue