Welcome to our forums! Please take a few moments to read through our Community Guidelines (also conveniently linked in the header at the top of each page). There, you'll find guidelines on conduct, tips on getting the help you may be searching for, and more!

Directv DLNA Profile

fkickfkick Posts: 131Members ✭✭
edited March 2012 in DLNA
Hi all,

UPDATE 3.31:

After some more research it looks like the Directv DVR's will not be able to playback any video with the Plex DLNA server in its current form. The DVRS can only playback video in MPEG2 in the container "mpeg" (not "mpegts") and according to the "So you want your DLNA device to work with PMS" article, PMS currently only supports transcoding to asf, mpegts and avi. The Directv boxes will show "x" next to any videos that have those containers. Unless there's a way to add the mpeg container to the transcoder (or the developers add it in the future), unfortunately this is the end of the line for Plex on Directv.


Thanks!

Plex Profile Code (Updated after the how to came out):

<Client name="DirecTV HD-DVR">
   <!--based on serviio Directv profile --> 
   <Identification>
     <Header name="User-Agent" substring="DIRECTV" />
   </Identification> 
   <TranscodeTargets>
      <VideoProfile container="mpeg" codec="mpeg2video" audioCodec="mp2"/>
      <PhotoProfile codec="jpeg" />
   </TranscodeTargets>
   <Settings>
      <Setting name="OnlyPlainVideoItems" value="true" />
      <Setting name="OnlyStorageFolders" value="true" />
      <Setting name="TimelineBufferOffset" value="10" />
   </Settings>
   <DirectPlayProfiles>
      <VideoProfile container="mpeg" codec="mpeg2video" audioCodec="mp2" />
      <PhotoProfile codec="jpeg,jpg" />
   </DirectPlayProfiles>
   <CodecProfiles>
      <VideoCodec name="mpeg2video">
        <Setting name="MaxResolution" value="1920x1080" />
        <Setting name="MaxFps" value="30" />
        <Setting name="MaxBitRate" value="8192" />
      </VideoCodec>
      <VideoAudioCodec name="mp2">
         <Setting name="MaxAudioChannels" value="2" />
      </VideoAudioCodec>
    </CodecProfiles> 
</Client>



Serviio Code:

<Profile id="6" name="DirecTV HD-DVR" extendsProfileId="1">
		<Detection>
			<HttpHeaders>
				<User-Agent>.*DIRECTV.*</User-Agent>
			</HttpHeaders>
			<UPnPSearch>
                <FriendlyName>^DIRECTV.*$</FriendlyName>
            </UPnPSearch>
		</Detection>
		<Transcoding>
			<Video targetContainer="mpeg" targetVCodec="mpeg2video" targetACodec="mp2" maxVBitrate="8192" forceStereo="true">
				<Matches container="matroska" />
				<Matches container="mp4" />
				<Matches container="asf" />
				<Matches container="avi" />
				<Matches container="ogg" />
				<Matches container="flv" />
				<Matches container="3gp" />  				
			</Video>
		</Transcoding>			
	</Profile>
«1

