<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Jan 2, 2013 at 10:22 PM, Larry Roberts <span dir="ltr">&lt;<a href="mailto:mythtv@american-hero.com" target="_blank">mythtv@american-hero.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">My end goal is to get a couple of daily recordings converted to a roku compatible format with friendly names for my wife to watch on the roku in our bedroom.<br>
</blockquote><div><br></div><div style>The roku box doesn&#39;t support UPNP?  If it did, you should be able to discover the mythbox and have the human readable names already displayed in the listing.  You might need to enable UPNP on your mythtv server.  Fortunately for me, both my WD live media player and my Asus Media Player supports UPNP.</div>
<div style><br></div><div style>In case you wanted to continue with the CIFS/NFS share route, Bob has already pointed you the <a href="http://mythlink.pl">mythlink.pl</a> script.  An alternative to the <a href="http://mythlink.pl">mythlink.pl</a> script is the myth fuse filesystem (<a href="http://www.mythtv.org/wiki/Mythtvfs">http://www.mythtv.org/wiki/Mythtvfs</a>).</div>
<div style><br></div><div style>Good Luck.</div><div style> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">

<br>
I have managed to setup a proper ffmpeg job to do the transcoding as a user job but the files all get named by $chanid_$starttime.m4v<br>
<br>
What I have managed to brute force is a portion of the transcode script that does a dump of the mythconverg database , looks for the particular file name and then does a rename.  Given the various spaces,tabs, file extenstions its been a pain.<br>

<br>
<br>
My final working method (or at least It worked the last time) is:<br>
<br>
mysql -uroot -ppasswordremoved mythconverg -B --exec &quot;select basename,title,subtitle from recorded;&quot; | grep ${CHANID}_${STARTTIME}  | sed &#39;s/.mpg//&#39;| sed &#39;s/\t/ /g&#39; | while read b NAME ;do mv {$TMPDIR}/${CHANID}_${<u></u>STARTTIME}.m4v /roku/&quot;$NAME&quot;.m4v;done<br>

<br>
CHANID and STARTTIME are variables passed to the script ($1 and $2) from the user job setup.<br>
<br>
NAME ends up being the title,subtitle of the recording regardless of length as I like.<br>
<br>
I looked at adding in some additional variables to the user job, but I couldn&#39;t figure out  how to get $1 and $2 to be the first and second option passed to the script, and $3 to be &quot;all the rest&quot;<br>
<br>
My problem is that the program has spaces in the name as well as in the description such that $3 ends up only being &quot;days&quot; instead of &quot;days of our lives&quot;<br>
<br>
<br>
Perhaps I&#39;m going about this all wrong.  I&#39;m by no means a programmer and I&#39;m not that great of a trial and error hacker.<br>
<br>
Would love some thoughts on this.  I&#39;m giving up for the night but plan on working this again tomorrow when I get home.<br>
<br>
Thanks in advance..<br>
<br>
Larry<br>
<br>
<br>
______________________________<u></u>_________________<br>
mythtv-users mailing list<br>
<a href="mailto:mythtv-users@mythtv.org" target="_blank">mythtv-users@mythtv.org</a><br>
<a href="http://www.mythtv.org/mailman/listinfo/mythtv-users" target="_blank">http://www.mythtv.org/mailman/<u></u>listinfo/mythtv-users</a><br>
</blockquote></div><br></div></div>