Skip to content

[Q&A] Is DashSegmentedReader and Writer using In Memory ? #5361

Answered by bastimeyer
DevataDev asked this question in Q&A
Discussion options

You must be logged in to vote

Streamlink has a separate ringbuffer (default is 16MiB) for each stream when muxing multiple streams via FFMPEGMuxer. The FFMPEGMuxer writes the data of each stream into a named pipe where the ffmpeg process is reading from. Depending on the bitrate of each stream, how ffmpeg is able to read the individual input streams (data arrival time of segmented streams), how it handles its input and output buffers while muxing, and how ffmpeg's output buffer eventually gets read by streamlink_cli or an implementer of Streamlink's Python API will make ffmpeg allocate more or less memory. Streamlink's FFMPEGMuxer doesn't set any ffmpeg input buffer sizes (which would lead to Streamlink's buffers bein…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@DevataDev
Comment options

Answer selected by DevataDev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants