<br><br><div class="gmail_quote">On Thu, Jan 3, 2013 at 8:08 AM, Larry Roberts <span dir="ltr"><<a href="mailto:mythtv@american-hero.com" target="_blank">mythtv@american-hero.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF"><div><div>
<div>On 1/3/2013 8:58 AM, Jeremy Jones
wrote:<br>
</div>
</div></div><blockquote type="cite"><div>On Thu, Jan 3, 2013 at 7:50 AM, Larry Roberts <span dir="ltr"><<a href="mailto:mythtv@american-hero.com" target="_blank">mythtv@american-hero.com</a>></span>
wrote:<br>
<div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On 1/3/2013 3:15 AM, Michael T. Dean wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On 01/03/2013 02:06 AM, Bob Long wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Larry Roberts wrote,<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
My end goal is to get a couple of daily recordings
converted to a roku<br>
compatible format with friendly names for my wife to
watch on the roku<br>
in our bedroom.<br>
</blockquote>
<br>
[snip]<br>
<br>
Are you aware of <a href="http://www.mythtv.org/wiki/Mythlink.pl" target="_blank">http://www.mythtv.org/wiki/Mythlink.pl</a>
?<br>
<br>
</blockquote>
<br>
[snip]<br>
<br>
</blockquote>
Definitely aware of mythlink as I use it to to interface with
airvideo. It was a great find at the time and something my
kids use every night. to stream videos to the iPAD.<br>
<br>
Maybe its just my understanding of how the user job operates
and stores information but how do I tell mythlink to create
links to those newly converted .m4v files? I didn't see a way
to specify the directory the files were in. I believe it gets
that info directly from the DB and from what I can tell only
did the original file. I run mythlink every 30 minutes to
update recording information and I cant find a link to the
newly created .m4v file.<br>
<br>
</blockquote>
<div>I think we all missed the "convert" part of your original
post. What are you doing to create the .m4v files? Since
these are not referenced by mythlink I assume they also do not
show up in Myth Frontend under Watch Recordings. Is that
correct?</div>
<div><br>
</div>
<div><br></div></div></div></blockquote>
I have a user job that references my transcode script. I'm passing
the 2 variables to the script (channel id and start time) which can
then autobuild the file name since it also knows the directory my
recordings are all stored in.<br>
my transcoding is working great and I end up with the transcoded
file in my /tmp/ directory with the typical mythtv name
1006_blahblahblah.m4v. What I want and am trying to do is to
move/rename the .m4v file and create a "family friendly" name in my
directory store.<br>
<br></div></blockquote><div><br></div><div>I think you should be able to transcode directly to the name that you want using the data from the database.</div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF">
my very ugly rename/move command that is part of the transcode
script is below:<br>
<br>
mysql -uroot -ppasswordremoved mythconverg -B --exec "select
basename,title,subtitle from recorded;" | grep
${CHANID}_${STARTTIME} | sed 's/.mpg//'| sed 's/\t/ /g' | while
read b NAME ;do mv {$TMPDIR}/${CHANID}_${STARTTIME}.m4v <i><span>/</span>roku<span>/</span></i>"$NAME".m4v;done
<br>
<br>
</div></blockquote><div><br></div><div>I'm not a programmer either, but I dabble. Is this bash? - I think that the post in this thread by Ron Frazier may be the help you need here. Ron's post is pasted (out of context) below)</div>
<div><span style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif"><br></span></div><div><span style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif">> You need to quote the parameters when you setup the user job. Example:</span><br style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif">
<span style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif">>/usr/local/scripts/myscript %CHANID% %STARTTIMEUTC% "%TITLE%" "%SUBTITLE%"</span></div>
<div><span style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif"><br></span></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF">I woke up this morning to find my file transcoded but still sitting
in the /tmp directory so something isn't working with my command
above, althought I can run it manually and it works just fine
(assuming I set the variables of course) .<br>
<br>
Roku doesn't natively support uPNP. Still looking at finding a
solution for that as it may be easier to just point to mythtv as its
already a uPNP server. <br>
<br></div></blockquote><div><br></div><div>Sound like Chris has a more permanent solution for you to explore (now or maybe later) with mythrokuplayer, but if that does not work for your, why not consider transcoding in place to the m4v file and then use mythlink to generate the links for the roku box to read?</div>
<div><br></div><div>
If this sounds like something you may want to explore then take a look at: <font face="monospace, Courier New"><span style="font-size:12px;line-height:16.233333587646484px"><a href="http://www.mythtv.org/wiki/Transcode_wrapper_stub">http://www.mythtv.org/wiki/Transcode_wrapper_stub</a></span></font></div>
<div><font face="monospace, Courier New"><span style="font-size:12px;line-height:16.233333587646484px"><br></span></font></div>
<div>This is a python script that pretty much has all you need to do to transcode in-place setup in it. You just need to edit the transcode command, and maybe a few others noted with comments. Once that is in place you can call it automatically as a userjob. One note though, any commercial flagging will probably need to be done after running the userjob. </div>
<div><br></div><div>I only see a couple of potential reason not to do this. 1) the quality you are transcoding to is not acceptable for your mythfrontend playback. and 2) you want to permanant store the video and delete it from the recordings.</div>
<div><br></div><div>If #2 is your reason, then look at: <a href="http://www.mythtv.org/wiki/Mythvidexport.py">http://www.mythtv.org/wiki/Mythvidexport.py</a> </div><div>and at: <a href="http://www.mythtv.org/wiki/Lossless_Cut">http://www.mythtv.org/wiki/Lossless_Cut</a></div>
<div><br></div><div>These are intended to export the recording to the video library with real human readable names. </div><div><br></div><div>Jeremy</div><div><br></div></div>