Jump to content


Photo

Directv DLNA Profile


  • Please log in to reply
30 replies to this topic

#21 kasperj@gmail.com

kasperj@gmail.com

    Newbie

  • Members
  • Pip
  • 2 posts

Posted 18 June 2012 - 07:20 PM

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.


- <Client name="DirecTV HD-DVR">
- <!-- based on serviio Directv profile 
  --> 
- <Identification>
  <Header name="User-Agent" substring="*DIRECTV.*" /> 
  <Header name="User-Agent" substring="Linux/2.6.18.8-Pace-1.318.2.13" /> 
  </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="20" /> 
  </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="26" /> 
  <Setting name="MaxBitRate" value="3000" /> 
  </VideoCodec>
- <VideoAudioCodec name="mp3">
  <Setting name="MaxAudioChannels" value="2" /> 
  </VideoAudioCodec>
  </CodecProfiles>
  </Client>


#22 fkick

fkick

    Member

  • Members
  • PipPip
  • 98 posts

Posted 18 June 2012 - 07:24 PM

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.


- <Client name="DirecTV HD-DVR">
- <!-- based on serviio Directv profile 
  --> 
- <Identification>
  <Header name="User-Agent" substring="*DIRECTV.*" /> 
  <Header name="User-Agent" substring="Linux/2.6.18.8-Pace-1.318.2.13" /> 
  </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="20" /> 
  </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="26" /> 
  <Setting name="MaxBitRate" value="3000" /> 
  </VideoCodec>
- <VideoAudioCodec name="mp3">
  <Setting name="MaxAudioChannels" value="2" /> 
  </VideoAudioCodec>
  </CodecProfiles>
  </Client>


Hi Kasper,

Yes, I've been working on the profile with similar issues... I can get serviio to work properly with MPEG2Video inside an mpeg container with mp2 audio, but I can't get that to translate over to function with plex. I'm wondering if it has to do with the specific pn tagging that plex does, but I haven't had time to investigate it just yet.

#23 kasperj@gmail.com

kasperj@gmail.com

    Newbie

  • Members
  • Pip
  • 2 posts

Posted 18 June 2012 - 07:38 PM

Well, after further reading, it appears that my main receiver (HR-34) has problems playing audio over media share. I'll have to wait for Direct to update the receiver to fix the problem.

On a side note, anyone know that the profile should look like for the standard HD (non-dvr) receiver, the H25 should be? I had the same problem on it as the previous receiver (fast, choppy video and no sound).

#24 fkick

fkick

    Member

  • Members
  • PipPip
  • 98 posts

Posted 18 June 2012 - 07:41 PM

Well, after further reading, it appears that my main receiver (HR-34) has problems playing audio over media share. I'll have to wait for Direct to update the receiver to fix the problem.

On a side note, anyone know that the profile should look like for the standard HD (non-dvr) receiver, the H25 should be? I had the same problem on it as the previous receiver (fast, choppy video and no sound).


This is the serviio equivalent profile (as far as I can tell) for all H and HR receivers currently on the market, but it still suffers from the choppy video and lack of audio. Serviio however streams fine.

<Client name="DirecTV HD-DVR">
   <!--based on serviio Directv profile --> 
   <Identification>
     <Header name="User-Agent" substring="DIRECTV" />
    </Identification> 
   <TranscodeTargets>
      <VideoProfile container="mpegts" 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>


#25 ZeliardM

ZeliardM

    Member

  • Members
  • PipPip
  • 95 posts

Posted 18 November 2012 - 02:20 AM

I've noticed this same issue when working with DirecTV...I was able to get the profile to come up correctly,, but the video is exteremely choppy...looks like it's in fast forward.
No audio either...the profile is mapped correctly, but it doesn't look like it's transcoding it correctly...any one else having this or has everyone given up?

<Client name="DirecTV HD-DVR">
<Identification>
<Header name="User-Agent" substring="DLNADOC/1.00" />
</Identification>

