I changed the Transcode Target for VideoProfile to fix the “No conversion profile found for protocol http” error.
<VideoProfile protocol="hls" container="mp4" codec="h264" audioCodec="ac3" c ontext="streaming" />
I changed the Transcode Target for VideoProfile to fix the “No conversion profile found for protocol http” error.
<VideoProfile protocol="hls" container="mp4" codec="h264" audioCodec="ac3" c ontext="streaming" />
<?xml version="1.0" encoding="utf-8"?>
<Client name="Android TV">
<TranscodeTargets>
<VideoProfile protocol="hls" container="mp4" codec="h264" audioCodec="ac3" context="streaming" />
<MusicProfile container="flac" codec="flac" id="StereoMusicTranscodeProfile" />
<PhotoProfile container="jpeg" />
</TranscodeTargets>
<DirectPlayProfiles>
<VideoProfile container="mp4" codec="h264,mpeg4" audioCodec="aac" />
<VideoProfile container="mp4" codec="h264,mpeg4" audioCodec="aac,ac3,eac3,mp3,pcm" subtitleCodec="srt,ssa,ass"/>
<VideoProfile container="asf" codec="wmv3,wmv3,vc1" audioCodec="wmav2,wmav2,wmapro,wmavoice,pcm" subtitleCodec="srt,ssa,ass"/>
<VideoProfile container="avi" codec="h264,msmpeg4v3,mpeg4,mjpeg" audioCodec="mp3,ac3,eac3,dca,pcm" subtitleCodec="srt,ssa,ass"/>
<VideoProfile container="mkv" codec="h264,mpeg4,mjpeg,mpeg2video,vc1,hevc" audioCodec="mp2,mp3,ac3,eac3,dca,aac,pcm,vorbis" subtitleCodec="srt,smi,ssa,ass,subrip"/>
<VideoProfile container="mpeg" codec="h264,mpeg1video,mpeg2video" audioCodec="mp2,mp3,ac3,eac3,aac,pcm" subtitleCodec="srt,ssa,ass"/>
<VideoProfile container="flv" codec="h264" audioCodec="aac,ac3,eac3,mp3,pcm" subtitleCodec="srt,ssa,ass"/>
<VideoProfile container="mpegts" codec="h264,mpeg2video,vc1" audioCodec="mp2,mp3,ac3,eac3,dca,pcm" subtitleCodec="srt,ssa,ass"/>
<VideoProfile container="wtv" codec="mpeg2video" audioCodec="ac3,eac3,aac,pcm"/>
<VideoProfile container="3gpp" codec="h264,mpeg4" audioCodec="aac,he-aac"/>
<MusicProfile container="mp4" codec="aac" />
<MusicProfile container="mp3" codec="mp3" />
<MusicProfile container="flac" codec="flac" />
<MusicProfile container="ogg" codec="vorbis" />
<PhotoProfile container="jpeg,gif,bmp,png" />
</DirectPlayProfiles>
<ContainerProfiles>
<VideoContainer name="mp4">
<Limitations>
<Match name="part.optimizedForStreaming" value="1" />
</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>
<VideoCodec name="h264">
<Limitations>
<Match name="video.profile" list="baseline|main|high" />
</Limitations>
</VideoCodec>
<VideoAudioCodec name="aac">
<Limitations>
<UpperBound name="audio.channels" value="6" />
</Limitations>
</VideoAudioCodec>
</CodecProfiles>
</Client>
@MartinCairns Does this work in Profiles/Shield.xml or do you have to replace Android.xml?
OK. So the only way to do this now is to replace the shipped Android.xml? That’s annoying, because I also have other Android devices in the house that lack the Shield’s capabilities.
But I don’t get it… I was exploring this because my Shield doesn’t seem to be Direct Playing VC1 files. But it seems like other people have managed that without all this farting around. However, I only have a single VC1 rip handy to test with, so perhaps there’s some other problem with the file.
I’m running Plex in a docker container on my Unraid Server.
I look in this folder:
../plexmediaserver/Library/Application Support/Plex Media Server/
And there’s no profiles directory. No android.xml to be found. What am I missing?
@tmchow You have to create it
There seems to be a server piece to this puzzle as well. I was running the current Plex Pass version for Mac (1.9.5.something). I downgraded to 1.9.3.4920 and everything was perfect. On my Shield everything was being Direct Played and on my Apple TV both the audio and video streams were “Direct Stream.”
Unfortunately I had to upgrade PMS to 1.9.4.4325. Now both audio and video are being transcoded on my Shield and on the Apple TV the video stream is being “Direct Streamed” but the audio is now being transcoded.
Unfortunately there are some problems with PMS 1.9.3.4920 and iOS 11. So going back to 1.9.3 is not an option.
Unfortunately, starting with 1.9.4 I get frequent “Playback has stopped because the connection to the Plex Media Server gas been lost” error messages on my Shield. So Plex isn’t really usable right now for me.
So something was introduced in 1.9.4…
OK. Whatever my Shield/VC1 problem is with some rips doesn’t seem to be related to profiles. I only had one VC1 rip (Blade Runner) available before because I had already reencoded a couple others to AVC, as I had been doing regularly before getting the Shield. So I went back and reripped Inside Man again and it Direct Plays as expected. Weird… not sure what Blade Runner’s problem is, but I’ll go back and rerip it and see if it makes any difference.
@spedly said:
Unfortunately, starting with 1.9.4 I get frequent “Playback has stopped because the connection to the Plex Media Server gas been lost” error messages on my Shield. So Plex isn’t really usable right now for me.
I was getting a bunch of these as well. I made two threads with no reply ¯\_(ツ)_/¯. I’m starting to suspect now it was the Shield profile after it also started causing those http errors.
I’m trying @MartinCairns’s post above instead of the one at the top of this post. We’ll see if that fixes things.
@radiocolin said:
I was getting a bunch of these as well. I made two threads with no reply¯\_(ツ)_/¯. I’m starting to suspect now it was the Shield profile after it also started causing those http errors.I’m trying @MartinCairns’s post above instead of the one at the top of this post. We’ll see if that fixes things.
Cool. Please report back what you find out.
@radiocolin said:
@tmchow You have to create it
@radiocolin But after I create the folder, there is no android.xml file anywhere… everyone seems to be referencing some default profile that exists somewhere but can’t be found in my setup
@tmchow said:
@radiocolin said:
@tmchow You have to create it@radiocolin But after I create the folder, there is no android.xml file anywhere… everyone seems to be referencing some default profile that exists somewhere but can’t be found in my setup
Android.xml is under Resources/Profiles in the Plex app bundle on Mac, or the Program Files/Plex folder on Windows.
User profiles go in the App Data directory, and you need to create the “Profiles” folder.
@radiocolin said:
@tmchow said:
@radiocolin said:
@tmchow You have to create it@radiocolin But after I create the folder, there is no android.xml file anywhere… everyone seems to be referencing some default profile that exists somewhere but can’t be found in my setup
Android.xml is under Resources/Profiles in the Plex app bundle on Mac, or the Program Files/Plex folder on Windows.
User profiles go in the App Data directory, and you need to create the “Profiles” folder.
@radiocolin Thanks. Does it matter what I call it, or is the user agent matching within the file itself only used?
@MartinCairns in your latest XML file, noticed that you eliminated this element. Intentional or unintentional?
<Identification>
<Header name="User-Agent" substring="SHIELD Android TV" />
</Identification>
<!-- Author: Plex Inc. -->
@tmchow I don’t believe Plex is using the identification any more since now it’s the Android.xml is the one which needs to be changed.
@radiocolin said:
@spedly said:
Unfortunately, starting with 1.9.4 I get frequent “Playback has stopped because the connection to the Plex Media Server gas been lost” error messages on my Shield. So Plex isn’t really usable right now for me.
I was getting a bunch of these as well. I made two threads with no reply
¯\_(ツ)_/¯. I’m starting to suspect now it was the Shield profile after it also started causing those http errors.I’m trying @MartinCairns’s post above instead of the one at the top of this post. We’ll see if that fixes things.
How did it to work. I’m a shield/plex owner and want to pull the trigger on a Sonos but i’m trying to get my head wrapped around this DTS workaround as about half of my movie collections are in some flavor of DTS.
@crimsonblake said:
@radiocolin said:
@spedly said:
Unfortunately, starting with 1.9.4 I get frequent “Playback has stopped because the connection to the Plex Media Server gas been lost” error messages on my Shield. So Plex isn’t really usable right now for me.
I was getting a bunch of these as well. I made two threads with no reply
¯\_(ツ)_/¯. I’m starting to suspect now it was the Shield profile after it also started causing those http errors.I’m trying @MartinCairns’s post above instead of the one at the top of this post. We’ll see if that fixes things.
How did it to work. I’m a shield/plex owner and want to pull the trigger on a Sonos but i’m trying to get my head wrapped around this DTS workaround as about half of my movie collections are in some flavor of DTS.
Ditto here. I just changed my TV to a Sony XBR from a Vizio and for some reason, am now encountering sound issues with movies with DTS when I didn’t before.
Looking at things, it appears directplay is happening so DTS is being passed from PMS to my Shield TV, then to my TV which then sends DTS to the Sonos Playbar. As we know, the playbar doesn’t support DTS so I get silence.
Since this worked before with my Vizio TV, either the TV was transcoding DTS on the optical output to DD or PMS was transcoding. Either way I’m confused and need help, and it looks like a profile change will solve it based on this thread.
I’ve tried the profile in the first post and then the one later posted by @MartinCairns but neither solve the issue. Still getting DTS sent directly from PMS to Shield.
I was also receiving connection lost errors when trying to use the Shield TV profile. Switching the profile back to using mpegts for the transcoding profile seemed to fix it and everything seems to be working well now.
<TranscodeTargets>
<VideoProfile protocol="hls" container="mpegts" codec="h264" audioCodec="ac3" context="streaming" />
<MusicProfile container="flac" codec="flac" id="StereoMusicTranscodeProfile" />
<PhotoProfile container="jpeg" />
</TranscodeTargets>
Unfortunately, the profile broke my Android Samsung S8 playback, so I did some playing around.
It seems that if you name the profile “Android-SHIELD Android TV.xml” rather than just “Android.xml” it applies the profile only to Shield Plex client, allowing both to work. Perfect!
In case it makes a difference, I’m running PMS Version 1.11.1.4730 on an Ubuntu server.
@vsot45 said:
I was also receiving connection lost errors when trying to use the Shield TV profile. Switching the profile back to using mpegts for the transcoding profile seemed to fix it and everything seems to be working well now.<TranscodeTargets> <VideoProfile protocol="hls" container="mpegts" codec="h264" audioCodec="ac3" context="streaming" /> <MusicProfile container="flac" codec="flac" id="StereoMusicTranscodeProfile" /> <PhotoProfile container="jpeg" /> </TranscodeTargets>Unfortunately, the profile broke my Android Samsung S8 playback, so I did some playing around.
It seems that if you name the profile “Android-SHIELD Android TV.xml” rather than just “Android.xml” it applies the profile only to Shield Plex client, allowing both to work. Perfect!
In case it makes a difference, I’m running PMS Version 1.11.1.4730 on an Ubuntu server.
Are you running Windows? I’m desperately trying to get this to work. Where did you put the profile?
UPDATE: Clearly I can’t read. Sorry about that. Never mind.
@MartinCairns said:
... <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> ...
I’m concerned about this part. Why is there a limitation for the resolution. What if I try to play a HEVC 4K file? What will this do?