<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body>
<div class="moz-text-html" lang="x-unicode">
<div class="moz-text-html" lang="x-unicode">
<p>Hello,</p>
<p>I use dvblast to stream a program from an ATV radio-amateur
repeater (<a class="moz-txt-link-abbreviated"
href="http://www.hb9tv.ch">www.hb9tv.ch</a>) through ffmpeg
to a club streamer (<a class="moz-txt-link-freetext"
href="https://batc.org.uk/live/">https://batc.org.uk/live/</a>).</p>
<p>Following changes in the ATV relay settings, I no longer have
a permanent stream coming from program 1000 and I need to
detect this state to ensure that ffmpeg works properly.</p>
<p>Thanks to the --print-period option, I have information on
the bitrate of the stream and this allows me to detect if the
program is being transmitted.<br>
</p>
<p><br>
</p>
<p>Program 1000 present:<br>
</p>
<p><font color="#ff8000"><b>bitrate: 1359565</b></font><br>
- program number 3000 bitrate: 1<br>
- program number 1000 bitrate: 53<br>
- program number 2000 bitrate: 1<br>
frontend ber: 0 strength: 44975 snr: 59367 uncorrected: 0</p>
<p><br>
</p>
<p>Program 1000 absent:</p>
<p><font color="#ff8000"><b>bitrate: 27072</b></font><br>
- program number 3000 bitrate: 1<br>
- program number 1000 bitrate: 1<br>
- program number 2000 bitrate: 1<br>
frontend ber: 0 strength: 44204 snr: 59110 uncorrected: 0<br>
</p>
<p><br>
</p>
<p>My problem, I am unable to retrieve this information in a
file... I have tried the ways below with no success :<span
lang="en"><br>
</span></p>
<p> </p>
<p>dvblast -C -r /tmp/dvblast.sock --print-period 50000 -c
hb9tv1.conf --frequency 1760000 --symbol-rate 4000000
--fec-inner 56 -v 18 | tee -a bitrate.txt</p>
<p>dvblast -C -r /tmp/dvblast.sock --print-period 50000 -c
hb9tv1.conf --frequency 1760000 --symbol-rate 4000000
--fec-inner 56 -v 18 2>&1 | tee bitrate.txt</p>
<p><br>
</p>
<pre class="tw-data-text tw-text-large XcVN5d tw-ta" data-placeholder="Translation" id="tw-target-text" style="text-align:left" dir="ltr"><font size="+1"><span lang="en">The information (bitrate) appears on the console and in the file randomly by block of 22 x the bitrate information...
opposed to every 5s on the console without the redirection.
Not being in the programming profession, I am stuck... Could you please put me on the trail of the solution ?
</span></font></pre>
<span lang="en"></span>
<div class="tw-ta-container hide-focus-ring tw-nfl"
id="tw-target-text-container" tabindex="0">
<pre class="tw-data-text tw-text-large XcVN5d tw-ta" data-placeholder="Translation" id="tw-target-text" style="text-align:left" dir="ltr"><span lang="en"><font size="+1">Thank you in advance for your advice.
Best regards,
Michel
P.S. dvblast run on a rasperry 3</font>
</span></pre>
</div>
<div class="tw-ta-container hide-focus-ring tw-nfl"
id="tw-target-rmn-container">
<pre class="tw-data-placeholder tw-text-small tw-ta" data-placeholder="" id="tw-target-rmn" style="text-align:left" dir="ltr"><span>
</span></pre>
</div>
<br>
<pre class="moz-signature" cols="72">--------------------------------------------------
Michel Burnand - HB9DUG - <a class="moz-txt-link-abbreviated" href="mailto:hb9dug@vtxnet.ch">hb9dug@vtxnet.ch</a>
Rue de la Dude 22 CH-1267 Vich Switzerland
Phone +41 22 995 0661
--------------------------------------------------</pre>
</div>
</div>
<div id="DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2"><br />
<table style="border-top: 1px solid #D3D4DE;">
<tr>
<td style="width: 55px; padding-top: 13px;"><a href="https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient" target="_blank"><img src="https://ipmcdn.avast.com/images/icons/icon-envelope-tick-round-orange-animated-no-repeat-v1.gif" alt="" width="46" height="29" style="width: 46px; height: 29px;" /></a></td>
<td style="width: 470px; padding-top: 12px; color: #41424e; font-size: 13px; font-family: Arial, Helvetica, sans-serif; line-height: 18px;">Virus-free. <a href="https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient" target="_blank" style="color: #4453ea;">www.avast.com</a>
</td>
</tr>
</table><a href="#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2" width="1" height="1"> </a></div></body>
</html>