<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Dec 12, 2015 at 5:27 AM, Khanh Tran <span dir="ltr"><<a href="mailto:khanh@khanh.net" target="_blank">khanh@khanh.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote"><span class="">On Mon, Dec 7, 2015 at 8:58 AM, Larry Kennedy <span dir="ltr"><<a href="mailto:lunchtimelarry@gmail.com" target="_blank">lunchtimelarry@gmail.com</a>></span> wrote:<br></span><span class=""><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote"><div><snip><br></div><span><div><div><br></div></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div>I got this working a long time ago and I agree, having the shows show up in the TV section is much nicer than browsing to the MythTV "channel" in Plex. Search the archives for some tips... I went through quite a bit of wrangling to make mine work but it ended up working pretty well at the time. One important piece is that the symlinks you create don't automatically delete when the recordings go away, so Plex thinks they're still in your library and you get a lot of file not found errors. <br><br></div><div>For the longest time I've been meaning to go back and hone the process, and write up something for the wiki. Somebody yell at me and maybe I'll get around to doing it.<br></div></div></div></div></blockquote><div><br></div></span><div>MATT! Can you write this up for the benefit of all? :)<br> </div></div></div></div></blockquote><div><br></div></span><div>The <a href="http://mythlink.pl" target="_blank">mythlink.pl</a> script should be deleting the previous symlinks every time you run it. I've been using this command line for years with Plex. I divide my recordings into recording groups, which I then have separate Plex libraries for:</div><div><br></div><div><a href="http://mythlink.pl" target="_blank">mythlink.pl</a> --link /mnt/plex-tv --format %U/%T/%T\ -\ %oY-%om-%od\ -\ %S<br></div><div><br></div><div>This will export "original airdate", along with the show's name and episode. Plex's metadata scanner will take care of the rest from there.</div></div></div></div>
<br></blockquote><div><br></div><div>Plex would not recognize with original airdate in the title (although, I did not use this exact syntaxt, so maybe this would work).<br><br></div><div>What I did do was use the latest version of mythlink that is stashed in the contrib directory which now has options for season and episode. I used this syntax, which creates a folder that Plex recognizes: 5 4 * * * /usr/bin/mythlink --link /recordings/ --format '%T/Season %ss/%T - s%sse%ep'<br><br><br></div><div>However, my mythbox/plexserver needs to transcode live, which makes seeking very long.<br><br></div><div>What I would like to do is transcode all the files to another directory and use that for plex, as it won't need to live transcode. I want to do this with all my existing recordings and eventually set up a user job to do it with new recordings. Is there an easy way to set up a script to do that with the existing files? This is the syntax I succesfully used to transcode a file:<br>/usr/bin/HandBrakeCLI -i /recordings/VICE/Season\ 03/VICE\ -\ s03e04.mpg -o /videos/test/VICE\ -\ s03e04.mp4 --audio 1 --aencoder copy:aac --audio-fallback faac --audio-copy-mask aac --preset="Universal"<br><br></div><div>I would like the script to crawl through the complete recordings folder and then output to /videos/test with the remining structure being the same. If easier, I am fine just using mythlink to put all the files in the recordings folder without creating tv show and season specific directories.<br></div><div><br><br></div></div><br></div></div>