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!

Multichannel AAC and DTS (DCA) transcoding to stereo (AAC)

richu75richu75 Posts: 21Members, Plex Pass Plex Pass

I have been building a new Plex server, moving from a 32bit debian8 to a 64bit debian9 VM.
Installed lastest versions of PMS (1.10.1.4602) and PlexConnect (0.5-dev-161017).

Now my new server always transcodes Multi AAC and DTS to AAC stereo (according to plexpy). Multichannel AC3 and EAC3 is playing perfectly. I've been digging thru the logfiles and it seems the standard iOS.xml profile is used. Anyone have an idea on how to add AAC and DTS to the profile? I understand multichannel AAc isn't supported by the aTV, but can I force a transcode to AC3?

I'm a little hesitant to upload the logs as it contains pretty sensitive data.

Debian GNU/Linux 9.2, PMS 1.10.1.4602, PlexConnect 0.5-dev-161017, Python 2.7.9.
Pioneer Kuro 5080XA, Denon A/V 2807, aTV/bTV/cTV.

Comments

  • moody_bluemoody_blue Posts: 3,037Members, Plex Pass, Plex Ninja Plex Ninja
    edited December 2017

    Please send me a sample video via WeTransfer (see PM for my email) to test.

    I will discuss with development if they are open to modify the iOS profile (this will only be made if other platforms will benefit, such as iPad and iPhone) or if we should go the profile augmentation route in PlexConnect.

    QNAP TS-253A 4G QTS 4.3.4.0435 + PMS 1.11.0.4666 (beta) + QPython2 2.7.12.0 + PlexConnect 0.5-dev-161017

    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 on Win10

    No support via PM unless requested by me

  • richu75richu75 Posts: 21Members, Plex Pass Plex Pass

    Thx @moody_blue.

    Sample is uploaded together with plex server logs.

    Debian GNU/Linux 9.2, PMS 1.10.1.4602, PlexConnect 0.5-dev-161017, Python 2.7.9.
    Pioneer Kuro 5080XA, Denon A/V 2807, aTV/bTV/cTV.

  • moody_bluemoody_blue Posts: 3,037Members, Plex Pass, Plex Ninja Plex Ninja
    edited December 2017

    I see the problem. With dolby=off audio does not transcode (same behaviour with my iPad), but with dolby=on AAC 6-ch is transcoded to stereo. I'll see what I can do. Not sure however what's best, directstream AAC 6-ch or transcode to AC3 6-ch.

    QNAP TS-253A 4G QTS 4.3.4.0435 + PMS 1.11.0.4666 (beta) + QPython2 2.7.12.0 + PlexConnect 0.5-dev-161017

    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 on Win10

    No support via PM unless requested by me

  • richu75richu75 Posts: 21Members, Plex Pass Plex Pass

    I'm guessing transcode. MultiAAC is a bit of a hit and miss. Not all receivers support MultiAAC.

    I've restored my old plex server (thank you veeam) and will run some tests with the old pms and plexconnect.

    Debian GNU/Linux 9.2, PMS 1.10.1.4602, PlexConnect 0.5-dev-161017, Python 2.7.9.
    Pioneer Kuro 5080XA, Denon A/V 2807, aTV/bTV/cTV.

  • moody_bluemoody_blue Posts: 3,037Members, Plex Pass, Plex Ninja Plex Ninja
    edited December 2017

    Although this may not be the ultimate solution (I still have to check with developers if there is a better method), here is what you can do:
    1. Modify PlexAPI.py line 483 so that it reads xargs['X-Plex-Client-Profile-Extra'] = 'add-transcode-target(type=videoProfile&context=streaming&protocol=hls&container=mpegts&videoCodec=h264&audioCodec=ac3&replace=true)' (in other words, remove aac,mp3) so that AC3 is the only target whenever audio transcoding is necessary
    2. Create a user profile, based in iOS.xml (and with the same name) where line 35 reads <VideoAudioCodec name="aac"> (instead of <VideoAudioCodec name="*">) so that the 2-ch audio limitation applies to AAC only, otherwise AAC-6ch will be transcoded to AC3-2ch

    QNAP TS-253A 4G QTS 4.3.4.0435 + PMS 1.11.0.4666 (beta) + QPython2 2.7.12.0 + PlexConnect 0.5-dev-161017

    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 on Win10

    No support via PM unless requested by me

  • moody_bluemoody_blue Posts: 3,037Members, Plex Pass, Plex Ninja Plex Ninja
    edited January 2

    Can you please test with the attached PlexAPI.py file ? Not only with AAC-6ch films, but with others as well.

    Use latest PMS and PlexConnect please. And no iOS.xml user profile.

    QNAP TS-253A 4G QTS 4.3.4.0435 + PMS 1.11.0.4666 (beta) + QPython2 2.7.12.0 + PlexConnect 0.5-dev-161017

    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 on Win10

    No support via PM unless requested by me

Sign In or Register to comment.