[BUG]: "Direct Play was attempted but failed, fallen back to transcoding"

android-tv
fire-tv

#1

It should just direct play ... it was captured using Plex DVR.

Version 7.0.3.5502 on Nvidia Shield TV, with PMS 1.13.2.5102 also on Shield.

Log at https://drive.google.com/open?id=1966ftZ7wy01ZAzusid-016ususz032q4
Look for show "Humans".


#2

Playing it again later results in Direct Play succeeding. Odd.

I noticed this in the logs above:
Jun 10, 2018 15:42:11.509 [30878] DEBUG - MDE: Cannot direct stream audio stream due to codec aac_latm when profile only allows aac

So it looks like the Android TV client is sometimes reporting that it can't play aac_latm audio.


#3

@sixones you were looking at a previous report of mine on this ... here's another example


#4

Bug is present on the Nvidia Shield too. It sometimes not able to direct play MKV files, because it says "audio codec not supported". It happens with true HD, AC3 sometimes... On second attempt it plays direct play perfectly.


#5

@Purger1975 said:
Bug is present on the Nvidia Shield too. It sometimes not able to direct play MKV files, because it says "audio codec not supported". It happens with true HD, AC3 sometimes... On second attempt it plays direct play perfectly.

Yep, my problem is on the Shield too (see first post above). I don't get the "audio codec not supported" message though.


#6

You'll need to provide the log from the Shield client.


#7

To get the client log follow these steps:

https://support.plex.tv/articles/201573117-android-android-tv-fire-tv-logs/


#8

Client log at: https://drive.google.com/open?id=1BW7FqCJbcopXzDDlb4c1q3hqk-IoUYXK
Corresponding server log at: https://drive.google.com/open?id=1966ftZ7wy01ZAzusid-016ususz032q4


#9

You have an odd video. Did you get this directly from the DVR? No post processing of any type?

Your video is 544x576 anamorphic with mp2 audio. That's an odd video. However, the video is not causing a problem. It's the mp2 audio. The Shield does not like it and is failing to play so it is falling back to transcoding the audio to aac. This is expected behavior when it runs into a codec it doesn't like. Can you provide me a short sample of this file so I can test?


#10

Yep, that's straight from the DVR with no post-processing. All my SD recordings have MP2 audio (all HD recordings are AAC_LATM). I'm in the UK if that makes any difference.

I have no means to trim a TS file, so here's a link to the complete file (around 2GB): https://drive.google.com/open?id=1UwvKcYFI1wEfr4Pa1MO1rHEPdyuoRNAv

This was the first one I tried this morning and fell-back straight away. It's not the one I'd tried previously which seems to fall-back intermittently (sometimes falls back, sometimes doesn't). I'll try to get logs for one of those too.


#11

Here's an HD example - Poldark. Played twice - first time shows "fallen back due to transcoding", when played immediately afterwards Direct Play succeeds.

Client log: https://drive.google.com/open?id=1cVpcOW7anO0jB40bkGiypLJ14_AKOCas
Server log: https://drive.google.com/open?id=1THRSEO7EyMJAVi5L_MOQojwH89xwChlJ


#12

The Shield should play MP2 audio, so it's definitely something with the recording. For the sample, do not cut the file, as that might affect the results. Can you try recording a show that only has 1 or 2 minutes left so it creates a small file? See if that causes the issue then provide me that file. I'll look at your new logs in the meantime.


#13

Here's a link to a 4 minute (47MB) SD recording: https://drive.google.com/open?id=1dbvTQK1C4tl6oRPMLVoT37ekmAdOy0jT

Same problem - first play results in "fallen back to transcoding", second play goes successfully to DirectPlay.


#14

FWIW, I just tried to play it and it Direct Played on the first try. I know that doesn’t help you, but thought I would mention it as it might mean there’s something going on with your specific setup.

Device: Nvidia Shield
App: 7.0.3
Audio: HDMI direct to TV