<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">On 09/06/2018 10:50 PM, Greg Oliver
      wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAF4tN+-Rb2Nkg-=vE5TLic2AP-uMvyD9ENPsmzP9EqaFdXG_JA@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=utf-8">
      <div dir="ltr">
        <div dir="ltr">
          <div class="gmail_quote">
            <div dir="ltr">On Thu, Sep 6, 2018 at 10:40 PM Rajil
              Saraswat <<a href="mailto:rajil.s@gmail.com"
                moz-do-not-send="true">rajil.s@gmail.com</a>> wrote:<br>
            </div>
            <blockquote class="gmail_quote" style="margin:0px 0px 0px
              0.8ex;border-left:1px solid
              rgb(204,204,204);padding-left:1ex">
              <div bgcolor="#FFFFFF">
                <div class="gmail-m_4290925966899180783moz-cite-prefix">On
                  09/06/2018 10:12 PM, Greg Oliver wrote:<br>
                </div>
                <blockquote type="cite">
                  <div dir="ltr">
                    <div dir="ltr">The audio/video works fine for a few
                      minutes before it dies, so this "Unable to set
                      audio input" message seems to be a red herring. <br>
                      <div class="gmail_quote">
                        <blockquote class="gmail_quote"
                          style="margin:0px 0px 0px
                          0.8ex;border-left:1px solid
                          rgb(204,204,204);padding-left:1ex"><br>
                        </blockquote>
                        <div>
                          <div
                            style="font-family:monospace,monospace;display:inline">Just
                            make sure it is less than 9'</div>
                          <div
                            style="font-family:monospace,monospace;display:inline"><br>
                          </div>
                        </div>
                      </div>
                    </div>
                  </div>
                </blockquote>
                9 inch is quite short. I will try this 6 inch cable, <a