<Settings>
<Setting name="OnlyStorageFolders" value="true" />
<Setting name="OnlyPlainVideoItems" value="true" />
<Setting name="TimelineBufferOffset" value="10" />
</Settings>

<TranscodeTargets>
<VideoProfile container="mpeg" codec="mpeg2video" audioCodec="mp2" />
<PhotoProfile codec="jpeg" />
</TranscodeTargets>

<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>
<PhotoCodec name="jpeg">
<Setting name="MaxResolution" value="1920x1080" />
</PhotoCodec>
</CodecProfiles>
</Client>

#26 fkick

fkick

    Member

  • Members
  • PipPip
  • 98 posts

Posted 18 November 2012 - 11:48 PM

I've noticed this same issue when working with DirecTV...I was able to get the profile to come up correctly,, but the video is exteremely choppy...looks like it's in fast forward.
No audio either...the profile is mapped correctly, but it doesn't look like it's transcoding it correctly...any one else having this or has everyone given up?

<Client name="DirecTV HD-DVR">
<Identification>
<Header name="User-Agent" substring="DLNADOC/1.00" />
</Identification>

<Settings>
<Setting name="OnlyStorageFolders" value="true" />
<Setting name="OnlyPlainVideoItems" value="true" />
<Setting name="TimelineBufferOffset" value="10" />
</Settings>

<TranscodeTargets>
<VideoProfile container="mpeg" codec="mpeg2video" audioCodec="mp2" />
<PhotoProfile codec="jpeg" />
</TranscodeTargets>

<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>
<PhotoCodec name="jpeg">
<Setting name="MaxResolution" value="1920x1080" />
</PhotoCodec>
</CodecProfiles>
</Client>


Hi ZeliardM,

Development on this profile has pretty much halted because Plex itself cannot output mpeg 1/2 video inside a mpeg container properly due to limitations of ffmpeg. So until that happens, we're kinda stuck with the choppy video unless you use serviio.

Fkick

#27 ZeliardM

ZeliardM

    Member

  • Members
  • PipPip
  • 95 posts

Posted 20 November 2012 - 06:07 PM

Fkick,
Thanks for the information...I was hoping to consolidate down to just using Plex when I saw this. I know nothing of the development and what not going on, but is there a way to "steal with pride" from Serviio and see how they do it? Like I said, not that I know anything about it, but that would be the best is Plex could take over...I'd rather not have to add another device to my second TV to use Plex.
Thanks,
ZeliardM

#28 Harnish

Harnish

    Newbie

  • Members
  • Pip
  • 5 posts

Posted 10 March 2013 - 11:00 PM

fkick: Do you happen to know the upstream bug number so I can get more details?



#29 fkick

fkick

    Member

  • Members
  • PipPip
  • 98 posts

Posted 10 March 2013 - 11:01 PM

Sorry Harnish,

 

I haven't looked at this in a very long time.



#30 smitbret

smitbret

    Newbie

  • Members
  • Pip
  • 1 posts

Posted 16 July 2013 - 04:51 PM


Hi ZeliardM,

Development on this profile has pretty much halted because Plex itself cannot output mpeg 1/2 video inside a mpeg container properly due to limitations of ffmpeg. So until that happens, we're kinda stuck with the choppy video unless you use serviio.

Fkick

 

This doesn't seem quite correct.  There is other DLNA software out there using ffMPEG to transcode and is able to output to MPEG 1/2 for DirecTV boxes.



#31 mfeingol

mfeingol

    Plex Dev Team

  • Plex Employee
  • PipPipPipPipPipPip
  • 2897 posts
  • Location: Redmond

Posted 16 July 2013 - 10:14 PM

mpegts/mpeg2video should work just fine. mpeg/mpeg2video will at least emit bits, but it's not obvious they'll be working bits.

Other DLNA software has been known to ask ffmpeg to output to a file, and then stream that file while it's being written. The file in question is seekable, so you likely won't get repeatable reads from that stream. We've decided not to do that, because it's not supported by the ffmpeg developers and the results are non-deterministic.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users