<html dir="ltr"><head></head><body style="text-align:left; direction:ltr;" bgcolor="#ffffff" text="#2e3436" link="#1b6acb" vlink="#2e3436"><div>I meant the average bitrate of the byte stream.  Maybe I sounded ambiguous but I'm looking for ways to limit the data rate at which data is read from a (remote) source (network).  Typically data is read in the pipeline as fast as possible (especially when there's a lot of buffering in the pipeline).</div><div><br></div><div>So let's say there's 10MB buffer in the pipeline and it will be filled as fast as possible reading from source (network) while I'm looking for limiting the rate at which the buffer is filled (want to save on network capacity).</div><div>It's not a question of how to implement it but rather how to not reinvent the wheel if something like this already exists.</div><div><br></div><div>I hope it made it clearer.</div><div><br></div><div>Thanks,</div><div>Kris</div><div><br></div><div>On Thu, 2019-08-08 at 08:56 -0700, David Ing wrote:</div><blockquote type="cite" style="margin:0 0 0 .8ex; border-left:2px #729fcf solid;padding-left:1ex"><div dir="ltr">If you wanted to modify the bitrate of encoded data, you would need to decode it and then re-encode it at the new bitrate.  Typically the encoder is where you would set the new bitrate.<div><br></div><div>The only exception would be related to formats such as HLS, where several different variants of a stream are pre-encoded (at different bitrates) and you can select which variant to consume.  There may be a plugin for consuming HLS streams but I do not know it off the top of my head.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Aug 8, 2019 at 8:49 AM Krzysztof Konopko <<a href="mailto:krzysztof.konopko@konagma.eu">krzysztof.konopko@konagma.eu</a>> wrote:<br></div><blockquote type="cite" style="margin:0 0 0 .8ex; border-left:2px #729fcf solid;padding-left:1ex">Hi,<br>
<br>
I was wondering whether there exists an element to control the<br>
(download) bitrate in the pipeline.  Something like:<br>
<br>
    souphttpsrc location=... ! bitrate max-bitrate=100000 ! ...<br>
<br>
As I understand, none of the source elements offer this functionality<br>
and I'm looking for something that'd work with arbitrary byte streams<br>
(say, MPEG-TS).<br>
<br>
I checked all plugins built on my PC but couldn't find anything<br>
suitable but I might have missed something.<br>
<br>
I suppose such element would either block in push mode to accommodate<br>
for the selected bitrate or in pull mode it'd schedule data requests<br>
accordingly.<br>
<br>
Any hints appreciated.<br>
<br>
Thanks,<br>
Kris<br>
<br>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a></blockquote></div>
<pre>_______________________________________________</pre><pre>gstreamer-devel mailing list</pre><a href="mailto:gstreamer-devel@lists.freedesktop.org"><pre>gstreamer-devel@lists.freedesktop.org</pre></a><pre><br></pre><a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel"><pre>https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</pre></a></blockquote></body></html>