class="gmail-m_4290925966899180783moz-txt-link-freetext"
                  href="https://www.amazon.com/gp/product/B000067RMY"
                  target="_blank" moz-do-not-send="true">https://www.amazon.com/gp/product/B000067RMY</a><br>
              </div>
            </blockquote>
            <div><br>
            </div>
            <div>
              <div style="font-family:monospace,monospace"
                class="gmail_default">That is 9 feet, not inches</div>
            </div>
          </div>
        </div>
      </div>
    </blockquote>
    <br>
    Well spotted. I am using 3 feet cables at the moment
    (<a class="moz-txt-link-freetext" href="https://www.amazon.com/gp/product/B00UNZ9HLU">https://www.amazon.com/gp/product/B00UNZ9HLU</a>).<br>
    <br>
    <blockquote type="cite"
cite="mid:CAF4tN+-Rb2Nkg-=vE5TLic2AP-uMvyD9ENPsmzP9EqaFdXG_JA@mail.gmail.com">
      <div dir="ltr">
        <div dir="ltr">
          <div class="gmail_quote">
            <div> </div>
            <blockquote class="gmail_quote" style="margin:0px 0px 0px
              0.8ex;border-left:1px solid
              rgb(204,204,204);padding-left:1ex">
              <div bgcolor="#FFFFFF">
                <blockquote type="cite">
                  <div dir="ltr">
                    <div dir="ltr">
                      <div class="gmail_quote">
                        <div>
                          <div
                            style="font-family:monospace,monospace;display:inline"><br>
                          </div>
                          <div
                            style="font-family:monospace,monospace;display:inline">for
                            i in  /sys/module/hdpvr/parameters/* ; do
                            echo -ne "$i -- $(cat $i)\n"; done</div>
                          <div
                            style="font-family:monospace,monospace;display:inline"><br>
                          </div>
                          <div
                            style="font-family:monospace,monospace;display:inline"><br>
                          </div>
                        </div>
                      </div>
                    </div>
                  </div>
                </blockquote>
                <br>
                /sys/module/hdpvr/parameters/boost_audio -- N<br>
                /sys/module/hdpvr/parameters/default_audio_input -- 3<br>
                /sys/module/hdpvr/parameters/default_video_input -- 3<br>
                /sys/module/hdpvr/parameters/hdpvr_debug -- 1<br>
              </div>
            </blockquote>
            <div><br>
            </div>
            <div>
              <div style="font-family:monospace,monospace"
                class="gmail_default">Those are not valid values ::</div>
              <div style="font-family:monospace,monospace"
                class="gmail_default"><br>
              </div>
              <div style="font-family:monospace,monospace"
                class="gmail_default">parm:           video_nr:video
                device number (-1=Auto) (array of int)<br>
                parm:           hdpvr_debug:enable debugging output
                (int)<br>
                parm:           default_video_input:default video input:
                0=Component / 1=S-Video / 2=Composite (uint)<br>
                parm:           default_audio_input:default audio input:
                0=RCA back / 1=RCA front / 2=S/PDIF (uint)<br>
                parm:           boost_audio:boost the audio signal
                (bool)<br>
              </div>
              <div style="font-family:monospace,monospace"
                class="gmail_default"><br>
              </div>
              <div style="font-family:monospace,monospace"
                class="gmail_default">set the parameters in a module
                file and use :</div>
              <div style="font-family:monospace,monospace"
                class="gmail_default">default_video_input 0</div>
              <div style="font-family:monospace,monospace"
                class="gmail_default">default_audio_input 0<br>
              </div>
              <br>
            </div>
            <div> </div>
          </div>
        </div>
      </div>
    </blockquote>
    Yeah, not sure why the default values were wrong. Fixed that,<br>
    <br>
    # for i in  /sys/module/hdpvr/parameters/* ; do echo -ne "$i --
    $(cat $i)\n"; done<br>
    /sys/module/hdpvr/parameters/boost_audio -- N<br>
    /sys/module/hdpvr/parameters/default_audio_input -- 0<br>
    /sys/module/hdpvr/parameters/default_video_input -- 0<br>
    /sys/module/hdpvr/parameters/hdpvr_debug -- 1<br>
    <br>
    <br>
    <blockquote type="cite"
cite="mid:CAF4tN+-Rb2Nkg-=vE5TLic2AP-uMvyD9ENPsmzP9EqaFdXG_JA@mail.gmail.com">
      <div dir="ltr">
        <div dir="ltr">
          <div class="gmail_quote">
            <blockquote class="gmail_quote" style="margin:0px 0px 0px
              0.8ex;border-left:1px solid
              rgb(204,204,204);padding-left:1ex">
              <div bgcolor="#FFFFFF"> The video is being fed through
                component input and stereo audio using rear input.<br>
                <br>
                <blockquote type="cite">
                  <div dir="ltr">
                    <div dir="ltr">
                      <div class="gmail_quote">
                        <div>
                          <div
                            style="font-family:monospace,monospace;display:inline">Also,
                            if you just `cat /dev/video1 > ~/test.ts`
                            and ctrl-c after 5 minutes, do you get a 5
                            minute video?</div>
                           </div>
                      </div>
                    </div>
                  </div>
                </blockquote>
                It played well for about 4 minutes and then locked up
                (ts file file stopped increasing).<br>
              </div>
            </blockquote>
            <div><br>
            </div>
            <div>
              <div style="font-family:monospace,monospace"
                class="gmail_default">Anything in dmesg @ that time? 
                Did the video resolution change or audio codec change? 
                I remember having issues with a </div>
              <br>
            </div>
          </div>
        </div>
      </div>
    </blockquote>
    Unfortunately, there was nothing in dmesg when lockup happened. The
    only way i can get an output is when i kill the 'cat' and then dmesg
    gives out that -110 message.<br>
    <br>
    <blockquote type="cite"
cite="mid:CAF4tN+-Rb2Nkg-=vE5TLic2AP-uMvyD9ENPsmzP9EqaFdXG_JA@mail.gmail.com">
      <div dir="ltr">
        <div dir="ltr">
          <div class="gmail_quote">
            <div> </div>
            <blockquote class="gmail_quote" style="margin:0px 0px 0px
              0.8ex;border-left:1px solid
              rgb(204,204,204);padding-left:1ex">
              <div bgcolor="#FFFFFF"> <br>
                The video is being fed through component input and
                stereo audio using rear input.<br>
                <br>
                <blockquote type="cite">
                  <div dir="ltr">
                    <div dir="ltr">
                      <div class="gmail_quote">
                        <div>
                          <div
                            style="font-family:monospace,monospace;display:inline">Your
                            big log also says you do not have a channel
                            change script... <br>
                          </div>
                        </div>
                      </div>
                    </div>
                  </div>
                </blockquote>
                Right, I am testing this with a single channel before
                deploying.<br>
              </div>
            </blockquote>
            <div><br>
            </div>
            <div style="font-family:monospace,monospace"
              class="gmail_default">v4l2-utils  -d /dev/video1 -l</div>
          </div>
        </div>
      </div>
      <br>
    </blockquote>
    <p>v4l2-ctl  -d /dev/video0 -l<br>
      <br>
      User Controls<br>
      <br>
                           brightness (int)    : min=0 max=255 step=1
      default=128 value=128 flags=slider<br>
                             contrast (int)    : min=0 max=255 step=1
      default=64 value=64 flags=slider<br>
                           saturation (int)    : min=0 max=255 step=1
      default=64 value=64 flags=slider<br>
                                  hue (int)    : min=0 max=30 step=1
      default=15 value=14 flags=slider<br>
                            sharpness (int)    : min=0 max=255 step=1
      default=128 value=128 flags=slider<br>
      <br>
      Codec Controls<br>
      <br>
                          stream_type (menu)   : min=0 max=1 default=1
      value=1 flags=update<br>
                       audio_encoding (menu)   : min=0 max=4 default=3
      value=4 flags=update<br>
                       video_encoding (menu)   : min=0 max=2 default=2
      value=2<br>
                   video_bitrate_mode (menu)   : min=0 max=1 default=1
      value=0 flags=update<br>
                        video_bitrate (int)    : min=1000000
      max=13500000 step=100000 default=6500000 value=9000000<br>
                   video_peak_bitrate (int)    : min=1100000
      max=20200000 step=100000 default=9000000 value=13500000<br>
      <br>
    </p>
  </body>
</html>