[mythtv-users] Lossles Cut marking recordings as "Transcoded"

Anthony Giggins seven at seven.dorksville.net
Thu May 5 01:11:35 UTC 2016


On 5 May 2016 at 10:29, Mike Holden <mikeholden99+mythtv at gmail.com> wrote:

> On 5 May 2016 at 09:04, Anthony Giggins <seven at seven.dorksville.net>
> wrote:
>
>>
>> FYI, I hacked a simple solution into the lossless cut script
>> /usr/bin/lossless_cut
>>
>> I just added the below after the $LAUNCHER $* line
>> echo "update recorded set transcoded = 1 where basename like '%.mkv';" |
>> mysql -uUSERNAME -pPASSWORD mythconverg
>>
>> 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 :)
>>
>>
>>
> That's going to update all mkv recordings isn't it, not just the one you
> are processing?
>
>
> 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.

mysql> update recorded set transcoded = 1 where basename like "%.mkv";
Query OK, 1 rows affected (0.00 sec)
Rows matched: 26  Changed: 1  Warnings: 0

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.

Cheers,

Anthony
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mythtv.org/pipermail/mythtv-users/attachments/20160505/f43d7c3d/attachment.html>


More information about the mythtv-users mailing list