Odd profile-related problem with WD TV Live

Posted:
Thu Apr 12, 2012 11:42 am
by n3mmr
I set Audio as "Display Contents Only", and then my WD TV Live couldn't see anything but the audio contents (Audio sub categories, I suppose), irrespective of if I selected "Video" or "Music" on the WD TV Live menues.
Forcing the WD TV Live to be served using the Sony BD profile restored matters.
What part of the profile could cause this???
Re: Odd profile-related problem with WD TV Live

Posted:
Thu Apr 12, 2012 11:47 am
by zip
should not be profile related. Unless it's a cache problem (as changing the profile will remove the cache). Try switching back to WDTV profile.
Re: Odd profile-related problem with WD TV Live

Posted:
Thu Apr 12, 2012 12:45 pm
by n3mmr
zip wrote:should not be profile related. Unless it's a cache problem (as changing the profile will remove the cache). Try switching back to WDTV profile.
No, it IS profile related!
For two tested Sony profiles, things work OK, but Generic or WDTVLIVE or Samsung TV/Player (C or D model) has the fault.
If, using one of those three profiles, I switch Presentation for Audio to Display Contents Only, only the Audio Contents menu will be displayed for both Video and Audio selections in the WD TV Live Main Menu.
What I would have considered the "right" way would be to display the audio content, and "Video" as the last menu line. But there's no line "video".
I switched back and forth, both between the two audio presentation settings and the Sony vs the other tested profiles.
In all cases, the fault gets switched on and off by the change
Re: Odd profile-related problem with WD TV Live

Posted:
Thu Apr 12, 2012 6:05 pm
by zip
you could capture the packets sent when you browse to the root menu using the 2 different profiles to see the difference.
Re: Odd profile-related problem with WD TV Live

Posted:
Fri Apr 13, 2012 10:20 am
by n3mmr
zip wrote:you could capture the packets sent when you browse to the root menu using the 2 different profiles to see the difference.
Profiles with the WMP Device description cheat work, all others have the problem.
Will get back with logs, when I get back from a concert trip (going to hear all Shostakovich String Quartets in numeric order in 5 conseq concerts in 3 days.... Phew!), but in the meantime, maybe someone else with a WD TV Live could test, and maybe people with other renderers.
Re: Odd profile-related problem with WD TV Live

Posted:
Wed Apr 18, 2012 11:12 am
by n3mmr
n3mmr wrote:zip wrote:you could capture the packets sent when you browse to the root menu using the 2 different profiles to see the difference.
Profiles with the WMP Device description cheat work, all others have the problem.
Will get back with logs, when I get back from a concert trip (going to hear all Shostakovich String Quartets in numeric order in 5 conseq concerts in 3 days.... Phew!), but in the meantime, maybe someone else with a WD TV Live could test, and maybe people with other renderers.
I had hoped for a comment on the above..
Re: Odd profile-related problem with WD TV Live

Posted:
Thu Apr 19, 2012 12:20 am
by cc2099
I have a similar setup and I've observed this same behavior where the WDTV (HD) Live only shows <folder_name> [Audio/Folders] when using the Generic DLNA profile. If I use the Sony BD Player / SMP Profile, I see <folder_name> [Video/Folders] - ie. it works as expected. If I use the WDTV Live profile, I see a brief message saying something like "There is no media in the current folder".
I don't think it's a cache related issue since I can edit the profiles.xml file, remove Profile ID 14, make a copy of the Sony BD profile, give the copy Profile ID 14 and name it "WDTV Live" - I can then see [Video/Folders].
Re: Odd profile-related problem with WD TV Live

Posted:
Thu Apr 19, 2012 2:55 pm
by n3mmr
cc2099 wrote:I have a similar setup and I've observed this same behavior where the WDTV (HD) Live only shows <folder_name> [Audio/Folders] when using the Generic DLNA profile. If I use the Sony BD Player / SMP Profile, I see <folder_name> [Video/Folders] - ie. it works as expected. If I use the WDTV Live profile, I see a brief message saying something like "There is no media in the current folder".
I don't think it's a cache related issue since I can edit the profiles.xml file, remove Profile ID 14, make a copy of the Sony BD profile, give the copy Profile ID 14 and name it "WDTV Live" - I can then see [Video/Folders].
Is this a problem on any other device???
Re: Odd profile-related problem with WD TV Live

