<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Jun 8, 2023 at 7:53 AM Mike Perkins <<a href="mailto:mikep@randomtraveller.org.uk">mikep@randomtraveller.org.uk</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">On 08/06/2023 12:45, James Abernathy wrote:<br>
> On Wed, Jun 7, 2023 at 7:21 PM Jay Harbeston <<a href="mailto:jharbestonus@gmail.com" target="_blank">jharbestonus@gmail.com</a>> wrote:<br>
> <br>
>><br>
>><br>
>> On Jun 7, 2023, at 7:13 PM, James <<a href="mailto:jam@tigger.ws" target="_blank">jam@tigger.ws</a>> wrote:<br>
>><br>
>><br>
>><br>
>> On 8 Jun 2023, at 7:08 am, Jay Harbeston <<a href="mailto:jharbestonus@gmail.com" target="_blank">jharbestonus@gmail.com</a>> wrote:<br>
>><br>
>><br>
>><br>
>> I have created a python version of ffcut.sh and am currently making sure I<br>
>> have most of the kinks out of it.<br>
>><br>
>> I’m thinking tomorrow I should be able to post the python version the same<br>
>> way as I did the shell version.<br>
>><br>
>> With the python version I did not have to create the text files as<br>
>> intermediary holding arrays for data that needed to be used.<br>
>><br>
>> It will require python version 3+.<br>
>><br>
>> jamesWhen I created it originally, mythtranscode would not handle mp4<br>
>> streams that we were getting from the HDHRs when silicon dust did the 4 or<br>
>> so month experiment of being a content provider from the cloud. The ffmpeg<br>
>> version ffcut.sh and soon the ffcut.py version will be able to handle both<br>
>> mp4 and mpeg 2 transport streams.<br>
>><br>
>><br>
> I'd be interested in looking at the python script also.<br>
> <br>
> BTW, I did get ffcut working for me to a point.   I have to may the mysql<br>
> commands look like this if password was 1234<br>
> sudo mysql -u root -p1234<br>
> <br>
> That works from the console, but not sure what will happen in a UserJob<br>
> when it encounters a sudo?<br>
> <br>
As I recall you can put something in the sudoers file for specific jobs and/or specific users, such <br>
that you wouldn't require a password for that combination. If that wasn't so, half of unix wouldn't run.<br>
<br>
-- <br>
<br>
Mike Perkins<br><br></blockquote><div><br></div><div>You are correct.  I added this line to a /etc/sudoer.d/mysql file</div><div><span style="font-family:monospace"><span style="color:rgb(0,0,0)">mythtv  ALL = NOPASSWD: /usr/bin/mysql</span><br></span></div><div><span style="font-family:monospace"><span style="color:rgb(0,0,0)"><br></span></span></div><div><span style="font-family:monospace"><span style="color:rgb(0,0,0)">Jim A</span></span></div><div><span style="font-family:monospace"><span style="color:rgb(0,0,0)"><br></span></span></div></div></div>