[mythtv-users] mythtranscode just deleted my file

George Bingham georgeb1962 at gmail.com
Mon Nov 21 00:03:06 UTC 2016


On Sun, Nov 20, 2016 at 4:37 PM, Paul Gardiner <lists at glidos.net> wrote:

> On 20/11/2016 20:31, George Bingham wrote:
>
>> On Sun, Nov 20, 2016 at 8:38 AM, Stuart Auchterlonie
>> <stuarta at squashedfrog.net <mailto:stuarta at squashedfrog.net>> wrote:
>>
>>     On 20/11/16 14:35, Paul Gardiner wrote:
>>
>>         For some years now, I've been using mythtranscode in --fifodir
>> mode,
>>         often running it several times on the same recording to transcode
>>         different parts. All has worked well, until I updated to v 0.28:
>>         now it seems mythtranscode deletes the original file even in
>>         --fifodir
>>         mode. Madness! Any way I can stop it doing that?
>>
>>
>>     Known issue, a patch is being worked on.
>>
>> If you manually link the original recording and give the link a ".tmp"
>> extension, then the mythtranscode command will not delete the original
>> recording and restore it from the .tmp link - provided that you have it
>> set in the mythbackend settings to preserve the original recording.
>>
>
> Is that a link in the linux sense? Does it matter soft or hard? I
> might add that to my script as a work around for now. Do you know
> what the logic is behind that behaviour - why it needs both the
> .tmp file and the setting?
>
> Cheers,
>         Paul.
>
> _______________________________________________
> mythtv-users mailing list
> mythtv-users at mythtv.org
> http://lists.mythtv.org/mailman/listinfo/mythtv-users
> http://wiki.mythtv.org/Mailing_List_etiquette
> MythTV Forums: https://forum.mythtv.org
>


I think the bug is that mythtranscode is not backing up the file itself
before operating on it, but if your script does the backing up (and I use a
hard link, haven't tried it with a soft link) then mythtranscode will
restore it using the link at the end.

Not a developer here, so I don't really know, but when I first discovered
this when I moved to 0.28 a while ago, I started working around it by
making a copy to a tmp file, when someone on this list suggested I link it
instead. I tested it out and it works, so that's what I do now.

George
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mythtv.org/pipermail/mythtv-users/attachments/20161120/bdc8e9d0/attachment.html>


More information about the mythtv-users mailing list