<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On 5 May 2016 at 10:29, Mike Holden <span dir="ltr"><<a href="mailto:mikeholden99+mythtv@gmail.com" target="_blank">mikeholden99+mythtv@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><span class=""><div class="gmail_quote">On 5 May 2016 at 09:04, Anthony Giggins <span dir="ltr"><<a href="mailto:seven@seven.dorksville.net" target="_blank">seven@seven.dorksville.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div dir="ltr"><br><div class="gmail_extra"><div class="gmail_quote"><div><div class="gmail_extra"><div class="gmail_quote"><div>FYI, I hacked a simple solution into the lossless cut script /usr/bin/lossless_cut </div><div><br></div><div>I just added the below after the $LAUNCHER $* line</div><div>echo "update recorded set transcoded = 1 where basename like '%.mkv';" | mysql -uUSERNAME -pPASSWORD mythconverg<br></div></div><br></div><div class="gmail_extra">please note you'll need to replace your username and password to the mysql database to make this work, please use at your own risk :)</div><div class="gmail_extra"><br></div><div class="gmail_extra"><br></div></div></div></div></div></blockquote></div><div class="gmail_extra"><br></div></span>That's going to update all mkv recordings isn't it, not just the one you are processing?<br></div></div>
<br><br></blockquote><div>Only if they haven't previously been marked as transcoded and really any .mkv files you have in your recordings really should have been already transcoded and this just marks this in the recording database.</div><div><br></div><div><div>mysql> update recorded set transcoded = 1 where basename like "%.mkv";</div><div>Query OK, 1 rows affected (0.00 sec)</div><div>Rows matched: 26  Changed: 1  Warnings: 0</div></div><div><br></div><div>as the lossless_cut shell script is just passing through its Arguments to the Python script theres no easy way to grab the basename from the %FILE% variable.</div><div><br></div><div>Cheers,</div><div><br></div><div>Anthony</div></div><br></div></div>