[mythtv-users] Plex integration

Gabe Rubin gaberubin at gmail.com
Mon Dec 14 01:06:00 UTC 2015


On Sat, Dec 12, 2015 at 5:27 AM, Khanh Tran <khanh at khanh.net> wrote:

>
>
> On Mon, Dec 7, 2015 at 8:58 AM, Larry Kennedy <lunchtimelarry at gmail.com>
> wrote:
>
>>
>>
>> <snip>
>>
>> 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.
>>>
>>> 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.
>>>
>>
>> MATT!  Can you write this up for the benefit of all?  :)
>>
>>
>
> The mythlink.pl 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:
>
> mythlink.pl --link /mnt/plex-tv --format %U/%T/%T\ -\ %oY-%om-%od\ -\ %S
>
> 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.
>
>
Plex would not recognize with original airdate in the title (although, I
did not use this exact syntaxt, so maybe this would work).

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'


However, my mythbox/plexserver needs to transcode live, which makes seeking
very long.

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:
/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"

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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mythtv.org/pipermail/mythtv-users/attachments/20151213/87a9c3f5/attachment.html>


More information about the mythtv-users mailing list