Posted:
Fri Apr 20, 2012 1:11 pm
by zip
post
detailed log of when browsing the empty folder via the WDTV profile.
Re: Odd profile-related problem with WD TV Live

Posted:
Tue Apr 24, 2012 12:16 am
by cc2099
I've observed the same behavior on the software renderer 8player lite.
I think the behavior with the WDTV was caused might have been a result of the way the default profiles.xml file was parsed or maybe there were some control characters that couldn't be seen in the file. The problem I had with the WDTV went away once I had edited the profiles.xml file, deleted the WDTV profile and created a new profile based on the Sony BD profile. Here's the profile I'm using:
- Code:
<Profile id="14" name="WDTV Live" extendsProfileId="1">
<Detection>
<UPnPSearch>
<FriendlyName>WDTV Live</FriendlyName>
<Manufacturer>Western Digital</Manufacturer>
</UPnPSearch>
<HttpHeaders>
<X-AV-Client-Info>*WDTV*</X-AV-Client-Info>
</HttpHeaders>
</Detection>
<DeviceDescription>
<!-- act as WMP so that the TV doesn't show root categories -->
<ModelName>Windows Media Player Sharing</ModelName>
<ModelNumber>3.0</ModelNumber>
<Manufacturer>Microsoft Corporation</Manufacturer>
</DeviceDescription>
<ContentDirectoryMessageBuilder>org.serviio.upnp.service.contentdirectory.SonyDLNAMessageBuilder</ContentDirectoryMessageBuilder>
<ContentDirectoryDefinitionFilter>org.serviio.upnp.service.contentdirectory.definition.WMPContentDirectoryDefinitionFilter</ContentDirectoryDefinitionFilter>
<SubtitlesMimeType>text/srt</SubtitlesMimeType>
<Transcoding>
<Video targetContainer="mpegts">
<Matches container="wtv" />
</Video>
<Video targetContainer="mpeg" targetVCodec="mpeg2video" targetACodec="ac3" aBitrate="384">
<Matches container="flv" />
<Matches container="matroska" vCodec="vp8" />
</Video>
</Transcoding>
</Profile>
Re: Odd profile-related problem with WD TV Live

Posted:
Tue Apr 24, 2012 5:20 pm
by zip
It's probably 'fixed' by these two lines:
- Code:
<ContentDirectoryMessageBuilder>org.serviio.upnp.service.contentdirectory.SonyDLNAMessageBuilder</ContentDirectoryMessageBuilder>
<ContentDirectoryDefinitionFilter>org.serviio.upnp.service.contentdirectory.definition.WMPContentDirectoryDefinitionFilter</ContentDirectoryDefinitionFilter>
I'll create a ticket to look at this later, but I need someone to post
detailed log of browsing to the folder with the original profile.
Re: Odd profile-related problem with WD TV Live

