[mythtv-users] Can't find videos generated by mythvideoexport

Martin Moores moores.martin at gmail.com
Fri Dec 31 13:16:00 UTC 2010


Right, solved.

For reference, the command to put in as a user job is:

mythvidexport.py %JOBID%

No options should be entered if you have preset them by previously running
the script with --tformat.  When I was running it with "--tformat %JOBID%",
it was of course setting the tformat to the job ID number.  Similarly, when
running from the command line, it was setting tformat to "--chanid".
Obvious now I look at it.  My thinking was that --tformat forced the file to
be named with the tformat, as some shows are wrongly detected as films and
named incorrectly.  I guess I just have to put the entire line in as a
userjob, rather than pre-setting the format.

I would still like to know how to run this on every recording, getting there
though!

Cheers

Martin

On 31 December 2010 10:52, Martin Moores <moores.martin at gmail.com> wrote:

> Right, got a bit further with this and understand a bit more
>
> I now see that you have to run mythvidexport once to set the options for
> --tformat, then run it again with no options to get it to do any copying
>
> I have managed to run it from the command line, but it does not name the
> files correctly for some reason:
>
> user at MYTHTV1:~$ '/home/user/Desktop/mythvideoexport.py' --tformat
> 'Television/%TITLE%/Season %SEASON%/%TITLE% - S%SEASON%E%EPISODEPAD% -
> %SUBTITLE%'
> Changing TV format to: Television/%TITLE%/Season %SEASON%/%TITLE% -
> S%SEASON%E%EPISODEPAD% - %SUBTITLE%
> user at MYTHTV1:~$ '/home/user/Desktop/mythvideoexport.py' --tformat --chanid
> 1019 --starttime 20101228221500
> 2010-12-31 10:21:33.222 mythvidexport.py: Using recording -- Great British
> Railway Journeys - Filey to Scarborough
> 2010-12-31 10:21:33.242 mythvidexport.py: Attempting TV export.
> 2010-12-31 10:21:48.444 mythvidexport.py: Importing content from -- 133021
> 2010-12-31 10:21:49.037 mythvidexport.py: Copying myth://Default@MYTHTV1/1002_20101231083000.mpg
> to myth://Videos@MYTHTV1/--chanid.mpg
> 2010-12-31 10:29:33.976 mythvidexport.py: Transfer Complete -- 464 seconds
> elapsed
>
> So I just get a file called --chanid.mpg
>
> I then tried from the user job, so changed the user job command in the
> backend to:
>
> /home/user/Desktop/mythvidexport.py --tformat %JOBID%
>
> The output in the logs is as before, no copying is done:
>
> 2010-12-31 10:39:37.369 JobQueue: Started mythvidexport for "Great British
> Railway Journeys":"Filey to Scarborough" recorded from channel 1002 at
> 2010-12-31T08:30:00
> Changing TV format to: 1024
> 2010-12-31 10:39:37.729 JobQueue: Finished "Great British Railway
> Journeys":"Filey to Scarborough" for 1002 at 2010-12-31T08:30:00 recorded
> from channel %3
>
> And the naming still seems screwed
>
> Any pointers appreciated
>
> Martin
>
>
> On 30 December 2010 11:30, Martin Moores <moores.martin at gmail.com> wrote:
>
>> Hey all,
>>
>> Have got mythvideoexport running as a user job, am wanting a fresh start
>> on this box, so figured this was the best way of getting nicely named
>> recordings to take to my new install.
>>
>> Have set the script up in the backend with the following options as a
>> test:
>>
>> /home/user/Desktop/mythvideoexport.py --tformat %TITLE%
>>
>> All runs OK, output in backend logs as follows:
>>
>> 2010-12-30 10:18:06.330 JobQueue: Started mythvideoexport for "Upstairs
>> Downstairs":"The Cuckoo" recorded from channel 1001 at 2010-12-28T20:55:00
>> Changing TV format to: %title%
>> 2010-12-30 10:18:07.077 JobQueue: Finished "Upstairs Downstairs":"The
>> Cuckoo" for 1001 at 2010-12-28T20:55:00 recorded from channel %3
>> 2010-12-30 10:18:11.341 JobQueue: Started mythvideoexport for "How Do They
>> Do It?" recorded from channel 1038 at 2010-12-28T19:55:00
>> Changing TV format to: %title%
>> 2010-12-30 10:18:11.682 JobQueue: Finished "How Do They Do It?" for 1038
>> at 2010-12-28T19:55:00 recorded from channel %3
>> 2010-12-30 10:18:16.350 JobQueue: Started mythvideoexport for "Greatest
>> Christmas TV Ads" recorded from channel 1005 at 2010-12-28T19:55:00
>> Changing TV format to: %title%
>> 2010-12-30 10:18:16.685 JobQueue: Finished "Greatest Christmas TV Ads" for
>> 1005 at 2010-12-28T19:55:00 recorded from channel %3
>>
>> But where should the renamed videos go?  I assumed they would go to the
>> /var/lib/mythtv/videos directory, which is the default folder for
>> MythVideo.  Or am I not understanding something?
>>
>> Another question on this, is there an easy way to run this on all
>> recordings?  Otherwise I would have to set this off on each one (quite quick
>> via mythweb).
>>
>> Many thanks for any pointers
>>
>> Martin
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mythtv.org/pipermail/mythtv-users/attachments/20101231/f482ec16/attachment.htm>


More information about the mythtv-users mailing list