UPnP / DLNA Media Server for MediaPortal 2 (3 Viewers)

breese

Retired Team Member
  • Premium Supporter
  • July 11, 2011
    3,902
    770
    65
    Arlington Heights, Illinois
    Home Country
    United States of America United States of America
    Started out with
    [2015-09-10 06:27:27,525] [3546 ] [36 ] [INFO ] - DetectProfile: No profile found => using DLNADefault, headers=User-Agent: Win32NT/6.2.9200.0 UPnP/1.1 MediaPortal-2-Server/1.0, Accept-Encoding: deflate, gzip, remote_addr: 192.168.1.250, remote_port: 57287

    Went on to this
    [2015-09-10 06:28:27,453] [63474 ] [19 ] [INFO ] - Media Server - Adding Rootdevice: 19845725-6a57-4681-a6c1-e9450e949646
    [2015-09-10 06:28:27,458] [63479 ] [19 ] [INFO ] - Media Server - Tracked Device: DeviceType: urn:schemas-upnp-org:device:MediaRenderer:1, FriendlyName: GREMLIN, Manufacturer: Microsoft Corporation, ManufacturerUrl: http://www.microsoft.com, ModelDescription: Windows Media Player Renderer, ModelName: Windows Media Player, ModelNumber: 12, ModelUrl: http://go.microsoft.com/fwlink/?LinkId=105927, ProductNumber: , Server: , Udn: uuid:19845725-6a57-4681-a6c1-e9450e949646, RemoteHost: fe80::2f:2c62:d7bc:37eb
    [2015-09-10 06:28:30,089] [66109 ] [20 ] [INFO ] - DetectProfile: Matching UPnP Fields
    [2015-09-10 06:28:30,089] [66109 ] [20 ] [WARN ] - DetectProfile: No matching Devices
    [2015-09-10 06:28:30,089] [66109 ] [20 ] [INFO ] - DetectProfile: No profile found => using DLNADefault, headers=Cache-Control: no-cache, Pragma: no-cache, User-Agent: Microsoft-Windows/6.1 UPnP/1.0 Windows-Media-Player/12.0.7601.18840 DLNADOC/1.50 (MS-DeviceCaps/1024), remote_addr: 192.168.1.70, remote_port: 57554

    And WMP on my portable caused
    [2015-09-10 06:28:40,089] [76110 ] [19 ] [DEBUG] - Exception: System.Exception: MPEG2TS video file does not match any supported DLNA profile
    at MediaPortal.Extensions.MediaServer.DLNA.DlnaProfiles.ResolveVideoProfile(VideoContainer container, VideoCodec videoCodec, AudioCodec audioCodec, H264Profile h264Profile, Single h264Level, Single fps, Int32 width, Int32 height, Int64 videoBitrate, Int64 audioBitrate, Timestamp timestampType) in m:\Programmieren\C#\MediaPortal 2\MediaPortal\Incubator\MediaServer\DLNA\DlnaProfiles.cs:line 986
    at MediaPortal.Extensions.MediaServer.DLNA.DlnaMediaItem.AssignDlnaMetadata(MetadataContainer info) in m:\Programmieren\C#\MediaPortal 2\MediaPortal\Incubator\MediaServer\DLNA\DlnaMediaItem.cs:line 415
    at MediaPortal.Extensions.MediaServer.DLNA.DlnaMediaItem..ctor(MediaItem item, EndPointSettings client) in m:\Programmieren\C#\MediaPortal 2\MediaPortal\Incubator\MediaServer\DLNA\DlnaMediaItem.cs:line 410
    at MediaPortal.Extensions.MediaServer.Profiles.EndPointSettings.GetDlnaItem(MediaItem item) in m:\Programmieren\C#\MediaPortal 2\MediaPortal\Incubator\MediaServer\Profiles\ProfileObjects.cs:line 411
    at MediaPortal.Extensions.MediaServer.Objects.MediaLibrary.MediaLibraryResource.Initialise() in m:\Programmieren\C#\MediaPortal 2\MediaPortal\Incubator\MediaServer\Objects\MediaLibrary\MediaLibraryResource.cs:line 51
    at MediaPortal.Extensions.MediaServer.Objects.MediaLibrary.MediaLibraryVideoItem..ctor(String baseKey, MediaItem item, EndPointSettings client) in m:\Programmieren\C#\MediaPortal 2\MediaPortal\Incubator\MediaServer\Objects\MediaLibrary\MediaLibraryVideoItem.cs:line 97
    at MediaPortal.Extensions.MediaServer.Objects.MediaLibrary.MediaLibraryHelper.InstansiateMediaLibraryObject(MediaItem item, String baseKey, BasicContainer parent, String title) in m:\Programmieren\C#\MediaPortal 2\MediaPortal\Incubator\MediaServer\Objects\MediaLibrary\MediaLibraryHelper.cs:line 108
    at MediaPortal.Extensions.MediaServer.UPnPContentDirectoryServiceImpl.<>c__DisplayClass17.<OnSearch>b__16(MediaItem item) in m:\Programmieren\C#\MediaPortal 2\MediaPortal\Incubator\MediaServer\UPnPContentDirectoryServiceImpl.cs:line 492
    at System.Linq.Enumerable.WhereSelectListIterator`2.MoveNext()
    at MediaPortal.Extensions.MediaServer.DIDL.GenericDidlMessageBuilder.BuildAll(String filter, IEnumerable objs) in m:\Programmieren\C#\MediaPortal 2\MediaPortal\Incubator\MediaServer\DIDL\GenericDidlMessageBuilder.cs:line 121
    at MediaPortal.Extensions.MediaServer.UPnPContentDirectoryServiceImpl.OnSearch(DvAction action, IList`1 inParams, IList`1& outParams, CallContext context) in m:\Programmieren\C#\MediaPortal 2\MediaPortal\Incubator\MediaServer\UPnPContentDirectoryServiceImpl.cs:line 493
    at UPnP.Infrastructure.Dv.DeviceTree.DvAction.FireActionInvoked(IList`1 inParams, IList`1& outParams, CallContext context)
    at UPnP.Infrastructure.Dv.DeviceTree.DvAction.InvokeAction(IList`1 inParameters, IList`1& outParameters, Boolean checkSignature, CallContext context)
    at UPnP.Infrastructure.Dv.SOAP.SOAPHandler.HandleRequest(DvService service, Stream messageStream, Encoding streamEncoding, Boolean subscriberSupportsUPnP11, CallContext context, String& result)
     

    breese

    Retired Team Member
  • Premium Supporter
  • July 11, 2011
    3,902
    770
    65
    Arlington Heights, Illinois
    Home Country
    United States of America United States of America
    How may copies of ffmpeg do we need and what is the version that should be used?

    MP2-Server\Plugins\VideoThumbnailer
    MP2-Server\Plugins\MediaServer
    MP2-Server\Plugins\MediaServer\fonts

    Also there are 2 copies of ffprobe with this

    MP2-Server\Plugins\MediaServer
    MP2-Server\Plugins\MediaServer\fonts
     

    FreakyJ

    Retired Team Member
  • Premium Supporter
  • July 25, 2010
    4,024
    1,420
    Home Country
    Germany Germany
    [2015-09-10 06:28:27,453] [63474 ] [19 ] [INFO ] - Media Server - Adding Rootdevice: 19845725-6a57-4681-a6c1-e9450e949646
    [2015-09-10 06:28:27,458] [63479 ] [19 ] [INFO ] - Media Server - Tracked Device: DeviceType: urn:schemas-upnp-org:device:MediaRenderer:1, FriendlyName: GREMLIN, Manufacturer: Microsoft Corporation, ManufacturerUrl: http://www.microsoft.com, ModelDescription: Windows Media Player Renderer, ModelName: Windows Media Player, ModelNumber: 12, ModelUrl: http://go.microsoft.com/fwlink/?LinkId=105927, ProductNumber: , Server: , Udn: uuid:19845725-6a57-4681-a6c1-e9450e949646, RemoteHost: fe80::2f:2c62:d7bc:37eb
    [2015-09-10 06:28:30,089] [66109 ] [20 ] [INFO ] - DetectProfile: Matching UPnP Fields
    [2015-09-10 06:28:30,089] [66109 ] [20 ] [WARN ] - DetectProfile: No matching Devices
    [2015-09-10 06:28:30,089] [66109 ] [20 ] [INFO ] - DetectProfile: No profile found => using DLNADefault, headers=Cache-Control: no-cache, Pragma: no-cache, User-Agent: Microsoft-Windows/6.1 UPnP/1.0 Windows-Media-Player/12.0.7601.18840 DLNADOC/1.50 (MS-DeviceCaps/1024), remote_addr: 192.168.1.70, remote_port: 57554
    This is no bug, everything is fine :) There is just no special profile for this client => a default profile is used.

    Exception: System.Exception: MPEG2TS video file does not match any supported DLNA profile

    I guess this just says that the used Adio/Video codec combination is not compatible with DLNA.

    So no real bugs, that's good :)
    Thanks for testing (y)
     

    breese

    Retired Team Member
  • Premium Supporter
  • July 11, 2011
    3,902
    770
    65
    Arlington Heights, Illinois
    Home Country
    United States of America United States of America
    All I did was try to browse for Recordings with Windows Media Player
    I never got a full list of files and I did not try to play anything

    EDIT: I tried it again and did a browse for Vidoes.
    Every video shows up 3 times in WMP
     

    Lehmden

    Retired Team Member
  • Premium Supporter
  • December 17, 2010
    12,554
    3,936
    Lehmden
    Home Country
    Germany Germany
    Hi.
    Tried the new binaries and triggered a re-import. First of all, my playcounts are deleted during the import so all is marked as "unwatched". Then there is no more fanart shown in GUI. And after import of about 5.000 Videos the MP2- Server stops working...
     

    henso

    Development Group
  • Team MediaPortal
  • February 16, 2012
    2,341
    829
    Home Country
    Denmark Denmark
    And after import of about 5.000 Videos the MP2- Server stops working...
    You have some System.OutOfMemoryException entries in your log. I guess there's a memory leak somewhere. We will have to test for that at some point.
     

    FreakyJ

    Retired Team Member
  • Premium Supporter
  • July 25, 2010
    4,024
    1,420
    Home Country
    Germany Germany
    I guess it is because I haven't throttled ffprobe. Will do that, just wanted to try without. I need morpheus to push my nuget package first and clean up the code. Than I will commit my changes :)
    Maybe we will also introduce a ffmpeg plugin. See the internal forum for details. :)
    I am not at home right now. So if you need more details I can deliver these tomorrow
     

    henso

    Development Group
  • Team MediaPortal
  • February 16, 2012
    2,341
    829
    Home Country
    Denmark Denmark
    Every video shows up 3 times in WMP
    WMP seems to do that different than other DLNA clients. Other DLNA clients show only what is available at the current level in the navigation hierarchy while WMP shows everything at once. That means if you for example have a movie in a Movie folder and a Shares folder it will show up twice. If I close WMP and open it again it seems that for me at least all the duplicates are gone.
     
    Last edited:

    henso

    Development Group
  • Team MediaPortal
  • February 16, 2012
    2,341
    829
    Home Country
    Denmark Denmark
    I can't confirm that. Do you have a stack trace?
    Here you go:
    MediaPortal.Common.dll!MediaPortal.Common.Services.Localization.StringManager.TryTranslate(string section, string name, out string translation, object[] parameters) Line 126
    MediaPortal.Common.dll!MediaPortal.Common.Services.Localization.StringManager.ToString(string label, object[] parameters) Line 148
    MediaServer.dll!MediaPortal.Extensions.MediaServer.MediaServerUpnPDeviceInformation.GetManufacturer(System.Globalization.CultureInfo culture) Line 120
    MediaServer.dll!MediaPortal.Extensions.MediaServer.MediaServerUpnPDeviceInformation.MediaServerUpnPDeviceInformation() Line 66
    MediaServer.dll!MediaPortal.Extensions.MediaServer.Profiles.UpnpDeviceInformation.UpnpDeviceInformation() Line 254
    MediaServer.dll!MediaPortal.Extensions.MediaServer.Profiles.EndPointProfile.EndPointProfile() Line 465
    MediaServer.dll!MediaPortal.Extensions.MediaServer.Profiles.ProfileManager.LoadProfiles() Line 235
    MediaServer.dll!MediaPortal.Extensions.MediaServer.MediaServerPlugin.Activated(MediaPortal.Common.PluginManager.PluginRuntime pluginRuntime) Line 97
    MediaPortal.Common.dll!MediaPortal.Common.Services.PluginManager.PluginManager.TryActivate(MediaPortal.Common.PluginManager.PluginRuntime plugin, System.Collections.Generic.HashSet<System.Guid> pluginsPendingActivation) Line 1017
    MediaPortal.Common.dll!MediaPortal.Common.Services.PluginManager.PluginManager.TryActivate(MediaPortal.Common.PluginManager.PluginRuntime plugin) Line 940
    MediaPortal.Common.dll!MediaPortal.Common.Services.PluginManager.PluginManager.TryEnable(MediaPortal.Common.PluginManager.PluginRuntime plugin, bool doAutoActivate) Line 790
    MediaPortal.Common.dll!MediaPortal.Common.Services.PluginManager.PluginManager.Startup(bool maintenanceMode) Line 158
    MP2-Server.exe!MediaPortal.Server.ApplicationLauncher.Start() Line 126
    MP2-Server.exe!MediaPortal.Server.ApplicationLauncher.RunAsConsole() Line 205
    MP2-Server.exe!MediaPortal.Server.ApplicationLauncher.Main(string[] args) Line 68
     

    Users who are viewing this thread

    Top Bottom