Posted:
Mon Apr 30, 2012 2:03 am
by cc2099
I'm not 100% sure if this is what you need or not. If it's not, please tell me what debugging parameters I need to set. This is what happens after browsing, using the original profiles.xml file:
2012-04-30 01:45:28,861 DEBUG [WebServer] Incoming connection from /192.168.100.92:60407
2012-04-30 01:45:28,874 DEBUG [ServiceControlRequestHandler] ServiceControl request received for action '"urn:schemas-upnp-org:service:ContentDirectory:1#Browse"' from 192.168.100.92:
2012-04-30 01:45:28,874 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 192.168.100.92
2012-04-30 01:45:28,880 DEBUG [ContentDirectory] Browse() called for renderer WD TV Live (profile 1) with parameters: objectID = 0, browseFlag = BrowseDirectChildren, filter = *, startIndex = 0, count = 64, sortCriteria =
2012-04-30 01:45:28,882 DEBUG [RepositoryDAOImpl] Retrieving list of Repositories for AUDIO (from=0, count=64)
2012-04-30 01:45:28,899 DEBUG [FolderDAOImpl] Getting number of AUDIO sub-folders and media items in folder 'root'
2012-04-30 01:45:28,976 DEBUG [RepositoryDAOImpl] Retrieving number of repositories for AUDIO
2012-04-30 01:45:28,985 DEBUG [RepositoryDAOImpl] Retrieving list of Repositories for IMAGE (from=0, count=63)
2012-04-30 01:45:28,996 DEBUG [FolderDAOImpl] Getting number of IMAGE sub-folders and media items in folder 'root'
2012-04-30 01:45:29,032 DEBUG [RepositoryDAOImpl] Retrieving number of repositories for IMAGE
2012-04-30 01:45:29,038 DEBUG [RepositoryDAOImpl] Retrieving list of Repositories for VIDEO (from=0, count=63)
2012-04-30 01:45:29,042 DEBUG [FolderDAOImpl] Getting number of VIDEO sub-folders and media items in folder 'root'
2012-04-30 01:45:29,082 DEBUG [RepositoryDAOImpl] Retrieving number of repositories for VIDEO
2012-04-30 01:45:29,091 DEBUG [ServiceControlRequestHandler] Returning OK SOAP message
And this is what happens when manually forcing Serviio to use the original WDTV profile:
2012-04-30 01:54:33,830 DEBUG [WebServer] Incoming connection from /192.168.100.92:62710
2012-04-30 01:54:33,834 DEBUG [ServiceControlRequestHandler] ServiceControl request received for action '"urn:schemas-upnp-org:service:ContentDirectory:1#Browse"' from 192.168.100.92:
2012-04-30 01:54:33,835 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 192.168.100.92
2012-04-30 01:54:33,839 DEBUG [ContentDirectory] Browse() called for renderer WD TV Live (profile 14) with parameters: objectID = 0, browseFlag = BrowseDirectChildren, filter = *, startIndex = 0, count = 64, sortCriteria =
2012-04-30 01:54:33,840 DEBUG [RepositoryDAOImpl] Retrieving list of Repositories for AUDIO (from=0, count=64)
2012-04-30 01:54:33,857 DEBUG [FolderDAOImpl] Getting number of AUDIO sub-folders and media items in folder 'root'
2012-04-30 01:54:33,935 DEBUG [RepositoryDAOImpl] Retrieving number of repositories for AUDIO
2012-04-30 01:54:33,938 DEBUG [RepositoryDAOImpl] Retrieving list of Repositories for IMAGE (from=0, count=63)
2012-04-30 01:54:33,947 DEBUG [FolderDAOImpl] Getting number of IMAGE sub-folders and media items in folder 'root'
2012-04-30 01:54:33,985 DEBUG [RepositoryDAOImpl] Retrieving number of repositories for IMAGE
2012-04-30 01:54:33,987 DEBUG [RepositoryDAOImpl] Retrieving list of Repositories for VIDEO (from=0, count=63)
2012-04-30 01:54:33,989 DEBUG [FolderDAOImpl] Getting number of VIDEO sub-folders and media items in folder 'root'
2012-04-30 01:54:34,026 DEBUG [RepositoryDAOImpl] Retrieving number of repositories for VIDEO
2012-04-30 01:54:34,036 DEBUG [ServiceControlRequestHandler] Returning OK SOAP message
Finally, here's what happens with the WDTV Live profile that I'm currently using:
2012-04-30 02:01:14,675 DEBUG [WebServer] Incoming connection from /192.168.100.92:60371
2012-04-30 02:01:14,686 DEBUG [ServiceControlRequestHandler] ServiceControl request received for action '"urn:schemas-upnp-org:service:ContentDirectory:1#Browse"' from 192.168.100.92:
2012-04-30 02:01:14,686 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 192.168.100.92
2012-04-30 02:01:14,693 DEBUG [ContentDirectory] Browse() called for renderer WD TV Live (profile 14) with parameters: objectID = 2, browseFlag = BrowseDirectChildren, filter = *, startIndex = 0, count = 64, sortCriteria =
2012-04-30 02:01:14,695 DEBUG [RepositoryDAOImpl] Retrieving list of Repositories for VIDEO (from=0, count=64)
2012-04-30 02:01:14,715 DEBUG [FolderDAOImpl] Getting number of VIDEO sub-folders and media items in folder 'root'
2012-04-30 02:01:14,769 DEBUG [RepositoryDAOImpl] Retrieving number of repositories for VIDEO
2012-04-30 02:01:14,777 DEBUG [ServiceControlRequestHandler] Returning OK SOAP message