<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Hi,<div class=""><br class=""></div><div class="">Try adding “-x text” to your dvblast command-line. This should turn on line-buffering.</div><div class=""><br class=""></div><div class="">Best regards<br class=""><div><br class=""><blockquote type="cite" class=""><div class="">On 17 Nov 2020, at 08:34, Michel Burnand <<a href="mailto:hb9dug@vtxnet.ch" class="">hb9dug@vtxnet.ch</a>> wrote:</div><br class="Apple-interchange-newline"><div class="">
  

    <meta http-equiv="content-type" content="text/html; charset=UTF-8" class="">
  
  <div class="">
    <div class="moz-text-html" lang="x-unicode">
      <div class="moz-text-html" lang="x-unicode"><p class="">Hello,</p><p class="">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 class="">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 class="">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 class="">
        </p><p class=""><br class="">
        </p><p class="">Program 1000 present:<br class="">
        </p><p class=""><font color="#ff8000" class=""><b class="">bitrate: 1359565</b></font><br class="">
           - program number 3000 bitrate: 1<br class="">
           - program number 1000 bitrate: 53<br class="">
           - program number 2000 bitrate: 1<br class="">
          frontend ber: 0 strength: 44975 snr: 59367 uncorrected: 0</p><p class=""><br class="">
        </p><p class="">Program 1000 absent:</p><p class=""><font color="#ff8000" class=""><b class="">bitrate: 27072</b></font><br class="">
           - program number 3000 bitrate: 1<br class="">
           - program number 1000 bitrate: 1<br class="">
           - program number 2000 bitrate: 1<br class="">
          frontend ber: 0 strength: 44204 snr: 59110 uncorrected: 0<br class="">
        </p><p class=""><br class="">
        </p><p class="">My problem, I am unable to retrieve this information in a
          file... I have tried the ways below with no success :<span lang="en" class=""><br class="">
          </span></p><div class=""> <br class="webkit-block-placeholder"></div><p class="">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 class="">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 class=""><br class="">
        </p>
        <pre class="XcVN5d tw-text-large tw-ta tw-data-text" data-placeholder="Translation" id="tw-target-text" style="text-align:left" dir="ltr"><font size="+1" class=""><span lang="en" class="">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" class=""></span>
        <div class="tw-ta-container hide-focus-ring tw-nfl" id="tw-target-text-container" tabindex="0">
          <pre class="XcVN5d tw-text-large tw-ta tw-data-text" data-placeholder="Translation" id="tw-target-text" style="text-align:left" dir="ltr"><span lang="en" class=""><font size="+1" class="">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 class="">
</span></pre>
        </div>
        <br class="">
        <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" class=""><br class="">
<table style="border-top: 1px solid #D3D4DE;" class="">
        <tbody class=""><tr class="">
        <td style="width: 55px; padding-top: 13px;" class=""><a href="https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient" target="_blank" class=""><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;" class=""></a></td>
                <td style="width: 470px; padding-top: 12px; color: #41424e; font-size: 13px; font-family: Arial, Helvetica, sans-serif; line-height: 18px;" class="">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;" class="">www.avast.com</a>
                </td>
        </tr>
</tbody></table><a href="x-msg://56/#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2" width="1" height="1" class=""> </a></div></div>

_______________________________________________<br class="">dvblast-devel mailing list<br class=""><a href="mailto:dvblast-devel@videolan.org" class="">dvblast-devel@videolan.org</a><br class="">https://mailman.videolan.org/listinfo/dvblast-devel<br class=""></div></blockquote></div><br class=""></div></body></html>