[mythtv-users] Filename Hell

Stephen Worthington stephen_agent at jsw.gen.nz
Mon Nov 19 08:48:14 UTC 2018


On Mon, 19 Nov 2018 12:40:24 +0800, you wrote:

>First who is helped by having file names dated in zulu (Thats an official name for GMT+0) cartainly I’m not. Recordings made at
>12-01 10 september are named eg *201809091601* but
>11-59 10 september are named eg *201809100359*     (sorry if I made an error, but the pic is clear. Perth GMT+8)

Zulu time is the military name for Coordinated Universal Time (UTC).
GMT (Greenwich Mean Time) does not exist and has not existed since the
UTC time standard was established last century and was legislated in
most countries to become the only time standard.  But people often
still refer to the UTC+0 time zone as GMT.

>So in a moment of inspiration
>
>[sandypit] /home/jam [902]% mythtv/mythtv/contrib/user_jobs/mythlink.pl --link /store/pretty --format '%T/%T%-%S'
>Base class package "IO::Socket::INET6" is empty.
>    (Perhaps you need to 'use' the module which defines that package first,
>    or make that module available in @INC (@INC contains: /usr/lib/perl5/site_perl/5.18.2/x86_64-linux-thread-multi /usr/lib/perl5/site_perl/5.18.2 /usr/lib/perl5/vendor_perl/5.18.2/x86_64-linux-thread-multi /usr/lib/perl5/vendor_perl/5.18.2 /usr/lib/perl5/5.18.2/x86_64-linux-thread-multi /usr/lib/perl5/5.18.2 /usr/lib/perl5/site_perl .).
> at /usr/lib/perl5/vendor_perl/5.18.2/IO/Socket/INET/MythTV.pm line 14.
>BEGIN failed--compilation aborted at /usr/lib/perl5/vendor_perl/5.18.2/IO/Socket/INET/MythTV.pm line 14.
>Compilation failed in require at /usr/lib/perl5/vendor_perl/5.18.2/MythTV.pm line 14.
>BEGIN failed--compilation aborted at /usr/lib/perl5/vendor_perl/5.18.2/MythTV.pm line 14.
>Compilation failed in require at mythtv/mythtv/contrib/user_jobs/mythlink.pl line 22.
>BEGIN failed--compilation aborted at mythtv/mythtv/contrib/user_jobs/mythlink.pl line 22.
>
>Is there a list (and presumably cpan) instruction to get the script to work
>
>James

The reason for using UTC in the file names is to prevent clashes of
file names.  If you use local time anywhere there is a daylight saving
time change where the time goes backwards, you get an overlapping time
period when the same times occur again.  So if you record programmes
from the same channel, one at 02:00 (daylight saving time), then the
clock goes back from 03:00 to 02:00 and you record another one hour
later at 02:00 again, they will get the same file name and that will
break mythbackend.


More information about the mythtv-users mailing list