If you have not already, we suggest setting your Plex username to something else rather than email which is displayed on your posts in forum. You can change the username at https://app.plex.tv/desktop#!/account
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!

No more Dolby Digital in ATV option in PMS / PlexConnect - Since update 1.5.3.3580

kevnadkevnad Posts: 5Members ✭✭

Hi,
Since updating to 1.5.3.3580 of Plex yesterday, the fix does not work anymore for me. (fix : http://forums.plex.tv/discussion/241257/no-more-dolby-digital-in-atv-option-in-pms-plexconnect/p2?)

If I put tvOS, I have no sound at all. If I put back iOs, I'm back with Stereo sound only.

Anyone having the same issue?

THanks

Best Answer

«1

Answers

  • moody_bluemoody_blue Posts: 2,751Members, Plex Pass, Plex Ninja Plex Ninja

    What I've found is that Plex changed the tvOS profile so that audio transcoding preference puts EAC3 ahead of AC3. I don't think that the ATV3 supports EAC3 so, if you are transcoding, you probably have to modify the profile to remove EAC3 from the transcoding targets.

    QNAP TS-253A 4G QTS 4.3.3.0229 + PMS 1.9.3 + QPython2 2.7.12.0 + PlexConnect 0.5-dev-230417

    TV Sony KDL-32V2500 (720p) + aTV3 Rev. A firmware 7.2.2 + Denon AVR-1604 A/V Receiver 5.1 + Harmony Touch

    Portables 1x iPad4, 2x Android phone, 1x Android tablet, 2x PMP

    No support via PM unless requested by me

  • kevnadkevnad Posts: 5Members ✭✭

    well, I will need some help for that :)

    The only thing I have change from the default settings if put tvOS instead of iOS.

    Not sure how to do the rest you are referring :)

  • kevnadkevnad Posts: 5Members ✭✭

    great! that's working!

    Thanks a lot

  • dnisbetdnisbet Posts: 9Members, Plex Pass Plex Pass

    Ace! Thank you this has worked for me also :smile:

  • moody_bluemoody_blue Posts: 2,751Members, Plex Pass, Plex Ninja Plex Ninja

    Great to hear that. But now I need your help. The above solution is not the perfect one and I need sample files to test an alternative. I will send you a PM with my e-mail so that you can send me the files where you had problems via WeTransfer.

    QNAP TS-253A 4G QTS 4.3.3.0229 + PMS 1.9.3 + QPython2 2.7.12.0 + PlexConnect 0.5-dev-230417

    TV Sony KDL-32V2500 (720p) + aTV3 Rev. A firmware 7.2.2 + Denon AVR-1604 A/V Receiver 5.1 + Harmony Touch

    Portables 1x iPad4, 2x Android phone, 1x Android tablet, 2x PMP

    No support via PM unless requested by me

  • richu75richu75 Posts: 12Members, Plex Pass Plex Pass

    Stumbled on this thread in my search for the same problem.
    Thanks for the 'fix' moody_blue, any update?

    I will test the fix tonight, will update tomorrow.

    Debian GNU/Linux 8.7, PMS 1.5.3.3580, PlexConnect 0.5-dev-110616, Python 2.7.9.
    Pioneer Kuro 5080XA, Denon A/V 2807, Apple TV 3 (fw 7.0.1).

  • moody_bluemoody_blue Posts: 2,751Members, Plex Pass, Plex Ninja Plex Ninja
    edited April 10

    @kevnad @richu75 @dnisbet

    Here is a new version of the patch, hopefully without the need to use the tvOS profile (that was designed for AppleTV4 and not AppleTV3). In PlexAPI.py you need to code the following:

    xargs['X-Plex-Platform'] = 'iOS'
    xargs['X-Plex-Client-Platform'] = 'iOS'
    xargs['X-Plex-Client-Profile-Extra'] = 'append-transcode-target-audio-codec(type=videoProfile&context=streaming&protocol=hls&audioCodec=ac3,mp3)'
    

    The first two lines are the original ones (that you have changed in previous versions of the "fix" to mention tvOS)
    The third line is a new line that you should insert in the PlexAPI.py code, immediatly following the other two

    Can you please test it ? Seems Ok on my side, but before asking @roidy to apply it to the main code I would like to have other testers.

    QNAP TS-253A 4G QTS 4.3.3.0229 + PMS 1.9.3 + QPython2 2.7.12.0 + PlexConnect 0.5-dev-230417

    TV Sony KDL-32V2500 (720p) + aTV3 Rev. A firmware 7.2.2 + Denon AVR-1604 A/V Receiver 5.1 + Harmony Touch

    Portables 1x iPad4, 2x Android phone, 1x Android tablet, 2x PMP

    No support via PM unless requested by me

  • richu75richu75 Posts: 12Members, Plex Pass Plex Pass

    Okay. Will remove the previous xml and add the code to the python script. The previous 'fix' of changing iOS to tvOS did result in loosing the audio in some of my videos.

    Will report back in a few.

    Debian GNU/Linux 8.7, PMS 1.5.3.3580, PlexConnect 0.5-dev-110616, Python 2.7.9.
    Pioneer Kuro 5080XA, Denon A/V 2807, Apple TV 3 (fw 7.0.1).

  • richu75richu75 Posts: 12Members, Plex Pass Plex Pass

    It's working superbly. The problematic videos all have sound now. The atv lists the audio tracks as DCA and AC3. I also tested an episode of top gear (ac3 stereo) and a home movie (aac 2.0).

    I need to test the other atv that passes sound thru the HDMI port (the main one uses S/PDIF), but that'll have to wait until morning. My daughter is asleep already.

    But sofar, really helpfull. Thanks!

    Debian GNU/Linux 8.7, PMS 1.5.3.3580, PlexConnect 0.5-dev-110616, Python 2.7.9.
    Pioneer Kuro 5080XA, Denon A/V 2807, Apple TV 3 (fw 7.0.1).

  • moody_bluemoody_blue Posts: 2,751Members, Plex Pass, Plex Ninja Plex Ninja
    edited April 10

    Thanks. I think that the ATV can't handle AC3 directly. It simply passes it to the output ports (HDMI and S/PDIF). If the equipment connected there doesn't know how to handle it, probably it will have no sound.

    In my own case I have the S/PDIF port connected to an a/v amplifier, HDMI to TV in mute, and:
    1) AC3 5.1 in Plex (and any transcoded 5.1 signal) is displayed in the amplifier as DOLBY D
    2) AC3 2.0 in Plex is displayed in the amplifier as PLII C
    3) AAC 2.0 in Plex (and any transcoded 2.0 signal) is displayed in the amplifier as STEREO

    QNAP TS-253A 4G QTS 4.3.3.0229 + PMS 1.9.3 + QPython2 2.7.12.0 + PlexConnect 0.5-dev-230417

    TV Sony KDL-32V2500 (720p) + aTV3 Rev. A firmware 7.2.2 + Denon AVR-1604 A/V Receiver 5.1 + Harmony Touch

    Portables 1x iPad4, 2x Android phone, 1x Android tablet, 2x PMP

    No support via PM unless requested by me

  • richu75richu75 Posts: 12Members, Plex Pass Plex Pass

    Seems we have a similar setup. At least my living room setup is.

    I tend not to notice to take notice of the media badges in Plex, only the sound format the aTV is reporting. But the A/V does a remarkable job of handling any format it's fed.

    But you made me thinking about the problem. My second setup is in the bedroom, which is another aTV but connected directly to a TV. Maybe the AC3 is causing the problems in that setup as the TV does not (is not able) handle AC3.

    But this latest fix should remedy that problem as the iOS profile is still intact.

    Debian GNU/Linux 8.7, PMS 1.5.3.3580, PlexConnect 0.5-dev-110616, Python 2.7.9.
    Pioneer Kuro 5080XA, Denon A/V 2807, Apple TV 3 (fw 7.0.1).

  • moody_bluemoody_blue Posts: 2,751Members, Plex Pass, Plex Ninja Plex Ninja

    In that 2nd TV you can disable Dolby Digital in the Apple TV settings and PMS hopefully will transcode audio to stereo

    QNAP TS-253A 4G QTS 4.3.3.0229 + PMS 1.9.3 + QPython2 2.7.12.0 + PlexConnect 0.5-dev-230417

    TV Sony KDL-32V2500 (720p) + aTV3 Rev. A firmware 7.2.2 + Denon AVR-1604 A/V Receiver 5.1 + Harmony Touch

    Portables 1x iPad4, 2x Android phone, 1x Android tablet, 2x PMP

    No support via PM unless requested by me

  • moody_bluemoody_blue Posts: 2,751Members, Plex Pass, Plex Ninja Plex Ninja
    edited April 11

    There is a new PlexConnect version in github. After installing it you can remove the following temporary fix (only for those that have applied it):

    @moody_blue said:
    1) Locate your PMS data directory
    2) Create a new Profiles folder
    3) Download the attached file to the newly created Profiles folder
    4) Restart PMS so that it gets aware of the change

    QNAP TS-253A 4G QTS 4.3.3.0229 + PMS 1.9.3 + QPython2 2.7.12.0 + PlexConnect 0.5-dev-230417

    TV Sony KDL-32V2500 (720p) + aTV3 Rev. A firmware 7.2.2 + Denon AVR-1604 A/V Receiver 5.1 + Harmony Touch

    Portables 1x iPad4, 2x Android phone, 1x Android tablet, 2x PMP

    No support via PM unless requested by me

  • richu75richu75 Posts: 12Members, Plex Pass Plex Pass

    It's only the X-Plex-Client-Profile-Extra line in PlexAPI.py right?
    I also see a modified XMLConverter, but that just seems a cosmetic fix in the code.

    Anyway, good to see roidy still pushing changes to the master branch.

    Debian GNU/Linux 8.7, PMS 1.5.3.3580, PlexConnect 0.5-dev-110616, Python 2.7.9.
    Pioneer Kuro 5080XA, Denon A/V 2807, Apple TV 3 (fw 7.0.1).

  • moody_bluemoody_blue Posts: 2,751Members, Plex Pass, Plex Ninja Plex Ninja

    In fact there were 3 changes:

    1) the X-Plex-Client-Profile-Extra line in PlexAPI.py so that AC3 5.1 is transcoded correctly (previously AC3 5.1 was handled correctly only in DirectPlay situations)
    2) Photo rotation: previously you needed to specify in the ATV (PlexConnect settings) to transcode all photos in order to assure that photos were rotated. Now you can use "Photo Transcoder Action = Auto" and PMS will only transcode photos needing rotation. This is a minor improvement, but should help with slow servers. This change was requested years ago by bjornhusberg but was not implemented in the base code until now
    3) For audiophiles that rip vinil discs to ALAC you can end-up with very high bitrates. PlexConnect requested transcoding when bitrate>2M. This limitation has been removed

    QNAP TS-253A 4G QTS 4.3.3.0229 + PMS 1.9.3 + QPython2 2.7.12.0 + PlexConnect 0.5-dev-230417

    TV Sony KDL-32V2500 (720p) + aTV3 Rev. A firmware 7.2.2 + Denon AVR-1604 A/V Receiver 5.1 + Harmony Touch

    Portables 1x iPad4, 2x Android phone, 1x Android tablet, 2x PMP

    No support via PM unless requested by me

  • richu75richu75 Posts: 12Members, Plex Pass Plex Pass

    Well, I've run into a problem.

    Whenever I need surround sound (on the primairy aTV), I need to edit the PlexAPI and either replace the iOS with tvOS or add your Client-Profile-Extra. But when I do this the second aTV will not play media anymore.

    On the second aTV I have a working connection, I can browse libraries and select media and even subs and audiotracks within those videos. But when I select play I only shows the very first frame of that video.

    I can see PMS converting the file, cpu usage is consistent with a file being played. Also I can skip ahead in the video (aTV remote for iPhone lets me skip 10 seconds at a time) and then then the TV displays that one frame. But no video playback.

    Once I restore the original PlexAPI (with 'iOS') script the video displays without any problem.

    Any idea? I could build a second PMS/PlexConnect for stereo only and mount the same CIFS shares, but that seems overdone.

    Debian GNU/Linux 8.7, PMS 1.5.3.3580, PlexConnect 0.5-dev-110616, Python 2.7.9.
    Pioneer Kuro 5080XA, Denon A/V 2807, Apple TV 3 (fw 7.0.1).

  • moody_bluemoody_blue Posts: 2,751Members, Plex Pass, Plex Ninja Plex Ninja
    edited April 13

    Have you disabled Dolby Digital in the 2nd ATV (ATV Audio settings) ? This will have two effects:

    1) For videos that DirectPlay, the 5.1 audio tracks will be invisible
    2) For videos that transcode, audio tracks will be transcoded to MP3, and the ATV will convert it to Stereo

    Also you may try the Client-Profile-Extra but, in the end, replace "audioCodec=ac3,mp3" with "audioCodec=ac3,aac"

    On rare occasions (it happens to me twice a year) you may have to restore the ATV, parametrize for PlexConnect and reload certificates.

    QNAP TS-253A 4G QTS 4.3.3.0229 + PMS 1.9.3 + QPython2 2.7.12.0 + PlexConnect 0.5-dev-230417

    TV Sony KDL-32V2500 (720p) + aTV3 Rev. A firmware 7.2.2 + Denon AVR-1604 A/V Receiver 5.1 + Harmony Touch

    Portables 1x iPad4, 2x Android phone, 1x Android tablet, 2x PMP

    No support via PM unless requested by me

  • richu75richu75 Posts: 12Members, Plex Pass Plex Pass

    I've restored to factory defaults and reloaded the certificate. DD was off in settings.

    Seems unrelated to the sound settings, but will try your suggestion. Strangest thing is to see the PMS server trans-coding, I even see the buffer filling on the time line. But I doesn't play the video.

    Debian GNU/Linux 8.7, PMS 1.5.3.3580, PlexConnect 0.5-dev-110616, Python 2.7.9.
    Pioneer Kuro 5080XA, Denon A/V 2807, Apple TV 3 (fw 7.0.1).

  • richu75richu75 Posts: 12Members, Plex Pass Plex Pass

    Well, no luck changing the code.

    I did some digging however, and found there is an error on the plexconnect terminal:

    `Traceback (most recent call last):
    File "/usr/local/lib/PlexConnect-master/WebServer.py", line 230, in do_GET
    self.sendResponse(XML, 'text/xml', True)
    File "/usr/local/lib/PlexConnect-master/WebServer.py", line 93, in sendResponse
    self.wfile.write(data)
    File "/usr/lib/python2.7/socket.py", line 324, in write
    self.flush()
    File "/usr/lib/python2.7/socket.py", line 303, in flush
    self._sock.sendall(view[write_offset:write_offset+buffer_size])
    error: [Errno 32] Broken pipe


    Exception happened during processing of request from ('172.16.0.137', 49670)
    Traceback (most recent call last):
    File "/usr/lib/python2.7/SocketServer.py", line 599, in process_request_thread
    self.finish_request(request, client_address)
    File "/usr/lib/python2.7/SocketServer.py", line 334, in finish_request
    self.RequestHandlerClass(request, client_address, self)
    File "/usr/lib/python2.7/SocketServer.py", line 657, in init
    self.finish()
    File "/usr/lib/python2.7/SocketServer.py", line 716, in finish
    self.wfile.close()
    File "/usr/lib/python2.7/socket.py", line 279, in close
    self.flush()
    File "/usr/lib/python2.7/socket.py", line 303, in flush
    self._sock.sendall(view[write_offset:write_offset+buffer_size])
    error: [Errno 32] Broken pipe`

    First I was thinking the wifi connection isn't that great in that part of the house, but it does not appear if I restore the script to the original. So wifi/connection is not really the problem.

    Debian GNU/Linux 8.7, PMS 1.5.3.3580, PlexConnect 0.5-dev-110616, Python 2.7.9.
    Pioneer Kuro 5080XA, Denon A/V 2807, Apple TV 3 (fw 7.0.1).

«1
Sign In or Register to comment.