Kekskruemel 0 Posted April 23, 2018 Share Posted April 23, 2018 Hi, I want to use Kodi on an Ipad Air with Emby to transcode hevc 4k 10 bit files via DLNA. The correct profile gets selected in the logs but emby doesn't transcode. Here are the settings: <?xml version="1.0"?> <Profile xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <Name>Test</Name> <Identification> <FriendlyName /> <ModelNumber /> <SerialNumber /> <ModelName /> <DeviceDescription /> <ModelUrl /> <Manufacturer /> <ManufacturerUrl /> <Headers> <HttpHeaderInfo name="User-Agent" value="Kodi/17.2" match="Substring" /> </Headers> </Identification> <FriendlyName /> <Manufacturer>Emby</Manufacturer> <ManufacturerUrl>https://emby.media</ManufacturerUrl> <ModelName>Emby Server</ModelName> <ModelNumber>01</ModelNumber> <ModelUrl>https://emby.media</ModelUrl> <SerialNumber /> <EnableAlbumArtInDidl>false</EnableAlbumArtInDidl> <EnableSingleAlbumArtLimit>false</EnableSingleAlbumArtLimit> <EnableSingleSubtitleLimit>false</EnableSingleSubtitleLimit> <SupportedMediaTypes>Audio,Photo,Video</SupportedMediaTypes> <UserId /> <AlbumArtPn>JPEG_SM</AlbumArtPn> <MaxAlbumArtWidth>480</MaxAlbumArtWidth> <MaxAlbumArtHeight>480</MaxAlbumArtHeight> <MaxIconWidth>48</MaxIconWidth> <MaxIconHeight>48</MaxIconHeight> <MaxStreamingBitrate>140000000</MaxStreamingBitrate> <MaxStaticBitrate>140000000</MaxStaticBitrate> <MusicStreamingTranscodingBitrate>192000</MusicStreamingTranscodingBitrate> <MaxStaticMusicBitrate xsi:nil="true" /> <SonyAggregationFlags /> <ProtocolInfo>http-get:*:video/mpeg:*,http-get:*:video/mp4:*,http-get:*:video/vnd.dlna.mpeg-tts:*,http-get:*:video/avi:*,http-get:*:video/x-matroska:*,http-get:*:video/x-ms-wmv:*,http-get:*:video/wtv:*,http-get:*:audio/mpeg:*,http-get:*:audio/mp3:*,http-get:*:audio/mp4:*,http-get:*:audio/x-ms-wma*,http-get:*:audio/wav:*,http-get:*:audio/L16:*,http-get:*image/jpeg:*,http-get:*image/png:*,http-get:*image/gif:*,http-get:*image/tiff:*</ProtocolInfo> <TimelineOffsetSeconds>0</TimelineOffsetSeconds> <RequiresPlainVideoItems>false</RequiresPlainVideoItems> <RequiresPlainFolders>false</RequiresPlainFolders> <EnableMSMediaReceiverRegistrar>false</EnableMSMediaReceiverRegistrar> <IgnoreTranscodeByteRangeRequests>false</IgnoreTranscodeByteRangeRequests> <XmlRootAttributes /> <DirectPlayProfiles> <DirectPlayProfile container="mp4" audioCodec="aac" videoCodec="h264" type="Video" /> </DirectPlayProfiles> <TranscodingProfiles> <TranscodingProfile container="mp4" type="Video" videoCodec="h264" audioCodec="aac" protocol="Http" estimateContentLength="false" enableMpegtsM2TsMode="false" transcodeSeekInfo="Auto" copyTimestamps="false" context="Streaming" enableSubtitlesInManifest="false" minSegments="0" segmentLength="0" breakOnNonKeyFrames="false" /> <TranscodingProfile container="mp4" type="Video" videoCodec="h264" audioCodec="aac" protocol="Hls" estimateContentLength="false" enableMpegtsM2TsMode="false" transcodeSeekInfo="Auto" copyTimestamps="false" context="Streaming" enableSubtitlesInManifest="false" minSegments="0" segmentLength="0" breakOnNonKeyFrames="false" /> </TranscodingProfiles> <ContainerProfiles /> <CodecProfiles> <CodecProfile type="Video" codec="hevc"> <Conditions /> <ApplyConditions /> </CodecProfile> <CodecProfile type="Audio" codec="dts"> <Conditions /> <ApplyConditions /> </CodecProfile> <CodecProfile type="VideoAudio" codec="hevc,dts"> <Conditions /> <ApplyConditions /> </CodecProfile> </CodecProfiles> <ResponseProfiles> <ResponseProfile container="mp4" audioCodec="aac" videoCodec="hevc" type="Video"> <Conditions /> </ResponseProfile> </ResponseProfiles> <SubtitleProfiles> <SubtitleProfile format="srt" method="External" /> <SubtitleProfile format="sub" method="External" /> <SubtitleProfile format="srt" method="Embed" /> <SubtitleProfile format="ass" method="Embed" /> <SubtitleProfile format="ssa" method="Embed" /> <SubtitleProfile format="smi" method="Embed" /> <SubtitleProfile format="dvdsub" method="Embed" /> <SubtitleProfile format="pgs" method="Embed" /> <SubtitleProfile format="pgssub" method="Embed" /> <SubtitleProfile format="sub" method="Embed" /> <SubtitleProfile format="subrip" method="Embed" /> <SubtitleProfile format="vtt" method="Embed" /> </SubtitleProfiles> </Profile> Did I miss something ? Log is attached. Transcode with the IOS App for the same Movie works. But I have problems with the App, because I need to use IOS Version 9.0.2 and so want to use DLNA. General Format : Matroska Format version : Version 4 / Version 2 File size : 58.8 GiB Duration : 1 h 56 min Overall bit rate : 76.1 Mb/s Encoded date : UTC 2018-01-16 18:46:30 Writing application : mkvmerge v19.0.0 ('Brave Captain') 64-bit Writing library : libebml v1.3.5 + libmatroska v1.4.8 Video ID : 1 Format : HEVC Format/Info : High Efficiency Video Coding Format profile : Main 10@L5.1@High Codec ID : V_MPEGH/ISO/HEVC Duration : 1 h 56 min Bit rate : 68.7 Mb/s Width : 3 840 pixels Height : 2 160 pixels Display aspect ratio : 16:9 Frame rate mode : Constant Frame rate : 23.976 (24000/1001) FPS Color space : YUV Chroma subsampling : 4:2:0 (Type 2) Bit depth : 10 bits Bits/(Pixel*Frame) : 0.315 Stream size : 52.3 GiB (86%) Language : German Default : Yes Forced : No Color range : Limited Color primaries : BT.2020 Transfer characteristics : PQ Matrix coefficients : BT.2020 non-constant Mastering display color primaries : Display P3 Mastering display luminance : min: 0.0050 cd/m2, max: 1000 cd/m2 Maximum Content Light Level : 853 cd/m2 Maximum Frame-Average Light Level : 112 cd/m2 Audio #1 ID : 2 Format : DTS Format/Info : Digital Theater Systems Format profile : X / MA / Core Codec ID : A_DTS Duration : 1 h 56 min Bit rate mode : Variable / Variable / Constant Bit rate : 3 548 kb/s / 3 545 kb/s / 1 506 kb/s Channel(s) : Object Based / 8 channels / 6 channels Channel positions : Object Based / Front: L C R, Side: L R, Back: L R, LFE / Front: L C R, Side: L R, LFE Sampling rate : / 48.0 kHz / 48.0 kHz Frame rate : 93.750 FPS (512 SPF) Bit depth : / 24 bits / 24 bits Compression mode : / Lossless / Lossy Stream size : 2.86 GiB (5%) Title : Language : German Default : Yes Forced : No Thx & Greetings server-63660107833.txt Link to comment Share on other sites More sharing options...
Luke 37233 Posted April 23, 2018 Share Posted April 23, 2018 Yes, you'll need to add conditions using CodecProfiles to cause that to transcode. Unfortunately we don't have this process very well documented but i can point you to the web app profile that you can look at. It has a condition for 10 bit video: https://github.com/MediaBrowser/emby-webcomponents/blob/master/browserdeviceprofile.js#L722 Link to comment Share on other sites More sharing options...
Kekskruemel 0 Posted April 23, 2018 Author Share Posted April 23, 2018 <CodecProfiles> <CodecProfile type="Video" codec="h264"> <Conditions> <ProfileCondition value="8" isRequired="true" property="VideoBitDepth" condition="Equals"/> <ProfileCondition condition="LessThanEqual" property="Width" value="1920" isRequired="true" /> <ProfileCondition condition="LessThanEqual" property="Height" value="1080" isRequired="true" /> </Conditions> <ApplyConditions /> </CodecProfile> <CodecProfile type="Video" codec="hevc"> <Conditions> <ProfileCondition value="8" isRequired="true" property="VideoBitDepth" condition="Equals"/> <ProfileCondition condition="LessThanEqual" property="Width" value="1920" isRequired="true" /> <ProfileCondition condition="LessThanEqual" property="Height" value="1080" isRequired="true" /> </Conditions> <ApplyConditions /> </CodecProfile> </CodecProfiles> This should be fine ? Limitation is VideoBitDepth must be equal 8. Because there is still no transcoding :/ Link to comment Share on other sites More sharing options...
Luke 37233 Posted April 24, 2018 Share Posted April 24, 2018 What I would suggest doing is going through the included xml profiles because there are some that have these kinds of conditions. You should be able to use that to copy paste and modify. You could try the LG profile for example. Link to comment Share on other sites More sharing options...
Kekskruemel 0 Posted April 24, 2018 Author Share Posted April 24, 2018 Hi, the above condition is from the emby xbox one profile but doesn't work. I only edited it to condition="Equals" and isRequired="true". Doesnt this mean VideoBitDepth must be equal 8 if not transcode. Also tried the original condition without edit, still no transcode :/ Link to comment Share on other sites More sharing options...
Luke 37233 Posted April 24, 2018 Share Posted April 24, 2018 Are you sure the profile is being used? how did you identify that? Link to comment Share on other sites More sharing options...
Kekskruemel 0 Posted April 24, 2018 Author Share Posted April 24, 2018 The posted Log says Debug Dlna: Found matching device profile: Test Test is the correct profile. Doesn't this say it's using the Test Profile ? Link to comment Share on other sites More sharing options...
Luke 37233 Posted April 24, 2018 Share Posted April 24, 2018 It depends. you left all of the identification info blank except for http headers. if you're using remote control to play to the device, then the profile is detected using that identification info so you'd have to fill at least one of them out, like model name for example. if you are browsing content form the device then it uses the http headers. Link to comment Share on other sites More sharing options...
Luke 37233 Posted April 24, 2018 Share Posted April 24, 2018 Also if you are updating the file directly, then you will need to restart the server in between changes. Link to comment Share on other sites More sharing options...
Kekskruemel 0 Posted April 24, 2018 Author Share Posted April 24, 2018 Sadly I doesn't see any other Identification beside the kodi user agent in the log and debug logging and dlna debug is activated. I restart the server after each change. Link to comment Share on other sites More sharing options...
Luke 37233 Posted April 24, 2018 Share Posted April 24, 2018 Which playback method are you using? Link to comment Share on other sites More sharing options...
Kekskruemel 0 Posted April 24, 2018 Author Share Posted April 24, 2018 I start the playback in Kodi on the IPad Link to comment Share on other sites More sharing options...
Luke 37233 Posted April 24, 2018 Share Posted April 24, 2018 Have you revoked transcoding permissions for your emby user? that would also cause it to direct play everything. Link to comment Share on other sites More sharing options...
Kekskruemel 0 Posted April 24, 2018 Author Share Posted April 24, 2018 Only 1 User exist which also can transcode. But there was no option for entering user credentials with dlna. Did I miss something here ? Link to comment Share on other sites More sharing options...
Luke 37233 Posted April 24, 2018 Share Posted April 24, 2018 The only other thing I can think of is that maybe Kodi has cached the playback urls from before the profile was updated. If you look at your DirectPlayProfiles, you don't even have mkv underneath there, so that automatically means that any mkv should transcode. In fact, anything but mp4 should transcode based on that. Link to comment Share on other sites More sharing options...
Kekskruemel 0 Posted April 24, 2018 Author Share Posted April 24, 2018 Yeah it should work but don't know why -,- Deleted Dlna link in Kodi and added again same result. I also tested other player with modified User Agent String. Same result. Link to comment Share on other sites More sharing options...
Luke 37233 Posted April 24, 2018 Share Posted April 24, 2018 I tested with windows media player and it seemed to work fine. Link to comment Share on other sites More sharing options...
Kekskruemel 0 Posted April 24, 2018 Author Share Posted April 24, 2018 (edited) Changed the User Agent for the Windows Media Player. He is now using the Profile Test for the windows media player with the same profile as posted above. No Transcode o_O 2018-04-24 22:22:49.216 Info HttpServer: HTTP GET http://192.168.178.4:8096/videos/e9653eaba5ac584624bd6fc98edca660/stream.mkv?DeviceId=test&MediaSourceId=e9653eaba5ac584624bd6fc98edca660&Static=true&AudioStreamIndex=1&Tag=b7dbb406ee6644a344dc62d5f761605e&dlnaheaders=true. Cache-Control=no-cache, Connection=Keep-Alive, Pragma=getIfoFileURI.dlna.org, Accept=*/*, Accept-Language=de-DE, If-Match="4fe955e2a7211b3defc3b2c17928ea20", If-Unmodified-Since=Mon, 15 Jan 2018 14:50:50 GMT, Range=bytes=262144-63008011676, User-Agent=NSPlayer/12.00.16299.0248 WMFSDK/12.00.16299.0248, FriendlyName.DLNA.ORG=NILS, PeerManager.DLNA.ORG=uuid:5C052301-439F-422F-A64E-323AE4E38E6E/urn:schemas-upnp-org:serviceId:ConnectionManager, GetContentFeatures.DLNA.ORG=1, TransferMode.DLNA.ORG=Streaming, Host=192.168.178.4:8096 2018-04-24 22:22:49.219 Debug Dlna: Found matching device profile: Test Edited April 24, 2018 by Kekskruemel Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now