Right, solved.<br><br>For reference, the command to put in as a user job is:<br><br>mythvidexport.py %JOBID%<br><br>No options should be entered if you have preset them by previously running the script with --tformat.  When I was running it with &quot;--tformat %JOBID%&quot;, it was of course setting the tformat to the job ID number.  Similarly, when running from the command line, it was setting tformat to &quot;--chanid&quot;.  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.<br>

<br>I would still like to know how to run this on every recording, getting there though!<br><br>Cheers<br><br>Martin<br><br><div class="gmail_quote">On 31 December 2010 10:52, Martin Moores <span dir="ltr">&lt;<a href="mailto:moores.martin@gmail.com">moores.martin@gmail.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Right, got a bit further with this and understand a bit more<br><br>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<br>

<br>I have managed to run it from the command line, but it does not name the files correctly for some reason:<br>
<br>user@MYTHTV1:~$ &#39;/home/user/Desktop/mythvideoexport.py&#39; --tformat &#39;Television/%TITLE%/Season %SEASON%/%TITLE% - S%SEASON%E%EPISODEPAD% - %SUBTITLE%&#39;<br>Changing TV format to: Television/%TITLE%/Season %SEASON%/%TITLE% - S%SEASON%E%EPISODEPAD% - %SUBTITLE%<br>


user@MYTHTV1:~$ &#39;/home/user/Desktop/mythvideoexport.py&#39; --tformat --chanid 1019 --starttime 20101228221500<br>2010-12-31 10:21:33.222 mythvidexport.py: Using recording -- Great British Railway Journeys - Filey to Scarborough<br>


2010-12-31 10:21:33.242 mythvidexport.py: Attempting TV export.<br>2010-12-31 10:21:48.444 mythvidexport.py: Importing content from -- 133021<br>2010-12-31 10:21:49.037 mythvidexport.py: Copying myth://Default@MYTHTV1/1002_20101231083000.mpg to myth://Videos@MYTHTV1/--chanid.mpg<br>


2010-12-31 10:29:33.976 mythvidexport.py: Transfer Complete -- 464 seconds elapsed<br><br>So I just get a file called --chanid.mpg<br><br>I then tried from the user job, so changed the user job command in the backend to:<br>


<br>/home/user/Desktop/mythvidexport.py --tformat %JOBID%<br><br>The output in the logs is as before, no copying is done:<br><br>2010-12-31 10:39:37.369 JobQueue: Started mythvidexport for &quot;Great British Railway Journeys&quot;:&quot;Filey to Scarborough&quot; recorded from channel 1002 at 2010-12-31T08:30:00<br>


Changing TV format to: 1024<br>2010-12-31 10:39:37.729 JobQueue: Finished &quot;Great British Railway Journeys&quot;:&quot;Filey to Scarborough&quot; for 1002 at 2010-12-31T08:30:00 recorded from channel %3<br><br>And the naming still seems screwed<br>


<br>Any pointers appreciated<br><font color="#888888"><br>Martin</font><div><div></div><div class="h5"><br><br><div class="gmail_quote">On 30 December 2010 11:30, Martin Moores <span dir="ltr">&lt;<a href="mailto:moores.martin@gmail.com" target="_blank">moores.martin@gmail.com</a>&gt;</span> wrote:<br>


<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Hey all,<br><br>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.<br>


<br>Have set the script up in the backend with the following options as a test:<br>
<br>/home/user/Desktop/mythvideoexport.py --tformat %TITLE%<br><br>All runs OK, output in backend logs as follows:<br><br>2010-12-30 10:18:06.330 JobQueue: Started mythvideoexport for &quot;Upstairs Downstairs&quot;:&quot;The Cuckoo&quot; recorded from channel 1001 at 2010-12-28T20:55:00<br>



Changing TV format to: %title%<br>2010-12-30 10:18:07.077 JobQueue: Finished &quot;Upstairs Downstairs&quot;:&quot;The Cuckoo&quot; for 1001 at 2010-12-28T20:55:00 recorded from channel %3<br>2010-12-30 10:18:11.341 JobQueue: Started mythvideoexport for &quot;How Do They Do It?&quot; recorded from channel 1038 at 2010-12-28T19:55:00<br>



Changing TV format to: %title%<br>2010-12-30 10:18:11.682 JobQueue: Finished &quot;How Do They Do It?&quot; for 1038 at 2010-12-28T19:55:00 recorded from channel %3<br>2010-12-30 10:18:16.350 JobQueue: Started mythvideoexport for &quot;Greatest Christmas TV Ads&quot; recorded from channel 1005 at 2010-12-28T19:55:00<br>



Changing TV format to: %title%<br>2010-12-30 10:18:16.685 JobQueue: Finished &quot;Greatest Christmas TV Ads&quot; for 1005 at 2010-12-28T19:55:00 recorded from channel %3<br><br>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?<br>



<br>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).<br><br>Many thanks for any pointers<br><font color="#888888"><br>


Martin<br>
</font></blockquote></div><br>
</div></div></blockquote></div><br>