[mythtv-users] silence detection blocks jobqueue [ mythcommflag; silence.py ]

Stefan Pappalardo stefan.pappalardo at gmx.de
Mon Oct 20 11:51:43 UTC 2014


Am 20.10.2014 um 12:41 schrieb Roger Siddons:
> On Mon, 20 Oct 2014 11:05:36 +0100, Stefan Pappalardo <stefan.pappalardo at gmx.de> wrote:
>
>> When I get it right then there are two ways to call the script:
>>
>> 1.) /usr/local/bin/silence.py --chanid %CHANID% --starttime %STARTTIME% --loglevel debug --nodblog --syslog local7 --presetfile ~/.mythtv/silence.preset
>>
>> or
>>
>> 2.) /usr/local/bin/silence.py %JOBID% --loglevel debug --nodblog --syslog local7 --presetfile ~/.mythtv/silence.preset
>>
>> Which way do I have to store in the database in field "UserJob1"?
>> The second way won't work in terminal, because there is no relation to the recording. And where can I get the right JobId to use?
>>
>> Stefan Pappalardo
>>
>
> Correct. For user jobs use (2). For testing you can use either (1) or (2) without the --syslog. However (2) is easier.
>
> When myth runs a job it is recorded in the database. I don't know how long it persists or when it actually gets cleaned up but I've still got jobs from 2 days ago available.
>
> In practice, this means that you can actually use a recent jobid from the log in your terminal tests. I suspect your 14065 is still there - if not run it again as a user job & get the new job id.
>
> In theory "silence.py <job id> --loglevel debug" should be enough, as:
>
> - /usr/local/bin should be in your path already
> - I thought --nodblog was default now?
> - you don't want to send output to the syslog; you want it to come out on the terminal
> - this particular example isn't using a preset so the presets file is redundant.
> _______________________________________________
> mythtv-users mailing list
> mythtv-users at mythtv.org
> http://www.mythtv.org/mailman/listinfo/mythtv-users
> http://wiki.mythtv.org/Mailing_List_etiquette
> MythTV Forums: https://forum.mythtv.org
>
OK. I changed the UserJob1 to "/usr/local/bin/silence.py %JOBID% --loglevel debug --syslog local7 --presetfile ~/.mythtv/silence.preset"
"--syslog local7" is needed to get any output in /var/log/mythtv/mythcommflag.log
"--presetfile ~/.mythtv/silence.preset" is needed because the command line for UserJob1 is used for every recording.
When testing I could ommit them and perhaps get some output directly from the terminal. I will try that.

--
Stefan Pappalardo


More information about the mythtv-users mailing list