Plex Media Server on Arm Routers

Discussion in 'Tomato Firmware' started by lancethepants, Sep 5, 2015.

  1. lancethepants

    lancethepants Network Guru Member

    Download the startup script and latest tarball at http://files.lancethepants.com/Plex/

    Code:
    tar zxvf plex.tgz -C /opt/
    
    Directory Structure
    /opt/plex -> Debian chroot environment + Plex
    /opt/.plex -> Where plex stores it's database info. To be preserved between upgrades.

    You need to edit plex.sh to set the 'media_dir' variable. This is the root folder for all your media so that it can be accessed from the chroot environment. It will appear to mounted to /mnt within plex.

    Place the startup script wherever you want.

    To start Plex
    Code:
    /path/to/plex.sh start
    
    To stop Plex
    Code:
    /path/to/plex.sh stop
    

    Plex for arm devices does not support transcoding. Your streaming device will need to be able to Direct Play the content.

    WARNING
    If you are upgrading or removing plex by deleting the /opt/plex directory, make sure you first run 'plex.sh stop'. You need to unmount your media first! Make sure it is unmounted. Otherwise deleting /opt/plex will follow your mount and delete your media. I have done this twice in practice already. You have been warned. If in doubt, remove Plex from starting at boot, and reboot the router before proceeding.
     
    Last edited: Sep 5, 2015
    kille72, szpunk, rs232 and 1 other person like this.
  2. steom

    steom Connected Client Member

  3. lancethepants

    lancethepants Network Guru Member

    The only version that works is the build for the Netgear ReadyNAS Arm5.x. From the chart it does not appear trandcoding or remuxing is supported. You will have to test to confirm.
     
  4. tigs

    tigs Network Guru Member

    cool! will attempt.
     
  5. The Master

    The Master Network Guru Member

    cool now we need a menu :) in the Tomato UI :)
     
  6. tigs

    tigs Network Guru Member

    Hi @lancethepants would you be able to take a look to see whether the same thing can be accomplished for Logitech Media server or the squeezeserver as well?

    thanks
     
  7. lancethepants

    lancethepants Network Guru Member

    I don't own any of those devices.
     
  8. Bird333

    Bird333 Network Guru Member

    Does this exist on any MIPS routers like the RT-N66U?
     
  9. lancethepants

    lancethepants Network Guru Member

    No, arm only.
     
    Last edited: Sep 19, 2015
  10. riffdex

    riffdex New Member Member

    Is it possible to install Plex Media Server on my Linksys WRT 1900AC Router?
     
  11. lancethepants

    lancethepants Network Guru Member

    @riffdex
    Yes. I had someone email me that said they were using it on the WRT1900AC.
     
  12. fonos

    fonos Serious Server Member

    I once tried it on a Synology DiskStation of mine (quite old and not the Intel-chipped version) and very quickly concluded that it was so slow as to be unusable. There is a Raspberry Pi version for the Plex client side but the general consensus seems to be that the Pi is unsuitable as a Plex server. Maybe the consensus has changed with the arrival of the Pi 2 but that is a 4-core device with 1GB of RAM, a specification that no current Tomato router can match.
     
  13. galex111

    galex111 LI Guru Member

    Hi lancethepants, I have installed everything in accordance with your instructions - everything is OK, server is up and library is indexed. Photos, MP3 play on all attached players, no problem. But, no one movie is playing: (in the log) server tries to use transcoding but, as you wrote above, no transcoding supported (WEB->Player: Direct Play and Direct Stream are both on). I I tried different movie formats. With the same time all those "test" movies are played well via DLNA on the same players. How to disable (if possible) transcoding at all ? It would be nice to use PLEX just like DLNA but with its all beautiful features (funarts) ?
    Aug 01, 2018 14:47:04 [0x54288400] DEBUG - Auth: We found auth token (xxxxxxxxxxxxxxxxxxxx), enabling token-based authentication.
    Aug 01, 2018 14:47:04 [0x54288400] DEBUG - Auth: Came in with a super-token, authorization succeeded.
    Aug 01, 2018 14:47:04 [0x54288400] DEBUG - Found session GUID of zly34ucmqn in session start.
    Aug 01, 2018 14:47:05 [0x54288400] DEBUG - TranscodeUniversalRequest: using profile Web
    Aug 01, 2018 14:47:05 [0x54288400] DEBUG - Downloading document http://127.0.0.1:32400/library/metadata/51?X-Plex-Token=xxxxxxxxxxxxxxxxxxxx&checkFiles=1
    Aug 01, 2018 14:47:05 [0x54288400] DEBUG - HTTP requesting GET http://127.0.0.1:32400/library/metadata/51?X-Plex-Token=xxxxxxxxxxxxxxxxxxxx&checkFiles=1
    Aug 01, 2018 14:47:05 [0x52a88400] DEBUG - Request: [127.0.0.1:30578] GET /library/metadata/51 (5 live) GZIP
    Aug 01, 2018 14:47:05 [0x52a88400] DEBUG - Auth: We found auth token (xxxxxxxxxxxxxxxxxxxx), enabling token-based authentication.
    Aug 01, 2018 14:47:05 [0x52a88400] DEBUG - Auth: Came in with a super-token, authorization succeeded.
    Aug 01, 2018 14:47:05 [0x52a88400] DEBUG - Updating part with ID=46 [/mnt/000/Layer Cake.avi]
    Aug 01, 2018 14:47:05 [0x52a88400] DEBUG - We're going to try to auto-select an audio stream for account 1.
    Aug 01, 2018 14:47:05 [0x52a88400] DEBUG - Selecting best audio stream for part ID 46 (autoselect: 0 language: ru)
    Aug 01, 2018 14:47:05 [0x52a88400] DEBUG - Audio Stream: 126, Subtitle Stream: -1
    Aug 01, 2018 14:47:05 [0x52a88400] DEBUG - It took 0.0 sec to serialize a list with 1 elements.
    Aug 01, 2018 14:47:05 [0x45b85400] DEBUG - Completed: [127.0.0.1:30578] GET /library/metadata/51 (5 live) GZIP 150ms 2386 bytes 200

    Aug 01, 2018 14:47:05 [0x54288400] DEBUG - MDE: analyzing media item 46
    Aug 01, 2018 14:47:05 [0x54288400] DEBUG - MDE: Layer Cake (2005): Direct Play is disabled
    Aug 01, 2018 14:47:05 [0x54288400] DEBUG - MDE: Layer Cake (2005): no direct play video profile exists for http/avi/mpeg4
    Aug 01, 2018 14:47:05 [0x54288400] DEBUG - MDE: Layer Cake (2005): no direct play video profile exists for http/avi/mpeg4/mp3
    Aug 01, 2018 14:47:05 [0x54288400] DEBUG - MDE: Layer Cake (2005): no remuxable profile found, so video stream will be transcoded

    Aug 01, 2018 14:47:05 [0x54288400] DEBUG - MDE: computed resolution bounding box of 688x288.
    Aug 01, 2018 14:47:05 [0x54288400] DEBUG - Scaled up video bitrate to 1276Kbps based on 1.500000x fudge factor.
    Aug 01, 2018 14:47:05 [0x54288400] DEBUG - MDE: Layer Cake (2005): selected media 0 / 46
    Aug 01, 2018 14:47:05 [0x54288400] DEBUG - Cleaning directory for session zly34ucmqn ()
    Aug 01, 2018 14:47:05 [0x54288400] DEBUG - Starting a transcode session zly34ucmqn at offset -1.0 (state=2)
    Aug 01, 2018 14:47:05 [0x54288400] DEBUG - [Universal] Using local file path instead of URL: /mnt/000/Layer Cake.avi
    Aug 01, 2018 14:47:05 [0x54288400] DEBUG - TranscodeJobManager: [Running] onTranscodeSessionStarted: zly34ucmqn
    Aug 01, 2018 14:47:05 [0x54288400] DEBUG - TranscodeJobManager: [Running] -> [Throttled]
    Aug 01, 2018 14:47:05 [0x54288400] DEBUG - Job running: XDG_CACHE_HOME='/home/Library/Caches/PlexMediaServer/' XDG_DATA_HOME='/plex/Resources/' '/plex/Resources/Plex New Transcoder' '-i' '/mnt/000/Layer Cake.avi' '-filter_complex' '[0:0]scale=w=min(688\,iw):h=min(288\,ih):force_original_aspect_ratio=decrease[0]' '-map' '[0]' '-codec:0' 'libx264' '-crf:0' '18' '-pix_fmt:0' 'yuv420p' '-maxrate:0' '1276k' '-bufsize:0' '2552k' '-r:0' '23.975999999999999' '-preset:0' 'veryfast' '-x264opts:0' 'cabac=0:8x8dct=1:bframes=0:subme=2:me_range=4:rc_lookahead=10:me=dia:no_chroma_me:8x8dct=0:partitions=none' '-map' '0:#0x01' '-codec:1' 'aac' '-strict:1' 'experimental' '-cutoff:1' '15000' '-ar:1' '48000' '-channel_layout:1' 'stereo' '-b:1' '256k' '-f' 'matroska' '-avoid_negative_ts' 'disabled' '-map_metadata' '-1' '-map_chapters' '-1' '-' '-start_at_zero' '-copyts' '-y' '-nostats' '-loglevel' 'quiet' '-loglevel_plex' 'error' '-progressurl' 'http://127.0.0.1:32400/video/:/transcode/session/zly34ucmqn/progress'

    Aug 01, 2018 14:47:05 [0x54288400] ERROR - Failed to start session successfully.
    Aug 01, 2018 14:47:05 [0x54288400] DEBUG - Cleaning directory for session zly34ucmqn (/home/Library/Caches/PlexMediaServer/Transcode/Sessions/plex-transcode-zly34ucmqn-6c16e98f-1fdc-4c4c-a46b-a9923ccbdcc2)
    Aug 01, 2018 14:47:05 [0x45b85400] DEBUG - Completed: [192.168.1.104:49491] GET /video/:/transcode/universal/start?path=http%3A%2F%2F127.0.0.1%3A32400%2Flibrary%2Fmetadata%2F51&mediaIndex=0&partIndex=0&protocol=http&offset=0&fastSeek=1&directPlay=0&directStream=1&subtitleSize=100&audioBoost=100&session=zly34ucmqn&subtitles=burn&copyts=1&Accept-Language=en (5 live) 933ms 251 bytes 404
    UPD: I also tried another "instructions" from here - same results: server is up, indexing is OK , MP3 play but movie - no.
     
    Last edited: Aug 1, 2018
  14. lancethepants

    lancethepants Network Guru Member

    Unfortunately Plex discontinued builds for the Netgear ReadyNAS Arm5.x, which is where we pulled the binaries to work on our routers. The last build they made is very old now. Not sure what devices you're trying to stream from, but I'm afraid I probably won't be much help. I run plex on my home server which I know makes abundant use of transcoding. I would google what formats your streaming media player can natively play, and find or create a file that it should be able to play to test. Back in the day I used the wdtv (live), which played just about any video format you threw at it (though no plex integration). Now a-days I just about exclusively use the chromecast.
     
  15. galex111

    galex111 LI Guru Member

    Thank you for comments. More details (may be it will help you to give any recommendation):
    1. I have Netgear R7000 (it works now under FrshTomato 2018.3: linux-ubuntu-arm version: 2.6.36.4brcmarm, CPU ARMv7 Processor rev 0 (v7l) BCM4709 2x1GHz - same as Asus AC68U)
    2. There is minidlna server installed into Tomato - all files from attached USB drive (all formats - avi, mkv, mpeg, mov, etc) play well via DLNA on Sony TV, iPad, DUNE HD player which I have in the home.
    3. I installed PLEX 0.9.16.6 from your repo in accordance with your instructions above.
    4. Everything looks OK, server works and library indexed - I can see and setup via CHROM/Safari browser.
    5. ANY movies don't play at all (I've got "There was a problem playing this item.") but MP3 and photo plays well onto all my "external" players:
    • SONY TV (modern PLEX client from Opera TV Store)
    • iPad 3 (old PLEX 3.5.3 client for iOS 6 but it still works !)
    • CHROM & Safari browsers (web client) on desktop Mac.
    After analyze of log(s) from "/opt/.plex/Library/Logs/Plex Media Server/Plex Media Server.log" I noted:
    • requests from SONY TV recognized as:
      Aug 01, 2018 21:02:51 [0x50179400] DEBUG - [Now] Device is Opera TV Store ().
      Aug 01, 2018 21:02:51 [0x50179400] DEBUG - [Now] Profile is Opera TV App
    • requests from iPad recognized as:
      Aug 01, 2018 20:36:01 [0x50102400] DEBUG - [Now] Device is iOS (Alex’s iPad 3).
      Aug 01, 2018 20:36:01 [0x50102400] DEBUG - [Now] Profile is iOS
    • requests from Chrom recognized as:
      Aug 01, 2018 20:08:58 [0x526ff400] DEBUG - [Now] Device is Chrome (Plex Web (Chrome)).
      Aug 01, 2018 20:08:58 [0x526ff400] DEBUG - [Now] Profile is Web
    Then I opened corresponding "profiles" per each client from "/opt/plex/plex/Resources/Profiles" and found:
    • for SONY TV (as well as as Opera TV app):
      • Opera TV App.xml
        <?xml version="1.0" encoding="utf-8"?>
        <Client name="Opera TV App">
        <!--
        Author:
        Plex Inc.
        History:
        0.9.11.16: First release. Branched from Web.xml profile to change VideoProfile audioCodec to aac.
        0.9.12.0: Included HLS and DASH MusicProfile with videoCodec.
        0.9.12.3: HTTP protocol support added for VideoProfile and MusicProfile with videoCodec.
        -->
        <TranscodeTargets>
        <VideoProfile protocol="hls" container="mpegts" videoCodec="h264" audioCodec="aac" context="streaming" />
        <VideoProfile protocol="dash" container="mp4" videoCodec="h264" audioCodec="aac" context="streaming" />
        <VideoProfile protocol="http" container="mkv" codec="h264" audioCodec="aac" context="streaming" />

        <MusicProfile protocol="hls" container="mpegts" videoCodec="h264" audioCodec="aac" context="streaming" />
        <MusicProfile protocol="dash" container="mp4" videoCodec="h264" audioCodec="aac" context="streaming" />
        <MusicProfile protocol="http" container="mkv" videoCodec="h264" audioCodec="aac" context="streaming" />

        <PhotoProfile container="jpeg" />
        </TranscodeTargets>
        <CodecProfiles>
        <VideoCodec name="*">
        <Limitations>
        <UpperBound name="video.width" value="1920" />
        <UpperBound name="video.height" value="1080" />
        <UpperBound name="video.bitDepth" value="8" isRequired="false" />
        </Limitations>
        </VideoCodec>
        </CodecProfiles>
        </Client>
      • Sony Bravia 2013.xml
        <?xml version="1.0" encoding="utf-8"?>
        <Client name="Sony Bravia 2013">
        <!-- Author: Plex Inc. based on original profile from Yardco -->
        <!-- http://kb.sony-europe.com/SRVS/CGI-...00000126929163,Key=215,SXI=14,Case=obj(26884) -->
        <Identification>
        <Header name="X-AV-Client-Info" regex=".*KDL-\d{2}[WR][5689]\d{2}A.*" />
        <DeviceDescription>
        <Manufacturer substring="Sony" />
        <FriendlyName regex="KDL-\d{2}[WR][5689]\d{2}A.*" />
        </DeviceDescription>
        </Identification>
        <DeviceDescription>
        <ModelName>Windows Media Player Sharing</ModelName>
        <ModelNumber>3.0</ModelNumber>
        <ModelUrl>http://www.microsoft.com/</ModelUrl>
        <Manufacturer>Microsoft Corporation</Manufacturer>
        <ManufacturerUrl>http://www.microsoft.com/</ManufacturerUrl>
        <X-DlnaCap />
        <Sony-AggregationFlags>10</Sony-AggregationFlags>
        </DeviceDescription>
        <Settings>
        <Setting name="AlbumArtPN" value="JPEG_TN" />
        </Settings>
        <TranscodeTargets>
        <VideoProfile container="mpegts" codec="h264" audioCodec="ac3,aac" context="streaming">
        <Setting name="MpegtsM2tsMode" value="true" />
        </VideoProfile>
        <MusicProfile container="mp3" codec="mp3" />
        <PhotoProfile container="jpeg" />
        </TranscodeTargets>
        <DirectPlayProfiles>
        <VideoProfile container="mpegts" codec="h264" audioCodec="ac3,eac3,aac,mp3" />
        <VideoProfile container="mpegts" codec="mpeg2video" audioCodec="mp3,mp2" />
        <VideoProfile container="mp4" codec="h264,mpeg4" audioCodec="ac3,eac3,aac,mp3,mp2" />
        <VideoProfile container="mov" codec="h264,mpeg4,mjpeg" audioCodec="ac3,eac3,aac,mp3,mp2" />
        <VideoProfile container="mkv" codec="h264,mpeg4,vp8" audioCodec="ac3,eac3,aac,mp3,mp2,pcm,vorbis" />
        <VideoProfile container="avi" codec="mpeg4" audioCodec="ac3,eac3,mp3" />
        <VideoProfile container="avi" codec="mjpeg" audioCodec="pcm" />
        <VideoProfile container="mpeg" codec="mpeg2video,mpeg1video" audioCodec="mp3,mp2" />
        <VideoProfile container="asf" codec="wmv2,wmv3,vc1" audioCodec="wmav2,wmapro,wmavoice" />
        <MusicProfile container="mp3" codec="mp3" />
        <MusicProfile container="mp4" codec="aac" />
        <MusicProfile container="wav" codec="pcm" />
        <MusicProfile container="asf" codec="wmav2,wmapro,wmavoice" />
        <PhotoProfile container="jpeg" />
        </DirectPlayProfiles>
        <CodecProfiles>
        <VideoCodec name="*">
        <Limitations>
        <UpperBound name="video.width" value="1920" />
        <UpperBound name="video.height" value="1080" />
        </Limitations>
        </VideoCodec>
        </CodecProfiles>
        <ContainerProfiles>
        <PhotoContainer name="*">
        <Limitations>
        <UpperBound name="media.width" value="1920" />
        <UpperBound name="media.height" value="1080" />
        </Limitations>
        </PhotoContainer>
        </ContainerProfiles>
        <DlnaMediaProfiles>
        <!-- These are from the Serviio profile. Thanks, Serviio -->
        <DlnaVideoProfile container="mpegts" codec="h264" audioCodec="ac3,aac,mp3" pn="AVC_TS_HD_24_AC3_T,AVC_TS_HD_50_AC3_T,AVC_TS_HD_60_AC3_T,AVC_TS_HD_EU_T" mimeType="video/vnd.dlna.mpeg-tts">
        <Limitations>
        <Match name="video.packetLength" value="192" />
        <Match name="video.timeStamp" value="1" />
        </Limitations>
        </DlnaVideoProfile>
        <DlnaVideoProfile container="mpegts" codec="h264" audioCodec="ac3,aac,mp3" pn="AVC_TS_HD_24_AC3_ISO,AVC_TS_HD_50_AC3_ISO,AVC_TS_HD_60_AC3_ISO,AVC_TS_HD_EU_ISO" mimeType="video/mpeg">
        <Limitations>
        <Match name="video.packetLength" value="188" />
        </Limitations>
        </DlnaVideoProfile>
        <DlnaVideoProfile container="mpegts" codec="h264" audioCodec="ac3,aac,mp3" pn="AVC_TS_HD_24_AC3,AVC_TS_HD_50_AC3,AVC_TS_HD_60_AC3,AVC_TS_HD_EU" mimeType="video/vnd.dlna.mpeg-tts" />
        <DlnaVideoProfile container="mpegts" codec="mpeg2video" pn="MPEG_TS_SD_EU,MPEG_TS_SD_NA,MPEG_TS_SD_KO" mimeType="video/vnd.dlna.mpeg-tts" />
        <!-- These are inferred from the earlier PMS Bravia profile -->
        <DlnaVideoProfile container="mpeg" codec="mpeg1video,mpeg2video" pn="MPEG_PS_NTSC,MPEG_PS_PAL" mimeType="video/mpeg" />
        <DlnaVideoProfile container="mpeg" codec="mpeg1video,mpeg2video" pn="MPEG_PS_NTSC,MPEG_PS_PAL" mimeType="video/mpeg" />
        <DlnaVideoProfile container="mpeg" codec="mpeg1video,mpeg2video" pn="MPEG_PS_NTSC,MPEG_PS_PAL" mimeType="video/mpeg" />
        <DlnaVideoProfile container="avi" pn="" mineType="video/avi" />
        <!-- TODO - if necessary, remap WMABASE to WMA_BASE and WMAFULL to WMA_FULL-->
        </DlnaMediaProfiles>
        </Client>
      • Sony Streaming Player.xml
        <?xml version="1.0" encoding="utf-8"?>
        <Client name="Sony Streaming Player">
        <!-- Author: Plex Inc. -->
        <!-- http://www.docs.sony.com/release/SMP-N200_NX20.pdf -->
        <Identification>
        <Header name="X-AV-Client-Info" regex="cn=&quot;Sony Corporation&quot;;.*mn=&quot;Media Player" />
        </Identification>
        <TranscodeTargets>
        <VideoProfile container="mpegts" codec="h264" audioCodec="aac" context="streaming" />
        <MusicProfile container="mp3" codec="mp3" />
        <PhotoProfile container="jpeg" />
        </TranscodeTargets>
        <DirectPlayProfiles>
        <VideoProfile container="avi" codec="mpeg4" audioCodec="mp2,mp3" />
        <VideoProfile container="mkv" codec="h264,mpeg4" audioCodec="aac,ac3,mp2,mp3,pcm" />
        <VideoProfile container="mp4" codec="h264,mpeg2video,mpeg4" audioCodec="aac,ac3,mp2,mp3" />
        <VideoProfile container="mpeg" codec="mpeg1video,mpeg2video" audioCodec="mp2" />
        <MusicProfile container="mp3" codec="mp3" />
        <MusicProfile container="mp4" codec="aac" />
        <MusicProfile container="asf" codec="wmav2,wmapro,wmavoice" />
        <MusicProfile container="wav" codec="pcm" />
        <PhotoProfile container="jpeg,png,gif,bmp,tiff" />
        </DirectPlayProfiles>
        <CodecProfiles>
        <VideoCodec name="h264">
        <Limitations>
        <UpperBound name="video.width" value="1920" />
        <UpperBound name="video.height" value="1080" />
        <UpperBound name="video.frameRate" value="30" />
        <UpperBound name="video.bitrate" value="15360" />
        <UpperBound name="video.level" value="41" />
        </Limitations>
        </VideoCodec>
        <VideoAudioCodec name="ac3">
        <Limitations>
        <UpperBound name="audio.channels" value="6" />
        <UpperBound name="audio.bitrate" value="640" />
        </Limitations>
        </VideoAudioCodec>
        <VideoAudioCodec name="aac">
        <Limitations>
        <UpperBound name="audio.channels" value="2" />
        </Limitations>
        </VideoAudioCodec>
        </CodecProfiles>
        <ContainerProfiles>
        <PhotoContainer name="*">
        <Limitations>
        <UpperBound name="media.width" value="1920" />
        <UpperBound name="media.height" value="1080" />
        </Limitations>
        </PhotoContainer>
        </ContainerProfiles>
        </Client>
    • for iPad:
      • iOS-iPad-1,1.xml
        <?xml version="1.0" encoding="utf-8"?>
        <Client name="iOS-iPad-1,1" redirect="iOS-iPhone-3,1" />
    • for Chrom:
      • Chrome.xml
        <?xml version="1.0" encoding="utf-8"?>
        <Client name="Chrome" redirect="Web" />
    There are either just <TranscodeTargets> or both <TranscodeTargets> + <DirectPlayProfiles> sections there. May be we can setup any parameters there: say to modify/discard <TranscodeTargets> section or to insert any operators which will force just DirectPlay ? No any ideas about it ?
    Unfortunately I am not familiar with those structure ... for me ideal variant of universal server is - PLEX (with its perfect user-friendly GUI+library) with ONLY DirectPlay (like dlna server can) functionality. If it could be realized - I will be 100% happy ! Sorted songs-movies-library with beautiful full fanarts where all files could be directly played on "external" player (like TV, DUNE, iPad, etc) ... just a dream ?

    I also read somewhere on PLEX forums that "forced transcoding" functionality has been added into new versions only (many peoples, who well used PLEX long time before, got "There was a problem playing this item." message. They wrote "it wasn't so before !"). May be to try to install any old version of Plex from your repo (9.12.11, 9.15.2, 9.16.3) ?
     
    Last edited: Aug 2, 2018
  16. galex111

    galex111 LI Guru Member

    UPD #1:
    Just tried to start one more movie via Chrom browser (server recognized that request and used "Web.xml" profile) and found couple errors in the log:
    <?xml version="1.0" encoding="utf-8"?>
    <Client name="Web">
    <!-- Author: Plex Inc. -->
    <TranscodeTargets>
    <VideoProfile protocol="hls" container="mpegts" codec="h264" audioCodec="mp3" context="streaming">
    <Setting name="VideoEncodeFlags" value="-x264opts cabac=0" />
    </VideoProfile>
    <VideoProfile protocol="dash" container="mp4" codec="h264" audioCodec="aac" context="streaming">
    <Setting name="VideoEncodeFlags" value="-x264opts cabac=0" />
    </VideoProfile>
    <VideoProfile protocol="http" container="mkv" codec="h264" audioCodec="aac" context="streaming" />
    <MusicProfile container="mp3" codec="mp3" />
    <PhotoProfile container="jpeg" />
    <SubtitleProfile container="ass" codec="ass" context="all" />
    </TranscodeTargets>
    <DirectPlayProfiles>
    <VideoProfile container="mp4" codec="h264" audioCodec="aac" />
    <MusicProfile container="mp4" codec="aac" />
    <MusicProfile container="mp3" codec="mp3" />
    <PhotoProfile container="jpeg,gif,bmp,png" />
    </DirectPlayProfiles>
    <ContainerProfiles>
    <VideoContainer name="mp4">
    <Limitations>
    <Match name="part.optimizedForStreaming" value="1" />
    </Limitations>
    </VideoContainer>
    </ContainerProfiles>
    <CodecProfiles>
    <VideoCodec name="*">
    <Limitations>
    <UpperBound name="video.width" value="1920" />
    <UpperBound name="video.height" value="1080" />
    <UpperBound name="video.bitDepth" value="8" isRequired="false" />
    </Limitations>
    </VideoCodec>
    <VideoAudioCodec name="aac">
    <Limitations>
    <UpperBound name="audio.channels" value="2" />
    </Limitations>
    </VideoAudioCodec>
    </CodecProfiles>
    </Client>
    Aug 02, 2018 21:00:47 [0x4caff400] DEBUG - Auth: We found auth token (xxxxxxxxxxxxxxxxxxxx), enabling token-based authentication.
    Aug 02, 2018 21:00:47 [0x4caff400] DEBUG - Auth: Came in with a super-token, authorization succeeded.
    Aug 02, 2018 21:00:47 [0x4caff400] DEBUG - Found session GUID of pun74lg0ec in session start.
    Aug 02, 2018 21:00:47 [0x4caff400] DEBUG - TranscodeUniversalRequest: using profile Web
    Aug 02, 2018 21:00:47 [0x4caff400] DEBUG - Downloading document http://127.0.0.1:32400/library/metadata/26?X-Plex-Token=xxxxxxxxxxxxxxxxxxxx&checkFiles=1
    Aug 02, 2018 21:00:47 [0x4caff400] DEBUG - HTTP requesting GET http://127.0.0.1:32400/library/metadata/26?X-Plex-Token=xxxxxxxxxxxxxxxxxxxx&checkFiles=1
    Aug 02, 2018 21:00:47 [0x4fc83400] DEBUG - Request: [127.0.0.1:29381] GET /library/metadata/26 (5 live) GZIP
    Aug 02, 2018 21:00:47 [0x4fc83400] DEBUG - Auth: We found auth token (xxxxxxxxxxxxxxxxxxxx), enabling token-based authentication.
    Aug 02, 2018 21:00:47 [0x4fc83400] DEBUG - Auth: Came in with a super-token, authorization succeeded.
    Aug 02, 2018 21:00:47 [0x4fc83400] DEBUG - Updating part with ID=25 [/mnt/TheDeatthofStallin.2017.720p.BluRay.X264.MVO.mkv]
    Aug 02, 2018 21:00:47 [0x4fc83400] DEBUG - We're going to try to auto-select an audio stream for account 1.
    Aug 02, 2018 21:00:47 [0x4fc83400] DEBUG - Selecting best audio stream for part ID 25 (autoselect: 1 language: ru)
    Aug 02, 2018 21:00:47 [0x4fc83400] DEBUG - Audio Stream: 71, Subtitle Stream: -1
    Aug 02, 2018 21:00:47 [0x4fc83400] DEBUG - It took 0.0 sec to serialize a list with 1 elements.
    Aug 02, 2018 21:00:47 [0x452ff400] DEBUG - Completed: [127.0.0.1:29381] GET /library/metadata/26 (5 live) GZIP 179ms 3414 bytes 200
    Aug 02, 2018 21:00:47 [0x4caff400] DEBUG - MDE: analyzing media item 25
    Aug 02, 2018 21:00:47 [0x4caff400] DEBUG - MDE: TheDeatthofStallin (2018): Direct Play is disabled
    Aug 02, 2018 21:00:47 [0x4caff400] DEBUG - MDE: TheDeatthofStallin (2018): no direct play video profile exists for http/mkv/h264
    Aug 02, 2018 21:00:47 [0x4caff400] DEBUG - MDE: TheDeatthofStallin (2018): no direct play video profile exists for http/mkv/h264/ac3
    Aug 02, 2018 21:00:47 [0x4caff400] DEBUG - MDE: TheDeatthofStallin (2018): no direct play video profile exists for http/mkv/h264/dca
    Aug 02, 2018 21:00:47 [0x4caff400] DEBUG - MDE: TheDeatthofStallin (2018): selected media 0 / 25
    Aug 02, 2018 21:00:47 [0x4caff400] DEBUG - Cleaning directory for session pun74lg0ec ()
    Aug 02, 2018 21:00:47 [0x4caff400] DEBUG - Starting a transcode session pun74lg0ec at offset -1.0 (state=2)
    Aug 02, 2018 21:00:47 [0x4caff400] DEBUG - [Universal] Using local file path instead of URL: /mnt/TheDeatthofStallin.2017.720p.BluRay.X264.MVO.mkv
    Aug 02, 2018 21:00:47 [0x4caff400] DEBUG - TranscodeJobManager: [Throttled] onTranscodeSessionStarted: pun74lg0ec
    Aug 02, 2018 21:00:47 [0x4caff400] DEBUG - Job running: XDG_CACHE_HOME='/home/Library/Caches/PlexMediaServer/' XDG_DATA_HOME='/plex/Resources/' '/plex/Resources/Plex New Transcoder' '-ss' '630' '-noaccurate_seek' '-i' '/mnt/The.Death.of.Stalin.2017.720p.BluRay.X264.MVO.mkv' '-map' '0:0' '-codec:0' 'copy' '-map' '0:1' '-metadata:s:1' 'language=rus' '-codec:1' 'aac' '-strict:1' 'experimental' '-cutoff:1' '15000' '-ar:1' '48000' '-channel_layout:1' 'stereo' '-b:1' '256k' '-f' 'matroska' '-avoid_negative_ts' 'disabled' '-map_metadata' '-1' '-map_chapters' '-1' '-' '-start_at_zero' '-copyts' '-y' '-nostats' '-loglevel' 'quiet' '-loglevel_plex' 'error' '-progressurl' 'http://127.0.0.1:32400/video/:/transcode/session/pun74lg0ec/progress'
    Aug 02, 2018 21:00:47 [0x4caff400] ERROR - Failed to start session successfully.
    Aug 02, 2018 21:00:47 [0x4caff400] DEBUG - Cleaning directory for session pun74lg0ec (/tmp/mnt/WD3Tb/TMP/plex-transcode-pun74lg0ec-d1785265-d321-4afa-95c7-86ac73e6d386)
    Aug 02, 2018 21:00:47 [0x452ff400] DEBUG - Completed: [192.168.1.104:60244] GET /video/:/transcode/universal/start?path=http%3A%2F%2F127.0.0.1%3A32400%2Flibrary%2Fmetadata%2F26&mediaIndex=0&partIndex=0&protocol=http&offset=630&fastSeek=1&directPlay=0&directStream=1&subtitleSize=100&audioBoost=100&session=pun74lg0ec&subtitles=burn&copyts=1&Accept-Language=en (5 live) 245ms 251 bytes 404 (pipelined: 4)
    Aug 02, 2018 21:00:47 [0x4a00a400] DEBUG - Request: [192.168.1.104:60244] GET /:/timeline?ratingKey=26&key=%2Flibrary%2Fmetadata%2F26&state=error&playQueueItemID=192&time=630000&duration=6395008 (4 live) GZIP
    Aug 02, 2018 21:00:47 [0x4a00a400] DEBUG - Auth: We found auth token (xxxxxxxxxxxxxxxxxxxx), enabling token-based authentication.
    Aug 02, 2018 21:00:47 [0x4a00a400] DEBUG - Auth: Came in with a super-token, authorization succeeded.
    Aug 02, 2018 21:00:47 [0x4a00a400] DEBUG - Client [kkrt7iatrjd] reporting timeline state error, progress of 630000/6395008ms for guid=, ratingKey=26 url=, key=/library/metadata/26, containerKey=, metadataId=26
    Aug 02, 2018 21:00:47 [0x4a00a400] DEBUG - Play progress on 26 'TheDeatthofStallin' - got played 630000 ms by account 1!
    Aug 02, 2018 21:00:48 [0x4a00a400] DEBUG - [Now] User is galex (ID: 1)
    Aug 02, 2018 21:00:48 [0x4a00a400] DEBUG - [Now] Device is Chrome (Plex Web (Chrome)).
    Aug 02, 2018 21:00:48 [0x4a00a400] DEBUG - [Now] Profile is Web

    Aug 02, 2018 21:00:48 [0x4a00a400] DEBUG - [Now] Updated play state for /library/metadata/26.
    Aug 02, 2018 21:00:48 [0x4b8f9400] DEBUG - Downloading document http://127.0.0.1:32400/library/metadata/26
    Aug 02, 2018 21:00:48 [0x4a00a400] DEBUG - Statistics: (kkrt7iatrjd) Reporting active playback in state 0 of type 1 (scrobble: 0) for account 1
    Aug 02, 2018 21:00:48 [0x4b8f9400] DEBUG - Auth: We found auth token (xxxxxxxxxxxxxxxxxxxx), enabling token-based authentication.
    Aug 02, 2018 21:00:48 [0x4b8f9400] DEBUG - Auth: Came in with a super-token, authorization succeeded.
    Aug 02, 2018 21:00:48 [0x45b90400] DEBUG - Completed: [192.168.1.104:60244] GET /:/timeline?ratingKey=26&key=%2Flibrary%2Fmetadata%2F26&state=error&playQueueItemID=192&time=630000&duration=6395008 (4 live) GZIP 106ms 158 bytes 200 (pipelined: 5)
    Aug 02, 2018 21:00:48 [0x4b8f9400] DEBUG - It took 0.0 sec to serialize a list with 1 elements.
    Aug 02, 2018 21:00:48 [0x4b8f9400] DEBUG - Caching document http://127.0.0.1:32400/library/metadata/26 as a10b77e5786235d2ef6cf4b8f5434f8ae52bd716
    Aug 02, 2018 21:00:48 [0x4b8f9400] DEBUG - [Now] Added metadata for /library/metadata/26.
    Aug 02, 2018 21:00:48 [0x4fc83400] DEBUG - Request: [192.168.1.104:60244] GET /status/sessions (4 live) GZIP
    Aug 02, 2018 21:00:48 [0x4fc83400] DEBUG - Auth: We found auth token (xxxxxxxxxxxxxxxxxxxx), enabling token-based authentication.
    Aug 02, 2018 21:00:48 [0x4fc83400] DEBUG - Auth: Came in with a super-token, authorization succeeded.
    Aug 02, 2018 21:00:48 [0x4fc83400] DEBUG - [Now] Adding 1 sessions.
    Aug 02, 2018 21:00:48 [0x4fc83400] DEBUG - It took 0.0 sec to serialize a list with 1 elements.
    Aug 02, 2018 21:00:48 [0x452ff400] DEBUG - Completed: [192.168.1.104:60244] GET /status/sessions (4 live) GZIP 9ms 3512 bytes 200 (pipelined: 6)
    Aug 02, 2018 21:00:49 [0x4caff400] DEBUG - Request: [192.168.1.104:60244] GET /:/timeline?ratingKey=26&key=%2Flibrary%2Fmetadata%2F26&state=stopped&playQueueItemID=192&time=630000&duration=6395008 (4 live) GZIP
    Aug 02, 2018 21:00:49 [0x4caff400] DEBUG - Auth: We found auth token (xxxxxxxxxxxxxxxxxxxx), enabling token-based authentication.
    Aug 02, 2018 21:00:49 [0x4caff400] DEBUG - Auth: Came in with a super-token, authorization succeeded.
    Aug 02, 2018 21:00:49 [0x4a00a400] DEBUG - Request: [192.168.1.104:60245] GET /video/:/transcode/universal/stop?session=pun74lg0ec (4 live) GZIP
    Aug 02, 2018 21:00:49 [0x4a00a400] DEBUG - Auth: We found auth token (xxxxxxxxxxxxxxxxxxxx), enabling token-based authentication.
    Aug 02, 2018 21:00:49 [0x4a00a400] DEBUG - Auth: Came in with a super-token, authorization succeeded.
    Aug 02, 2018 21:00:49 [0x4caff400] DEBUG - Client [kkrt7iatrjd] reporting timeline state stopped, progress of 630000/6395008ms for guid=, ratingKey=26 url=, key=/library/metadata/26, containerKey=, metadataId=26
    Aug 02, 2018 21:00:49 [0x452ff400] DEBUG - Completed: [192.168.1.104:60245] GET /video/:/transcode/universal/stop?session=pun74lg0ec (4 live) GZIP 6ms 158 bytes 200 (pipelined: 5)
    Aug 02, 2018 21:00:49 [0x4b8f9400] DEBUG - Found session GUID of pun74lg0ec in session start.
    Aug 02, 2018 21:00:49 [0x4b8f9400] WARN - Got a request to stop a transcode session without a session GUID (or with an invalid one).
    Aug 02, 2018 21:00:50 [0x4caff400] DEBUG - Play progress on 26 'TheDeatthofStallin' - got played 630000 ms by account 1!
    Aug 02, 2018 21:00:50 [0x4caff400] DEBUG - [Now] User is galex (ID: 1)
    Aug 02, 2018 21:00:50 [0x4caff400] DEBUG - [Now] Device is Chrome (Plex Web (Chrome)).
    Aug 02, 2018 21:00:50 [0x4caff400] DEBUG - [Now] Profile is Web
    Aug 02, 2018 21:00:50 [0x4caff400] DEBUG - [Now] Updated play state for /library/metadata/26.
    Aug 02, 2018 21:00:50 [0x4caff400] DEBUG - Statistics: (kkrt7iatrjd) Reporting active playback in state 3 of type 1 (scrobble: 0) for account 1
    Aug 02, 2018 21:00:50 [0x45b90400] DEBUG - Completed: [192.168.1.104:60244] GET /:/timeline?ratingKey=26&key=%2Flibrary%2Fmetadata%2F26&state=stopped&playQueueItemID=192&time=630000&duration=6395008 (4 live) GZIP 153ms 158 bytes 200 (pipelined: 7)
    Aug 02, 2018 21:00:50 [0x4fc83400] DEBUG - Request: [192.168.1.104:60244] GET /hubs/home/continueWatching (4 live) Page 0-11 GZIP
    Aug 02, 2018 21:00:50 [0x4fc83400] DEBUG - Auth: We found auth token (xxxxxxxxxxxxxxxxxxxx), enabling token-based authentication.
    Aug 02, 2018 21:00:50 [0x4fc83400] DEBUG - Auth: Came in with a super-token, authorization succeeded.
    Aug 02, 2018 21:00:50 [0x4a00a400] DEBUG - Request: [192.168.1.104:60245] GET /hubs/home/onDeck (4 live) Page 0-11 GZIP
    Aug 02, 2018 21:00:50 [0x4a00a400] DEBUG - Auth: We found auth token (xxxxxxxxxxxxxxxxxxxx), enabling token-based authentication.
    Aug 02, 2018 21:00:50 [0x4a00a400] DEBUG - Auth: Came in with a super-token, authorization succeeded.
    Aug 02, 2018 21:00:50 [0x4caff400] DEBUG - Request: [192.168.1.104:60255] GET /hubs/home/recentlyAdded?type=8 (8 live) Page 0-11 GZIP
    UPD #2: I'm fool ! Just download test "SampleVideo_1280x720_30mb.mp4" movie which is 100% fits to PLEX requirements. It works ! I can play it via desktop Chrome and on Sony TV (Plex app) and on iPad (Plex app) ! So PMS 100% works but it can't arrange DirectPlay/DirectStream for the "others" file format like .avi, .mkv, and similar. It TRIES to start transcoding but can't.

    As lancethepants@ said above - with this build there is no transcoding feature at all. Does it mean PMS HAS TO start any "others" format with DirectPlay by itself OR it will only try IN ANY CASE to start transcoding ... but something goes wrong here and disturbs to start it ?
     
    Last edited: Aug 2, 2018
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice