New Optical Passthrough settings not quite working right?

Weird. Must have broken something myself. Lol

Here it is on google drive

https://drive.google.com/a/foofoo.info/file/d/1GF52afDW4OMYR7BKd0FXk-AkJpbAW04k/view?usp=drivesdk

Thanks, but unfortunately the sharing permissions you’ve setup for GDrive isn’t allowing me access. You’ll need to modify the Sharing Dialog to allow others with the link to view/download.

Ian

It was Cloudflare causing the issue, fixed it. The original links are working again, but the google one is the same anyway.

Hope it sheds some light.

Ok, i’lol double check, this is really being a pain tonight! Can you confirm the original links work now while I double check google.

Looking at the logs, I can see our video player log out the video and audio streams that it’s found being provided by Plex Media Server:

02-05 20:25:38.088  i: [FF] VideoStream[0-h264] 1920x1080 [SAR 1:1, DAR 16:9]. H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 - Unknown Profile (video/avc), 35.2 Mbps -54 secs 0.00fps, No Title / Unknown (null), 1 / 82 bytes, .

02-05 20:25:38.089  i: [FF] AudioStream[1-ac3] 6 channels over 1551 (5.1(side)), 48000 Hz, 0,0 padding. ATSC A/52A (AC-3) - Unknown Profile (audio/ac3), 35.2 Mbps -54 secs 0.00fps, No Title / Unknown (null), 0 bytes, .

Interestingly, on your setup, I see that DTS is disabled and now the server is correctly transcoding to AC3. Initially I thought that maybe our own AC3 decoder is actually kicking in and decoding to 2 channel PCM. However, after digging more if that was the case, I would have expected to see something else in your logs to confirm that’s the case.

Just to sanity check, when you play something with the original audio being AC3 and the video direct plays, it outputs AC3 correctly instead of 2 channel PCM? At the moment, if I had just seen this logs, I would have guessed your TV is handling the AC3 by decoding it and then outputting 2 channel PCM via Optical. But given you said other AC3 content goes all the way through Optical fine, that shouldn’t be the case here…

1 Like

Hang on, I think I’m leading you up a slight garden path here.

Yes, the optical setting appears to be working correctly upstairs, showing as a transcode to ac3.

Downstairs in the Sony tv, it’s different though, it’s definitrly going to aac stereo, let me go start a playback there and grab a log.

Sorry.

Is the Sony TV and Sony Android TV? Or a SHIELD/Android TV connected to a Sony TV?

@IanDBird Not an android tv, it’s a Sony kdl 55w905a .

I think this is a codec issue, I played a couple of dts only files and they converted correctly, the film I originally tried was a dts 7.1 file which should have downmixed to ac3 but instead went to stereo.

Here’s a log, I played a couple of dts films which correctly played, then I played ready player one right at the end and it goes to stereo.

It’s very nearly working properly, just some codecs not behaving!

Thanks, I can see in the logs that the client isn’t requesting AC3 and therefore is receiving just a 2 channel AAC track:

02-05 21:32:19.005  i: [FF] VideoStream[0-hevc] 1920x800 [SAR 1:1, DAR 1920:800]. H.265 / HEVC (High Efficiency Video Coding) - Unknown Profile (video/hevc), 16.7 Mbps -54 secs 23.98fps, No Title / Unknown (null), 0 bytes, .
02-05 21:32:19.006  i: [FF] AudioStream[1-aac] 2 channels over 3 (stereo), 48000 Hz, 0,0 padding. AAC (Advanced Audio Coding) - Unknown Profile (audio/mp4a-latm), 16.7 Mbps -54 secs 0.00fps, No Title / Unknown (null), 1 / 2 bytes, .

It’s strange, because the client is not telling the server that it supports AC3 (which is why it’s not getting it). If Optical is enabled with AC3 enabled, i’m not sure at the moment why it wouldn’t report it as such to the server.

I’m gonna need to spend some time debugging to see if I can reproduce here. It’s getting late though in the evening, so i’ll likely have to pick this back up tomorrow morning.

Sorry about this, i’m scratching my head looking at the code and it ā€œshouldā€ be doing the right thing. Thanks for your patience and hopefully I can figure it out tomorrow.

No problem. The file exhibiting this shows as having a DTS-HD MA 7.1 soundtrack.

Normal DTS 5.1 is correctly playing with a transcode to AC3.

I’m having this same exact issue

For some reason audio passthrough just stoppped working. I get video and sound everywhere else. but then once i force surround in nvidia shield tv settings. i dont get sound. and my panasonic sa-bt300 supports basically every codec.

Having the same problem as @fizzyade, AAC 5.1 audio transcodes to AC3 5.1 audio but 7.1 transcodes to stereo. Seems to be anything with 7.1 sound. Thanks for all the work on this issue, it’s almost there!

With a new set of eyes, and a cup of coffee, I can see the issue. The code is checking if the device is setup to support AC3 with the original channel count of the source media. In the case of 7.1 (so 8 channels), it’s returning ā€œnoā€ because… well, AC3 never supports 8 channels. I’ll get the issue resolved as soon as I can and get another beta out.

Ian

4 Likes

Huzzah. Feel your pain on that one, been in the position of staring at code for hours wondering why something doesn’t behave as expected and then next morning I straight away spot the issue!

Fresh eyes FTW.

Looking forward (as I’m sure you are) putting this one to bed! Thank you so much for all your efforts, this has been a massive issue for as long as I can remember and now Plex is finally going to be compatible with a Sonos system.

I (think/hope!) i’ve fixed the issue now, it’s been reviewed and tested internally and landed in our codebase. I’ll ask the team to ensure a new beta gets pushed later today - they’re working on some additional issues reported via the forums.

Thanks again for raising, and your patience

Ian

2 Likes

Once again, thanks for all your efforts on this.

Also thank you for asking for a new beta push with the fix, I didnt fancy waiting for another couple of weeks for a fix!

Just tried with some EAC5.1 files which also gave me silence originally, now play perfect with a transcode to AC3!

Hopefully it’s the end of either silent films or me having to tell them to change the audio stream to AC3!

2 Likes

It’s one of the advantages of being the boss :wink: The beta period is ~2 weeks where we continue to update the RC with fixes identified internally and via the forums, then once things settle we start a staged rollout to production so everyone gets the update. Then a week later, a new first beta comes out and we start this whole process again…

Ian

Legend, just installed the new beta and it’s working!

FINALLY, you have no idea how annoying this issue has been for anybody with a Sonos system, but it’s now transcoding multichannel to ac3!

Thank you so much for doing this, putting up with my tagging and pestering and occasional bad mood!

This is a game changer for me, can’t tell you how much this improves plex for me.

2 Likes

@IanDBird I applied for beta access quite a while back and haven’t heard anything, any chance of getting somebody to look and see if they can add me so that I don’t have to keep side loading beta versions.

Or tag the person who needs to be tagged.

Awesome, great (and relieved!) to hear. Thanks for letting us know.

Sure, sorry about this. The beta requests need to be processed manually. I’ll ask the team to try and process any queue ~tomorrow so that you’ll receive future beta updates easier. After you’re added to the list, you’ll need to opt-in via Google Play too.

If you haven’t already, make sure you review the app via the store :wink:

Ian

2 Likes