[mythtv-users] Supplying arguments to backend command line

Stephen Worthington stephen_agent at jsw.gen.nz
Tue Aug 28 00:22:06 UTC 2018


On Mon, 27 Aug 2018 17:09:06 -0500, you wrote:

>On 08/27/2018 04:59 PM, George Bingham wrote:
>> I am running Ubuntu 16.04 and MythTV fixes/0.28 (frontend says
>> v0.28.2-5-gae037d0).
>> 
>> I see in the systemd backend launch file the following two lines:
>> 
>> EnvironmentFile=-/etc/mythtv/additional.args
>
>You've got it. The leading - before the file name lets systemd continue
>even if the file doesn't exist.
>
>Create it. Owner & group don't matter, as long as user mythtv can read
>it. Mine are mythtv:mythtv and 0644. Could probably be <yourself>:mythtv
>and 0664, but I haven't tried it. Would save you typing sudo...
>
>Here's a line from one:
>
>ADDITIONAL_ARGS="-v system:debug,jobqueue"
>
>Lines can be commented out with a leading # too.

Yes, exactly like that.  The option to log more about recordings is
"-v record"".  That causes a message to be logged at the end of each
recording telling the recording quality.  This is what I get when I
use live TV - it says there is a gap in the recording, because I
stopped recording before the scheduled end of the programme:

root at mypvr:/var/log/mythtv# grep -a "overall_score=\"0"
/var/log/mythtv/mythbackend.log
Aug 25 04:30:33 mypvr mythbackend: mythbackend[3531]: I TVRecEvent
tv_rec.cpp:863 (FinishedRecording) TVRec[90]:
FinishedRecording(10073_2018-08-24T16:30:22Z) damaged
recq:<RecordingQuality overall_score="0"
key="10073_2018-08-24T16:30:22Z" countinuity_error_count="0"
packet_count="16583">#012    <Gap start="2018-08-24T16:00:00Z"
end="2018-08-24T16:30:24Z" duration="1824" />#012    <Gap
start="2018-08-24T16:30:32Z" end="2018-08-24T16:45:00Z" duration="867"
/>#012</RecordingQuality>

And this is what I get from a good recording:

Aug 22 07:51:01 mypvr mythbackend: mythbackend[24251]: I TVRecEvent
tv_rec.cpp:863 (FinishedRecording) TVRec[90]:
FinishedRecording(10074_2018-08-21T18:54:00Z) good
recq:<RecordingQuality overall_score="1"
key="10074_2018-08-21T18:54:00Z" countinuity_error_count="0"
packet_count="5326867" />

There are lots of other detailed messages about the recording process
also.


More information about the mythtv-users mailing list