[mythtv-users] Losslesscut error

Gregory Moyer moyerg at syphr.com
Sun May 12 04:36:01 UTC 2013


On Sat, May 11, 2013 at 7:31 PM, Nick Rout <nick.rout at gmail.com> wrote:

>
>
> On Sat, May 11, 2013 at 11:20 PM, Doug Vaughan <r.d.vaughan at rogers.com>wrote:
>
>> Nick,
>>     Just after click the send button I had another thought.When you first
>> run the lossless_cut script with the "--test" option, in additionto
>> performing a test it writes out the initial configuration file
>> "~/.mythtv/lossless_cut.cfg". I see how you arespecifying the "-umythtv"
>> user. Is there a chance that this is a permissions error issuewhen the
>> script tries to write the configuration file?
>>
>> Just a thought.
>>
>>
> Thanks for your responses Doug. I looked in ~mythtv/.mythtv/ and sure
> enough no config file was there. So I did sudo su - mythtv and sure enough
> the test line worked, and the config file created.
>
> Quite why this is so is a mystery to me, no doubt some shell difficulty.
>
> Also I am unsure how to update to python-lxml without going outside my
> ubuntu packaging. Nevertheless the --test command line tells me I have
> everything I need. I will continue to experiment. Thanks again.
>
>
>
>
>
>
>
>>
>> Doug
>> ______________________________**_________________
>> mythtv-users mailing list
>> mythtv-users at mythtv.org
>> http://www.mythtv.org/mailman/**listinfo/mythtv-users<http://www.mythtv.org/mailman/listinfo/mythtv-users>
>>
>
>
> _______________________________________________
> mythtv-users mailing list
> mythtv-users at mythtv.org
> http://www.mythtv.org/mailman/listinfo/mythtv-users
>
>

I had the same error on Mythbuntu 12.04 and for me it was caused by the
target user (mythtv) attempting to write to the logged-in user's home
directory (not mythtv) to create the initial config file. I changed the
test command to the following and it worked as expected:

sudo -u mythtv -H lossless_cut -f "/path to a/recorded.mpg" --test

The '-H' sets the HOME variable to that of the target user. This probably
doesn't affect everyone because you can configure this to be the default
behavior of sudo if you wish.

Also, I have version 2.3.2-1 for the package python-lxml installed and
things seem to be OK. One of my recordings triggers a runaway memory leak
in mkvmerge, but otherwise everything has been working well.

- Greg
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.mythtv.org/pipermail/mythtv-users/attachments/20130512/59c62914/attachment.html>


More information about the mythtv-users mailing list