<div dir="ltr">On Wed, Dec 13, 2017 at 2:26 AM, Marius Schrecker <span dir="ltr"><<a href="mailto:marius.schrecker@lyse.net" target="_blank">marius.schrecker@lyse.net</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="gmail_extra"><div class="gmail_quote">Thanks Greg and Dan for the good feedback.<span class=""><br> <blockquote><p>Looks like you might have mythtv set to use the wrong video input on the 1212 possibly?</p></blockquote></span></div></div><span class=""><blockquote><div class="gmail_extra"> </div><div class="gmail_extra"><span style="font-family:monospace,monospace">MariaDB [mythconverg]> select videodevice,cardtype,<wbr>inputname,displayname from capturecard where cardtype='HDPVR';<br>+-------------+----------+----<wbr>-------+-------------+<br>| videodevice | cardtype | inputname | displayname |<br>+-------------+----------+----<wbr>-------+-------------+<br>| /dev/video0 | HDPVR    | <b><span style="background-color:rgb(243,243,243)">Component</span></b> | HDPVR_0     |</span></div><div class="gmail_extra"><span style="font-family:monospace,monospace"><span style="font-family:monospace,monospace">| /dev/video1 | HDPVR    | <b><span style="background-color:rgb(243,243,243)">Component</span></b> | HDPVR_1     |</span></span></div><div class="gmail_extra"><span style="font-family:monospace,monospace">+-------------+----------+----<wbr>-------+-------------+</span></div><div class="gmail_extra"> </div><div class="gmail_extra">Also,</div><div class="gmail_extra"> </div><div class="gmail_extra"><span style="font-family:monospace,monospace">for i in /sys/module/hdpvr/parameters/* ; do </span></div><div class="gmail_extra"><span style="font-family:monospace,monospace">echo -ne "### $i\n$(cat ${i})\n" ; done</span></div></blockquote><div class="gmail_extra"> </div><blockquote><div class="gmail_extra"><span style="font-family:arial,helvetica,sans-serif">Barring either of those being wrong, I have actually had USB2 timing issues from using a USB cable greater than 10' - believe it or not!</span></div><p><br>Also, make sure you have configured the correct audio input in mythtv-setup. I have found that if I do not, recordings fail (which makes no logical sense, but...)<br><br>And I have this line sitting in my /etc/rc.d/rc.local file:<br><br>  /usr/bin/v4l2-ctl --device /dev/video0 --set-ctrl=audio_encoding=4<br><br>which sets the audio encoding mode to something other than the default (though it's been so long I don't recall what the value means.)</p></blockquote><br></span>Inputs are rear component (through a HDFURY-2) and toslink SPDIF, direct from my STB.  I didn't have much time this morning, but am pretty sure that my inputs are set correctly. The system device is configured directly from modules-load.d/hdpvr.conf, where both inputs are set directly.  After doing this, the module loads at bootup and the device is ready and accessible at /dev/video0 . Before writing the conf file, I had to power-toggle the hdpvr to load the module.<br><br>Having done this, I don't need to manipulate anything using v4l2-ctl.<br>Output from<i> </i><span style="font-family:inherit;font-size:inherit"><i>v4l2-ctl -d /dev/video0 --all</i> was in my original mail and confirms the iinputs.</span><br><br>I had a quick look at the database this morning, which seems to confirm the systemwide settings:<span class=""><br><span style="color:rgb(38,43,51);font-family:sans-serif;font-size:10.6667px"> select videodevice,cardtype,<wbr>inputname,displayname from capturecard where cardtype='HDPVR';</span><br style="color:rgb(38,43,51);font-family:sans-serif;font-size:10.6667px"></span><i><span style="color:rgb(38,43,51);font-family:sans-serif;font-size:10.6667px">+-------------+----------+----<wbr>-------+--------------------+</span><br style="color:rgb(38,43,51);font-family:sans-serif;font-size:10.6667px"><span style="color:rgb(38,43,51);font-family:sans-serif;font-size:10.6667px">| videodevice | cardtype | inputname | displayname        |</span><br style="color:rgb(38,43,51);font-family:sans-serif;font-size:10.6667px"><span style="color:rgb(38,43,51);font-family:sans-serif;font-size:10.6667px">+-------------+----------+----<wbr>-------+--------------------+</span><br style="color:rgb(38,43,51);font-family:sans-serif;font-size:10.6667px"><span style="color:rgb(38,43,51);font-family:sans-serif;font-size:10.6667px">| /dev/video0 | HDPVR    | Component | Altibox-via-HD_PVR |<br>From Dan's mail, tyhat just leaves me with the </span></i><br><span style="color:rgb(38,43,51);font-family:sans-serif;font-size:10.6667px">While the sys/modula/paramaters are:<span class=""><br>  for i in /sys/module/hdpvr/parameters/* ; do</span></span><span class=""><br style="color:rgb(38,43,51);font-family:sans-serif;font-size:10.6667px"><span style="color:rgb(38,43,51);font-family:sans-serif;font-size:10.6667px">> echo -ne "### $i\n$(cat ${i})\n" ; done</span><br style="color:rgb(38,43,51);font-family:sans-serif;font-size:10.6667px"></span><span style="color:rgb(38,43,51);font-family:sans-serif;font-size:10.6667px">### /sys/module/hdpvr/parameters/<wbr>boost_audio</span><br style="color:rgb(38,43,51);font-family:sans-serif;font-size:10.6667px"><span style="color:rgb(38,43,51);font-family:sans-serif;font-size:10.6667px">N</span><br style="color:rgb(38,43,51);font-family:sans-serif;font-size:10.6667px"><span style="color:rgb(38,43,51);font-family:sans-serif;font-size:10.6667px">### /sys/module/hdpvr/parameters/<wbr>default_audio_input</span><br style="color:rgb(38,43,51);font-family:sans-serif;font-size:10.6667px"><span style="color:rgb(38,43,51);font-family:sans-serif;font-size:10.6667px">2</span><br style="color:rgb(38,43,51);font-family:sans-serif;font-size:10.6667px"><span style="color:rgb(38,43,51);font-family:sans-serif;font-size:10.6667px">### /sys/module/hdpvr/parameters/<wbr>default_video_input</span><br style="color:rgb(38,43,51);font-family:sans-serif;font-size:10.6667px"><span style="color:rgb(38,43,51);font-family:sans-serif;font-size:10.6667px">0</span><br style="color:rgb(38,43,51);font-family:sans-serif;font-size:10.6667px"><span style="color:rgb(38,43,51);font-family:sans-serif;font-size:10.6667px">### /sys/module/hdpvr/parameters/<wbr>hdpvr_debug</span><br style="color:rgb(38,43,51);font-family:sans-serif;font-size:10.6667px"><span style="color:rgb(38,43,51);font-family:sans-serif;font-size:10.6667px">0</span><br style="color:rgb(38,43,51);font-family:sans-serif;font-size:10.6667px"><br>From Dan's mail, that just leaves the audio encoding as a possible problem and I will take a look at that this evening.<br><br>What about buffering. Is it possible that there is an issue writing to some temporary space?<br><br>Can anything else be gleaned from the logging line:<span class=""><br><i><span style="color:rgb(38,43,51);font-family:"Lucida Grande","Bitstream VeraSans",Tahoma,sans-serif;font-size:10.6667px">" DeviceReadBuffer recorders/DeviceReadBuffer.<wbr>cpp:545 (Poll) DevRdB(/dev/video0): Poll giving up after 2500ms"</span></i><br></span>or could I turn on more verbosity to try to identify where there is a problem?<br></blockquote><div><br></div><div>That line is why I included the long USB cable comment.  It was years ago that I hit that issue, so I really cannot remember exactly.  The cheap a$$ power supplies they ship cause weird issues like this too.  I replaced all of mine long ago.<br></div><div> </div><div>-Greg</div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">This does seem to be MythTV related as catting the device works as it should.<br><br>BR.<span class="HOEnZb"><font color="#888888"><br><br>--Marius--</font></span><br></blockquote></div><br></div></div>