Need help with Custom DLNA profile to transcode AAC 5.1 to AC3 5.1

I have a popcorn hour A-100 that I’ve been using with PMS and that’s working fine with DLNA. My audio system doesn’t support AAC surround or EAC audio. So I made a custom profile and want to have Plex transcode those audio formats to AC3 5.1.

I’m testing using VLC to see if I can get the transcoding right (instead of running back and forth to my PCH). When I try and play a movie with AAC 5.1 Plex thinks for a second and then just moves to the next movie in the list.

Here’s my profile I’m using

<Client name="Popcorn Hour">
  <!-- Author: Plex Inc. -->
  <Identification>
    <Header name="User-Agent" substring="VLC" />
    <Header name="User-Agent" substring="Syabas" />
    <Header name="User-Agent" substring="SMP8634" />
  </Identification>
  <TranscodeTargets>
    <VideoProfile protocol="hls" container="mpegts" codec="h264" audioCodec="aac,ac3" context="streaming">
      <Setting name="VideoEncodeFlags" value="-x264opts cabac=0" />
      <Setting name="SubtitleSize" value="100" />
    </VideoProfile>
    <MusicProfile container="mp3" codec="mp3" />
    <PhotoProfile container="jpeg" />
  </TranscodeTargets>
  <DirectPlayProfiles>
    <VideoProfile container="mp4,mov" codec="h264,mpeg4" audioCodec="aac" />
    <VideoProfile container="mpegts" codec="h264" audioCodec="aac,ac3,mp3,mp2,pcm" />
    <VideoProfile container="asf,wmv" codec="wmv3,vc1" audioCodec="wmav2,wmapro" />
    <VideoProfile container="avi" codec="mpeg4,msmpeg4v3" audioCodec="mp3,ac3,mp2,pcm" />
    <VideoProfile container="mkv" codec="h264" audioCodec="aac,mp3,ac3,mp2,pcm" />
    <MusicProfile container="mp4" codec="aac" />
    <MusicProfile container="mp3" codec="mp3" />
    <MusicProfile container="flac" codec="flac" />
    <MusicProfile container="ogg" codec="vorbis" />
    <MusicProfile container="wma" codec="wmav2" />
    <MusicProfile container="wav" codec="flac,pcm" />
    <PhotoProfile container="jpeg,gif,bmp,png" />
  </DirectPlayProfiles>
  <ContainerProfiles>
    <VideoContainer name="mp4">
      <Limitations>
        <Match name="part.optimizedForStreaming" value="1" isRequired="true" />
      </Limitations>
    </VideoContainer>
  </ContainerProfiles>
  <CodecProfiles>
    <VideoCodec name="*">
      <Limitations>
        <UpperBound name="video.width" value="1920" isRequired="true" />
        <UpperBound name="video.height" value="1080" isRequired="true" />
        <NotMatch name="video.anamorphic" value="1" />
      </Limitations>
    </VideoCodec>
    <VideoAudioCodec name="aac">
      <Limitations>
        <UpperBound name="audio.channels" value="2" />
      </Limitations>
    </VideoAudioCodec>
    <MusicCodec name="aac">
      <Limitations>
        <UpperBound name="audio.channels" value="2" />
      </Limitations>
    </MusicCodec>
  </CodecProfiles>
</Client>

Here’s some DLNA log