Comments

  • sbradley7777sbradley7777 Posts: 75Members, Plex Pass Plex Pass
    edited March 2012
    Do you have any idea where the dlnaclientprofiles.xml is suppose to go?

    I dropped it under Library/Application\ Support/Plex\ Media\ Server/dlnaclientprofiles.xml

    Going to test it, but not sure if that is location for it.

    UPDATE:
    It did not load the profiles:

    Mar 29, 2012 09:31:05 [0xac79f2c0] DEBUG - Loading com.plexapp.dlna is complete (success=1)
    Mar 29, 2012 09:31:06 [0xac79f2c0] DEBUG - [PERF] Slowest TransactionScope in 0.038000 ms.
    Mar 29, 2012 09:31:06 [0xac79f2c0] DEBUG - Reading system DLNA profiles
    Mar 29, 2012 09:31:06 [0xac79f2c0] DEBUG - Unable to find client DLNA profiles


    The good news is that directv hr21-700 sees the dlna server plex is exporting. We just the correct profile cause all videos has X cause they unsupported video type.
  • fkickfkick Posts: 131Members ✭✭

    Do you have any idea where the dlnaclientprofiles.xml is suppose to go?

    I dropped it under Library/Application\ Support/Plex\ Media\ Server/dlnaclientprofiles.xml

    Going to test it, but not sure if that is location for it.

    UPDATE:
    It did not load the profiles:



    Are you using the user/Library folder or Macintosh HD/Library folder?
  • hippojayhippojay Posts: 958Members, Plex Pass Plex Pass

    Do you have any idea where the dlnaclientprofiles.xml is suppose to go?

    I dropped it under Library/Application\ Support/Plex\ Media\ Server/dlnaclientprofiles.xml

    Going to test it, but not sure if that is location for it.

    UPDATE:
    It did not load the profiles:


    That's the right profile location:

    /Users/[name]/Library/Application Support/Plex Media Server/dlnaclientprofiles.xml
  • Carlos-Spicy-WeinerCarlos-Spicy-Weiner Posts: 34Members, Plex Pass Plex Pass
    I'm pretty sure Plex is loading my custom xml list. However on the HR-24's I'm still seeing an X beside all the video titles (the source of the files are m4v and mkv). Audio plays fine.
  • sbradley7777sbradley7777 Posts: 75Members, Plex Pass Plex Pass
    I got correct in location then.
  • fkickfkick Posts: 131Members ✭✭
    edited March 2012
    Sorry all,

    There was a typo in the code above that was causing the plex dlna client to not read the Directv profile correctly. I've corrected the code above, please give it another go and let me know!


    Fkick
  • sbradley7777sbradley7777 Posts: 75Members, Plex Pass Plex Pass
    edited March 2012
    fkick wrote:

    Sorry all,

    There was a typo in the code above that was causing the plex dlna client to not read the Directv profile correctly. I've corrected the code above, please give it another go and let me know!


    Fkick


    Yeah, you need to wrap the <CLIENT> tags with <CLIENTS> <CLIENT> ...</CLIENT></CLIENTS>

    I was able to load it after that. However, it still does not work . I still get the X for each video file and does not play them since it does not like the type.
  • fkickfkick Posts: 131Members ✭✭
    It turns out that the HR series of Directv dvr's has a User Agent string also of "Linux/2.6.18.5" according to my plex logs.

    I've updated the code (top of thread) and now have the clips showing up in the direct HR-24, however, when it goes to play, the screen goes black and then cuts back to the menu. For some reason the transcode session isn't starting properly, even though it matches the serviio code (which does work properly). I'll take a deeper look this weekend.
  • fkickfkick Posts: 131Members ✭✭
    I've updated the profile to reflect information that is in the new how to document. I'll give it a try when I get home tonight, but if anyone has time to test beforehand, please let me know.

    Code is at the top of the post.

    Thanks!
  • Carlos-Spicy-WeinerCarlos-Spicy-Weiner Posts: 34Members, Plex Pass Plex Pass
    fkick wrote:

    It turns out that the HR series of Directv dvr's has a User Agent string also of "Linux/2.6.18.5" according to my plex logs.

    I've updated the code (top of thread) and now have the clips showing up in the direct HR-24, however, when it goes to play, the screen goes black and then cuts back to the menu. For some reason the transcode session isn't starting properly, even though it matches the serviio code (which does work properly). I'll take a deeper look this weekend.


    No luck here. It is still showing my m4v library as X'ed out.

    Here's what the log shows:

    Mar 30, 2012 18:27:26 [0xb0289000] DEBUG - Mapped client to generic profile: SOAPACTION: "urn:schemas-upnp-org:service:ContentDirectory:1#Browse"; Host: 192.168.0.1:32469; Content-Length: 493; Content-Type: text/xml; charset="utf-8"; User-Agent: Linux/2.6.18-7.2, UPnP/1.0 DIRECTV JHUPnP/1.0 DLNADOC/1.00 DIRECTV VIIV devices INTEL_NMPR/2.1; getContentFeatures.dlna.org: 1
  • fkickfkick Posts: 131Members ✭✭

    No luck here. It is still showing my m4v library as X'ed out.

    Here's what the log shows:

    Mar 30, 2012 18:27:26 [0xb0289000] DEBUG - Mapped client to generic profile: SOAPACTION: "urn:schemas-upnp-org:service:ContentDirectory:1#Browse"; Host: 192.168.0.1:32469; Content-Length: 493; Content-Type: text/xml; charset="utf-8"; User-Agent: Linux/2.6.18-7.2, UPnP/1.0 DIRECTV JHUPnP/1.0 DLNADOC/1.00 DIRECTV VIIV devices INTEL_NMPR/2.1; getContentFeatures.dlna.org: 1



    Swam,

    What dvr model do you have? Are you running the new HD interface/software on it? I'm running an HR24 with the new HD interface/guide. Your's looks like you're user agent string might be for a different software... your's is listing as Linus/2.6.18-7.2 where the newer software should show up as Linux/2.6.18.5.

    To correct this issue on your end...in my code just change

    &lt;Identification&gt;
         &lt;Header name="User-Agent" substring="*DIRECTV.*" /&gt;
         &lt;Header name="User-Agent" substring="Linux/2.6.18.5" /&gt;
       &lt;/Identification&gt;
    



    To this:

    &lt;Identification&gt;
         &lt;Header name="User-Agent" substring="*DIRECTV.*" /&gt;
         &lt;Header name="User-Agent" substring="Linux/2.6.18-7.2" /&gt;
       &lt;/Identification&gt;
    
  • mfeingolmfeingol Director of Development Posts: 4,954Members, Plex Employee, Plex Pass Plex Employee
    fkick:

    Thanks for your work on this.

    Around the identification section... Since wildcards aren't currently supported, it might be simpler just to use this:

    &lt;Identification&gt;
      &lt;Header name="User-Agent" substring="DIRECTV" /&gt;
    &lt;/Identification&gt;
    


    That's based on the post above, which mentions the following user agent:

    User-Agent: Linux/2.6.18-7.2, UPnP/1.0 DIRECTV JHUPnP/1.0 DLNADOC/1.00 DIRECTV VIIV devices INTEL_NMPR/2.1
    


    If there are cases where it's just "Linux/2.6.18-7.2", then obviously you'd need that as an additional header.

    Also, did you confirm that OnlyPlainVideoItems and OnlyStorageFolders are required? I ask only because it's generally best not to use these settings unless the device needs it.
  • fkickfkick Posts: 131Members ✭✭
    edited March 2012
    mfeingol wrote:

    fkick:

    Thanks for your work on this.

    Around the identification section... Since wildcards aren't currently supported, it might be simpler just to use this:

    &lt;Identification&gt;
      &lt;Header name="User-Agent" substring="DIRECTV" /&gt;
    &lt;/Identification&gt;
    


    That's based on the post above, which mentions the following user agent:

    User-Agent: Linux/2.6.18-7.2, UPnP/1.0 DIRECTV JHUPnP/1.0 DLNADOC/1.00 DIRECTV VIIV devices INTEL_NMPR/2.1
    


    If there are cases where it's just "Linux/2.6.18-7.2", then obviously you'd need that as an additional header.

    Also, did you confirm that OnlyPlainVideoItems and OnlyStorageFolders are required? I ask only because it's generally best not to use these settings unless the device needs it.


    Hi mfeingol,

    Thanks for the suggestion with the user agent string, loosing the wildcards worked on my end and I was able to clear the Linux distro.

    As for the OnlyPlainVideoItems and OnlyStorageFolders, I noticed a faster navigation through the HR24's menus when they were added and so I kept them in, but the DVR is able to navigate without them.

    However, after some more research it looks like the Directv DVR's will not be able to playback any video with the Plex DLNA server in its current form. The DVRS can only playback video in MPEG2 in the container "mpeg" (not "mpegts") and according to the "So you want your DLNA device to work with PMS" article, PMS currently only supports transcoding to asf, mpegts and avi. The Directv boxes will show "x" next to any videos that have those containers.
  • DesiatoDesiato Posts: 1Members, Plex Pass Plex Pass
    fkick wrote:

    However, after some more research it looks like the Directv DVR's will not be able to playback any video with the Plex DLNA server in its current form. The DVRS can only playback video in MPEG2 in the container "mpeg" (not "mpegts")...

    I'd like to offer some conflicting (and hopefully promising) information about the DirecTV DVRs that might help get them running with Plex. I run the MediaTomb streamer with my DirecTV HR2x units. I'm streamed many transcoded videos to my DVRs using mpegts format. The configuration is shown here. You will see that the ffmpeg command line contains "-f mpegts".

    I haven't played with Plex yet, but I'm looking for a new streaming server that will support my DirecTV DVRs, Samsung TV, and a future Roku 2. Plex looks like the most promising server as long as we can get it to stream to a DirectTV DVR.

    Best,
    John
  • fkickfkick Posts: 131Members ✭✭
    Desiato wrote:

    I'd like to offer some conflicting (and hopefully promising) information about the DirecTV DVRs that might help get them running with Plex. I run the MediaTomb streamer with my DirecTV HR2x units. I'm streamed many transcoded videos to my DVRs using mpegts format. The configuration is shown here. You will see that the ffmpeg command line contains "-f mpegts".

    I haven't played with Plex yet, but I'm looking for a new streaming server that will support my DirecTV DVRs, Samsung TV, and a future Roku 2. Plex looks like the most promising server as long as we can get it to stream to a DirectTV DVR.

    Best,
    John


    Thanks for the info John! There's a few new features coming in the next version of the Plex media server that might allow this to work properly with the Directv DVR. I'm currently out of town until Wednesday but when I get back I'll look into adapting this and see if we can get it working.

    Thanks!
    Fkick
  • mfeingolmfeingol Director of Development Posts: 4,954Members, Plex Employee, Plex Pass Plex Employee
    It may be worth trying "mpeg" as the transcode container, in this case. We don't support that at all and don't expect it to work, but it's worth a try.
  • fkickfkick Posts: 131Members ✭✭
    Mfeingol,

    Is WAV a valid audio transcode container/codec?
  • mfeingolmfeingol Director of Development Posts: 4,954Members, Plex Employee, Plex Pass Plex Employee
    We don't support audio transcoding over DLNA at the moment. So, no.
  • sbradley7777sbradley7777 Posts: 75Members, Plex Pass Plex Pass
    Hopeful support will be coming. I can confirm mediatomb has worked for me as well and they have config on their site that have info that will get support in plex.
  • kasperj@gmail.comkasperj@gmail.com Posts: 2Members, Plex Pass
    I got plex to recognize the user agent and map it to a profile. All the videos show up as being able to be played on my receiver. However, when I try and play them they play like they are in fast forward, the video is distorted and no audio plays. I tried tweaking the MaxFPS and the MaxBitRate down and also tried mp3 instead of mp2 for audio, but no luck. Here is my profile in the dlna profiles xml file.


    - &lt;Client name="DirecTV HD-DVR"&gt;
    - &#60;&#33;-- based on serviio Directv profile 
      --&#62; 
    - &lt;Identification&gt;
      &lt;Header name="User-Agent" substring="*DIRECTV.*" /&gt; 
      &lt;Header name="User-Agent" substring="Linux/2.6.18.8-Pace-1.318.2.13" /&gt; 
      &lt;/Identification&gt;
    - &lt;TranscodeTargets&gt;
      &lt;VideoProfile container="mpeg" codec="mpeg2video" audioCodec="mp2" /&gt; 
      &lt;PhotoProfile codec="jpeg" /&gt; 
      &lt;/TranscodeTargets&gt;
    - &lt;Settings&gt;
      &lt;Setting name="OnlyPlainVideoItems" value="true" /&gt; 
      &lt;Setting name="OnlyStorageFolders" value="true" /&gt; 
      &lt;Setting name="TimelineBufferOffset" value="20" /&gt; 
      &lt;/Settings&gt;
    - &lt;DirectPlayProfiles&gt;
      &lt;VideoProfile container="mpeg" codec="mpeg2video" audioCodec="mp2" /&gt; 
      &lt;PhotoProfile codec="jpeg,jpg" /&gt; 
      &lt;/DirectPlayProfiles&gt;
    - &lt;CodecProfiles&gt;
    - &lt;VideoCodec name="mpeg2video"&gt;
      &lt;Setting name="MaxResolution" value="1920x1080" /&gt; 
      &lt;Setting name="MaxFps" value="26" /&gt; 
      &lt;Setting name="MaxBitRate" value="3000" /&gt; 
      &lt;/VideoCodec&gt;
    - &lt;VideoAudioCodec name="mp3"&gt;
      &lt;Setting name="MaxAudioChannels" value="2" /&gt; 
      &lt;/VideoAudioCodec&gt;
      &lt;/CodecProfiles&gt;
      &lt;/Client&gt;
    
«1
Sign In or Register to comment.