<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
mpegtsmux now has support for CBR as you've noticed (the bitrate
property), so<br>
it should simply be a matter of remuxing the input file indeed.<br>
<br>
If you want to do this from the command line, the command line will
need to<br>
match the streams contained in your input file, so it's not possible
for us to<br>
give you a working pipeline :)<br>
<br>
It should more or less look like:<br>
<br>
<pre>mpegtsmux bitrate=<bitrate> name=mux ! filesink location=<path> filesrc location=<path> ! tsdemux name=demux \</pre>
<pre> demux.sink_%d ! <parser> ! queue ! mux.</pre>
<pre> <repeat above for every stream in the input file>
</pre>
<div class="moz-signature">-- <br>
Mathieu Duponchelle · <a href="https://www.centricular.com">https://www.centricular.com</a><br>
<br>
</div>
<div class="moz-cite-prefix">On 9/18/19 5:58 PM, Rafal Garbat wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CAGUrXFxq9apoykACjRO+WLe3Ys6gphLWrnpL3oqfwWa--72H9Q@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div dir="ltr">
<div>Hi.</div>
<div><br>
</div>
<div>I'm quite new to GStreamer. I have an input MPEG-TS stream
with a low bitrate. I need to stuff it with NULL packets to
make it higher (of course all the data like PCR must be
adjusted).</div>
<div><br>
</div>
<div>1. I was thinking about merging my original stream with the
one, filled with null packets, but with target bitrate. Is
there as some straightforward solution for that? I was
thinking about something like: <br>
filesrc location=in.ts ! ...some magic here... !
mpegtsmux bitrate=51253960 ! filesink location=out.ts<br>
</div>
<div>I have tried some variations but couldn't setup a working
pipeline so far.<br>
<br>
</div>
<div>2. Maybe there is a simpler and obvious solution I'm
missing here.</div>
<div><br>
</div>
<div>BR,</div>
<div>Rafal<br>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
gstreamer-devel mailing list
<a class="moz-txt-link-abbreviated" href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a>
<a class="moz-txt-link-freetext" href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a></pre>
</blockquote>
</body>
</html>