Oct 02, 2018 13:38:07.645 [0xaaaff410] DEBUG - Mapped client to profile Popcorn Hour using header User-Agent: VLC/3.0.4 LibVLC/3.0.4
Oct 02, 2018 13:38:07.647 [0xad4f7410] DEBUG - Mapped client to profile Popcorn Hour using header User-Agent: VLC/3.0.4 LibVLC/3.0.4
Oct 02, 2018 13:38:07.650 [0xad4f7410] DEBUG - Mapped object 6ff4cf9d18fff2603151 to /library/metadata/2035 part 0 on server
Oct 02, 2018 13:38:07.655 [0xad4f7410] DEBUG - Downloading document http://127.0.0.1:32400/library/metadata/2035
Oct 02, 2018 13:38:07.657 [0xad4f7410] DEBUG - HTTP requesting GET http://127.0.0.1:32400/library/metadata/2035
Oct 02, 2018 13:38:07.671 [0xaaaff410] DEBUG - Proxied GET to http://127.0.0.1:32400/photo/:/transcode?format=jpg&height=512&url=http%3A%2F%2F127%2E0%2E0%2E1%3A32400%2Flibrary%2Fmetadata%2F2035%2Fthumb%2F1537035545&width=512&X-Plex-Token=xxxxxxxxxxxxxxxxxxxx: HTTP/1.1 206
Oct 02, 2018 13:38:07.672 [0xaaaff410] DEBUG - Responding HTTP/1.1 206
Oct 02, 2018 13:38:07.685 [0xa92fc410] DEBUG - GET for http://192.168.1.1:32469/proxy/a9b791adfaceb56c8575/albumart.jpg
Oct 02, 2018 13:38:07.685 [0xa92fc410] DEBUG - Mapped client to profile Popcorn Hour using header User-Agent: VLC/3.0.4 LibVLC/3.0.4
Oct 02, 2018 13:38:07.705 [0xa92fc410] DEBUG - Proxied GET to http://127.0.0.1:32400/photo/:/transcode?format=jpg&height=512&url=http%3A%2F%2F127%2E0%2E0%2E1%3A32400%2Flibrary%2Fmetadata%2F2035%2Fthumb%2F1537035545&width=512&X-Plex-Token=xxxxxxxxxxxxxxxxxxxx: HTTP/1.1 200
Oct 02, 2018 13:38:07.705 [0xa92fc410] DEBUG - Responding HTTP/1.1 200
Oct 02, 2018 13:38:07.759 [0xad4f7410] DEBUG - HTTP 200 response from GET http://127.0.0.1:32400/library/metadata/2035
Oct 02, 2018 13:38:07.766 [0xad4f7410] DEBUG - Caching document http://127.0.0.1:32400/library/metadata/2035 as 3e009b65006a7f4fa3952baaade0bd8267a5f0f0
Oct 02, 2018 13:38:07.770 [0xad4f7410] DEBUG - Serving up item /library/metadata/2035 part 0
Oct 02, 2018 13:38:07.785 [0xad4f7410] DEBUG - MDE: Selected protocol hls; container: mpegts
Oct 02, 2018 13:38:07.786 [0xad4f7410] DEBUG - MDE: analyzing media item 4440
Oct 02, 2018 13:38:07.787 [0xad4f7410] DEBUG - Solo: A Star Wars Story - part.optimizedForStreaming limitation applies: 0 != 1
Oct 02, 2018 13:38:07.787 [0xad4f7410] DEBUG - Solo: A Star Wars Story - part.optimizedForStreaming limitation applies: 0 != 1
Oct 02, 2018 13:38:07.788 [0xad4f7410] DEBUG - Solo: A Star Wars Story - part.optimizedForStreaming limitation applies: 0 != 1
Oct 02, 2018 13:38:07.789 [0xad4f7410] DEBUG - Solo: A Star Wars Story - audio.channels limitation applies: 6 > 2
Oct 02, 2018 13:38:07.790 [0xad4f7410] DEBUG - Solo: A Star Wars Story - audio.channels limitation applies: 6 > 2
Oct 02, 2018 13:38:07.790 [0xad4f7410] DEBUG - MDE: Cannot direct stream audio stream due to profile or setting limitations
Oct 02, 2018 13:38:07.791 [0xad4f7410] DEBUG - MDE: Solo: A Star Wars Story (2018): selected media 0 / 4440
Oct 02, 2018 13:38:07.933 [0xad4f7410] DEBUG - Proxied GET to http://127.0.0.1:32400/video/:/transcode/universal/start?audioBoost=100&directPlay=0&directStream=1&directStreamAudio=1&path=%2Flibrary%2Fmetadata%2F2035&session=f8c202980736c012b75b511611f7c2ea38e8c52c&subtitleSize=100&videoQuality=74&videoResolution=1920x1080&protocol=hls&X-Plex-Token=xxxxxxxxxxxxxxxxxxxx: HTTP/1.1 200
Oct 02, 2018 13:38:07.934 [0xad4f7410] DEBUG - Responding HTTP/1.1 200
Oct 02, 2018 13:38:07.940 [0xa92fc410] DEBUG - HTTP requesting GET http://127.0.0.1:32400/:/timeline?containerKey=%2Flibrary%2Fmetadata%2F2035&duration=8086752&guid=com%2Eplexapp%2Eagents%2Eimdb%3A%2F%2Ftt3778644%3Flang%3Den&key=%2Flibrary%2Fmetadata%2F2035&ratingKey=2035&report=1&state=playing&time=1000&X-Plex-Device=Popcorn%20Hour&X-Plex-Device-Name=Popcorn%20Hour&X-Plex-Product=DLNA&X-Plex-Token=xxxxxxxxxxxxxxxxxxxx
Oct 02, 2018 13:38:07.959 [0xad4f7410] DEBUG - GET for http://192.168.1.1:32469/object/6ff4cf9d18fff2603151/session/f8c202980736c012b75b511611f7c2ea38e8c52c/base/index.m3u8 : bytes=0-
Oct 02, 2018 13:38:07.960 [0xad4f7410] DEBUG - Mapped client to profile Popcorn Hour using header User-Agent: VLC/3.0.4 LibVLC/3.0.4
Oct 02, 2018 13:38:07.963 [0xad4f7410] DEBUG - Mapped object 6ff4cf9d18fff2603151 to /library/metadata/2035 part 0 on server
Oct 02, 2018 13:38:07.966 [0xad4f7410] DEBUG - Downloading document http://127.0.0.1:32400/library/metadata/2035
Oct 02, 2018 13:38:07.967 [0xad4f7410] DEBUG - Cache hit for document http://127.0.0.1:32400/library/metadata/2035
Oct 02, 2018 13:38:08.287 [0xa92fc410] DEBUG - HTTP 200 response from GET http://127.0.0.1:32400/:/timeline?containerKey=%2Flibrary%2Fmetadata%2F2035&duration=8086752&guid=com%2Eplexapp%2Eagents%2Eimdb%3A%2F%2Ftt3778644%3Flang%3Den&key=%2Flibrary%2Fmetadata%2F2035&ratingKey=2035&report=1&state=playing&time=1000&X-Plex-Device=Popcorn%20Hour&X-Plex-Device-Name=Popcorn%20Hour&X-Plex-Product=DLNA&X-Plex-Token=xxxxxxxxxxxxxxxxxxxx
Oct 02, 2018 13:38:08.288 [0xa92fc410] DEBUG - TimelineClient: request returned 200
Oct 02, 2018 13:38:08.307 [0xa92fc410] DEBUG - HTTP requesting GET http://127.0.0.1:32400/:/timeline?containerKey=%2Flibrary%2Fmetadata%2F2035&duration=8086752&guid=com%2Eplexapp%2Eagents%2Eimdb%3A%2F%2Ftt3778644%3Flang%3Den&key=%2Flibrary%2Fmetadata%2F2035&ratingKey=2035&report=1&state=stopped&time=8086000&X-Plex-Device=Popcorn%20Hour&X-Plex-Device-Name=Popcorn%20Hour&X-Plex-Product=DLNA&X-Plex-Token=xxxxxxxxxxxxxxxxxxxx
Oct 02, 2018 13:38:08.633 [0xa92fc410] DEBUG - HTTP 200 response from GET http://127.0.0.1:32400/:/timeline?containerKey=%2Flibrary%2Fmetadata%2F2035&duration=8086752&guid=com%2Eplexapp%2Eagents%2Eimdb%3A%2F%2Ftt3778644%3Flang%3Den&key=%2Flibrary%2Fmetadata%2F2035&ratingKey=2035&report=1&state=stopped&time=8086000&X-Plex-Device=Popcorn%20Hour&X-Plex-Device-Name=Popcorn%20Hour&X-Plex-Product=DLNA&X-Plex-Token=xxxxxxxxxxxxxxxxxxxx
Oct 02, 2018 13:38:08.634 [0xa92fc410] DEBUG - TimelineClient: request returned 200
Oct 02, 2018 13:38:12.988 [0xad4f7410] DEBUG - Proxied GET to http://127.0.0.1:32400/video/:/transcode/universal/session/f8c202980736c012b75b511611f7c2ea38e8c52c/base/index.m3u8?X-Plex-Token=xxxxxxxxxxxxxxxxxxxx: HTTP/1.1 206
Oct 02, 2018 13:38:12.989 [0xad4f7410] DEBUG - Responding HTTP/1.1 206
Oct 02, 2018 13:38:13.004 [0xaaaff410] DEBUG - GET for http://192.168.1.1:32469/object/6ff4cf9d18fff2603151/session/f8c202980736c012b75b511611f7c2ea38e8c52c/base/index.m3u8
Oct 02, 2018 13:38:13.005 [0xaaaff410] DEBUG - Mapped client to profile Popcorn Hour using header User-Agent: VLC/3.0.4 LibVLC/3.0.4
Oct 02, 2018 13:38:13.007 [0xaaaff410] DEBUG - Mapped object 6ff4cf9d18fff2603151 to /library/metadata/2035 part 0 on server
Oct 02, 2018 13:38:13.011 [0xaaaff410] DEBUG - Downloading document http://127.0.0.1:32400/library/metadata/2035
Oct 02, 2018 13:38:13.011 [0xaaaff410] DEBUG - Cache hit for document http://127.0.0.1:32400/library/metadata/2035
Oct 02, 2018 13:38:13.046 [0xaaaff410] DEBUG - Proxied GET to http://127.0.0.1:32400/video/:/transcode/universal/session/f8c202980736c012b75b511611f7c2ea38e8c52c/base/index.m3u8?X-Plex-Token=xxxxxxxxxxxxxxxxxxxx: HTTP/1.1 404
Oct 02, 2018 13:38:13.048 [0xaaaff410] DEBUG - Responding HTTP/1.1 404
Oct 02, 2018 13:38:13.067 [0xaaaff410] DEBUG - GET for http://192.168.1.1:32469/object/fde0249bbb1ca8305a29/file.avi : bytes=0-
Oct 02, 2018 13:38:13.068 [0xaaaff410] DEBUG - Mapped client to profile Popcorn Hour using header User-Agent: VLC/3.0.4 LibVLC/3.0.4
Oct 02, 2018 13:38:13.070 [0xad4f7410] DEBUG - GET for http://192.168.1.1:32469/proxy/eb5a692dca2c03e9f681/albumart.jpg : bytes=0-
Oct 02, 2018 13:38:13.071 [0xaaaff410] DEBUG - Mapped object fde0249bbb1ca8305a29 to /library/metadata/1024 part 0 on server
Oct 02, 2018 13:38:13.071 [0xad4f7410] DEBUG - Mapped client to profile Popcorn Hour using header User-Agent: VLC/3.0.4 LibVLC/3.0.4

I copied the Popcorn Hour profile from the system directory. I then added ac3 to the audioCodec list in transcodeTargets. And removed eac from all directplayprofiles.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.