Jump to content

PowerDVD DLNA Server Issues


Smaky

Recommended Posts

Smaky

I´ll love to do it... I just do not have the knowledge. Where can I start? What tootls would let me understand what the client support and where the server is sending something the client does not understand?

 

For starters... what needs to tbe added to the profile so the server will associate it to the client?

Edited by Smaky
Link to comment
Share on other sites

Smaky

I made some progress here. After enabling Access Control in PowerDVD I was able to see it from the Web Interface:

 

537d0a113f637_PowerDVD_Settings.png

 

537d0a239a704_PlayTo.png

 

Using a Custom Profile (which is actually just a rename of the Samsung TV one) I finally was able to successfully "Play To" PowerDVD:

 

537d0b4969161_DirectStreaming.png

 

537d0a9c77a1d_PowerDVD_PlayTo_FromWebInt

 

However, when I try to play from within PowerDVD by accessing the media exposed by Media Browser Server I am still getting the media error. Any Ideas?

 

CyberLink PowerDVD.xml

  • Like 1
Link to comment
Share on other sites

Smaky

Still having issues... whenever I click on a movie within PowerDVD I am getting the following entries in the log:

2014-05-25 00:17:28.0489 Debug - HttpServer: HTTP HEAD http://192.168.1.20:8096/mediabrowser/videos/0471f556c1b54a7ebbb7b4620b11d674/stream.ts?Params=;test;0471f556c1b54a7ebbb7b4620b11d674;false;h264;aac;;;;128000;;;;;0;
2014-05-2500:17:28.0489 Debug - Dlna: No matching device profile found. The default will be used. 
2014-05-25 00:17:28.0489 Debug - HttpServer: HTTP Response 200 to 192.168.1.20:58440. Response time: 11.9997 ms
Url: http://192.168.1.20:8096/mediabrowser/videos/0471f556c1b54a7ebbb7b4620b11d674/stream.ts?Params=;test;0471f556c1b54a7ebbb7b4620b11d674;false;h264;aac;;;;128000;;;;;0;
2014-05-25 00:17:28.0719 Debug - HttpServer: HTTP GET http://192.168.1.20:8096/mediabrowser/videos/0471f556c1b54a7ebbb7b4620b11d674/stream.ts?Params=;test;0471f556c1b54a7ebbb7b4620b11d674;false;h264;aac;;;;128000;;;;;0;
2014-05-25 00:17:28.0799 Debug - Dlna: No matching device profile found. The default will be used. 
2014-05-25 00:17:28.0799 Info - App: C:\Users\Fedro\AppData\Roaming\MediaBrowser-Server\ffmpeg\20140506\ffmpeg.exe -loglevel debug -fflags genpts -i file:"\\NG-CasaBonita\Media\Movies\A\About Cherry (2012)\About Cherry (2012).mkv" -map 0:0 -map 0:1 -map -0:s -vcodec copy -bsf h264_mp4toannexb -map_metadata -1 -threads 2 -acodec aac -strict experimental -ab 128000 -af "adelay=1,aresample=async=1" "C:\Users\Fedro\AppData\Roaming\MediaBrowser-Server\transcoding-temp\06dbd1d3-2a84-ce91-f01d-4c7bed26772b.ts"
2014-05-25 00:17:28.7840 Info - App: HttpClientManager POST: http://192.168.190.1:50003/MediaRenderer_AVTransport/control
2014-05-25 00:17:28.7840 Info - App: HttpClientManager POST: http://192.168.190.1:50003/MediaRenderer_AVTransport/control
2014-05-25 00:17:28.8500 Error - App: Error streaming media
The specified network name is no longer available
System.Net.HttpListenerException
  at System.Net.HttpResponseStream.EndWrite(IAsyncResult asyncResult)
  at System.IO.Stream.<BeginEndWriteAsync>b__17(Stream stream, IAsyncResult asyncResult)
  at System.Threading.Tasks.TaskFactory`1.FromAsyncTrimPromise`1.Complete(TInstance thisRef, Func`3 endMethod, IAsyncResult asyncResult, Boolean requiresSynchronization)
--- End of stack trace from previous location where exception was thrown ---
  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
  at System.IO.Stream.<CopyToAsyncInternal>d__2.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
  at MediaBrowser.Api.Playback.Progressive.ProgressiveStreamWriter.<StreamFile>d__3.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
  at MediaBrowser.Api.Playback.Progressive.ProgressiveStreamWriter.<WriteToAsync>d__0.MoveNext()

2014-05-25 00:17:28.8500 Debug - HttpServer: HTTP Response 500 to 192.168.1.20:58441. Response time: 779.0411 ms
Url: http://192.168.1.20:8096/mediabrowser/videos/0471f556c1b54a7ebbb7b4620b11d674/stream.ts?Params=;test;0471f556c1b54a7ebbb7b4620b11d674;false;h264;aac;;;;128000;;;;;0;
2014-05-25 00:17:29.2680 Info - App: HttpClientManager POST: http://192.168.190.1:50003/MediaRenderer_RenderingControl/control
2014-05-25 00:17:29.2680 Info - App: HttpClientManager POST: http://192.168.190.1:50003/MediaRenderer_RenderingControl/control
2014-05-25 00:17:29.7850 Info - App: HttpClientManager POST: http://192.168.190.1:50003/MediaRenderer_AVTransport/control
2014-05-25 00:17:29.7850 Info - App: HttpClientManager POST: http://192.168.190.1:50003/MediaRenderer_AVTransport/control
2014-05-25 00:17:29.8630 Info - App: Killing ffmpeg process for C:\Users\Fedro\AppData\Roaming\MediaBrowser-Server\transcoding-temp\06dbd1d3-2a84-ce91-f01d-4c7bed26772b.ts
2014-05-25 00:17:29.8630 Info - App: FFMpeg exited with code -1
2014-05-25 00:17:29.8630 Info - App: Deleting partial stream file(s) C:\Users\Fedro\AppData\Roaming\MediaBrowser-Server\transcoding-temp\06dbd1d3-2a84-ce91-f01d-4c7bed26772b.ts
2014-05-25 00:17:29.8630 Info - App: FFMpeg exited with an error.
2014-05-25 00:17:30.6171 Info - App: HttpClientManager POST: http://192.168.1.55:1400/MediaRenderer/AVTransport/Control
2014-05-25 00:17:30.7861 Info - App: HttpClientManager POST: http://192.168.190.1:50003/MediaRenderer_AVTransport/control
2014-05-25 00:17:30.7861 Info - App: HttpClientManager POST: http://192.168.190.1:50003/MediaRenderer_AVTransport/control
2014-05-25 00:17:31.7871 Info - App: HttpClientManager POST: http://192.168.190.1:50003/MediaRenderer_AVTransport/control
2014-05-25 00:17:31.7871 Info - App: HttpClientManager POST: http://192.168.190.1:50003/MediaRenderer_AVTransport/control
From what i can infer from this is that MB Server is trying to transcode (although this is a mkv file and I would have expected it to be directly streamed).
 
Edit: With latest dev release Play To is getting a 500 Server error and no longer works :(
Edited by Smaky
Link to comment
Share on other sites

  • 3 weeks later...
Smaky

With the attached profile I am getting better results. Play To for mkv´s, avi´s, M4V´s and other formats are direct streamed to Power DVD. However, I´m having issues with MPG formated videos. Play To starts but an error is raised in PowerDVD:

 

53979fbe1d7af_PowerDVDError.png

 

On the log I found some server side errors. 

 

2014-06-10 19:12:22.2994 Error - ListenerResponse: Could not WriteTextToResponse: Bytes to be written to the stream exceed the Content-Length bytes size specified.
Bytes to be written to the stream exceed the Content-Length bytes size specified.
System.Net.ProtocolViolationException
  at System.Net.HttpResponseStream.Write(Byte[] buffer, Int32 offset, Int32 size)
  at ServiceStack.Host.HttpListener.ListenerResponse.Write(String text)


2014-06-10 19:12:22.3124 Error - HttpServer: ProcessRequest failure
Bytes to be written to the stream exceed the Content-Length bytes size specified.
System.Net.ProtocolViolationException
  at System.Net.HttpResponseStream.Write(Byte[] buffer, Int32 offset, Int32 size)
  at ServiceStack.Host.HttpListener.ListenerResponse.Write(String text)
  at ServiceStack.Host.Handlers.NotFoundHttpHandler.<>c__DisplayClass1.<ProcessRequest>b__0(IResponse r)
  at ServiceStack.HttpExtensions.EndHttpHandlerRequest(IResponse httpRes, Boolean skipHeaders, Boolean skipClose, Action`1 afterBody)
  at ServiceStack.Host.Handlers.NotFoundHttpHandler.ProcessRequest(IRequest request, IResponse response, String operationName)
  at ServiceStack.Host.Handlers.HttpAsyncTaskHandler.<>c__DisplayClass1.<CreateProcessRequestTask>b__0()
  at System.Threading.Tasks.Task.InnerInvoke()
  at System.Threading.Tasks.Task.Execute()
--- End of stack trace from previous location where exception was thrown ---
  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
  at MediaBrowser.Server.Implementations.HttpServer.HttpListenerHost.<>c__DisplayClasse.<<ListenerCallback>b__d>d__10.MoveNext()


2014-06-10 19:12:22.3124 Error - HttpServer: Error this.ProcessRequest(context)(Exception while writing error to the response)
Cannot access a disposed object.
Object name: 'System.Net.HttpListenerRequest'.
System.ObjectDisposedException
  at System.Net.HttpListenerRequest.CheckDisposed()
  at System.Net.HttpListenerRequest.GetKnownHeader(HttpRequestHeader header)
  at ServiceStack.Host.HttpListener.ListenerRequest.IsContentType(String ct, Boolean starts_with)
  at ServiceStack.Host.HttpListener.ListenerRequest.get_Form()
  at ServiceStack.Host.HttpListener.ListenerRequest.get_FormData()
  at ServiceStack.Host.HttpListener.ListenerRequest.get_HttpMethod()
  at ServiceStack.Host.HttpListener.ListenerRequest.get_Verb()
  at ServiceStack.HttpRequestExtensions.GetAttributes(IRequest request)
  at MediaBrowser.Server.Implementations.HttpServer.HttpListenerHost.GetRequest(HttpListenerContext httpContext, String operationName)
  at MediaBrowser.Server.Implementations.HttpServer.HttpListenerHost.HandleError(Exception ex, HttpListenerContext context, ILogger logger)

 

See attached log for the whole thing.

server-63538024338 - Part 1.txt

CyberLink PowerDVD.xml

Edited by Smaky
Link to comment
Share on other sites

  • 2 weeks later...
  • 1 month later...
Smaky

Continuing working on this I found a new issue. When playing MKVs with AC3 audio I am able to play files where AC3 is 5.1 channel. However AC3 2 channel audio tracks fail with format not supported error. 

 

I noticed that when playing 2 Channel AC3 tracks the server would try transcode instead of direct playing the file. How shoudl I modify the profile to tell media server to direct play both 5.1 and 2 Channel AC3 audio (same profile as previous post)?

Link to comment
Share on other sites

Smaky

AC3 does work. I found that if the audio track is 5.1 Channel AC3 it directplays to PowerDVD; howerver, if it is 2 Channel stereo it will try to transcode and fail playin in PowerDVD. So the issue is two-fold:

a) Why MediaBrowser is transcoding when the audio track is not 5.1 Channel

B) Why transcoding fails. It seems to me that whenever transcoding is being used, PowerDVD will fail to playback media.

Link to comment
Share on other sites

Smaky

With latest dev buld (Versión 3.0.5325.580) I found PowerDVD is no longer working with MediaBrowser.It is not listed among PlayTo devices and when browsing from PowerDVD it shows as if there were no media in the server... :(

 

53da2dfd416aa_20140731_64557.png

 

This is how the server sees PowerDVD... It used to identify it by name:

 

53da2f2107d86_20140731_65457.png

Edited by Smaky
Link to comment
Share on other sites

Ghostm

Hmmm i feel your pain, but that is strange, before this version i was getting the same thing on nearly every device i tried since the latest beta was released, but this version 3.0.5325.580 i can now see the content fine again. 

 

 

Is it just powerdvd for you? Or are other dlna clients affected when you try to browse mb3? Also maybe post your log perhaps something will be shown.

Edited by Ghostm
Link to comment
Share on other sites

Smaky

Well this might be a general thing. My Samsung TVs do not see the server and my OPENELEC (RaspberryPi XMBC client) crashes when trying to access the server.

 

After updating to Versión 3.0.5325.22174 and waited for some minutes Media Browser finally appeard in PowerDVD and content were there... unfortunately I cannot still play anything by browsing the server from PowerDVD as I continue to get format not supported errors.

Edited by Smaky
Link to comment
Share on other sites

Ghostm

Well this might be a general thing. My Samsung TVs do not see the server and my OPENELEC (RaspberryPi XMBC client) crashes when trying to access the server.

 

After updating to Versión 3.0.5325.22174 and waited for some minutes Media Browser finally appeard in PowerDVD and content were there... unfortunately I cannot still play anything by browsing the server from PowerDVD as I continue to get format not supported errors.

 

Is it a profile issue? One of my custom profiles is not working after the latest update either. The log shows its not really calling up the profile like it did before. 

Link to comment
Share on other sites

Smaky

After waiting for some time and disable/enable DNLA capabilities in PowerDVD I finally got the PlayTo to see it again. However I am unable to play as it used to be.

 

Log with details on the specific error attached. Seems to me that the profile is being used.

 

Exceprt...

2014-07-31 20:23:49.5264 Debug - Dlna: PowerDVD14 - Pakal - Received PlayRequest: PlayNow
2014-07-31 20:23:49.5264 Debug - Dlna: Found matching device profile: CyberLink PowerDVD
2014-07-31 20:23:49.5264 Debug - Dlna: PowerDVD14 - Pakal - Playlist created
2014-07-31 20:23:49.5264 Debug - Dlna: PowerDVD14 - Pakal - Playing 1 items
...

And after that...

2014-07-31 20:23:49.5514 Debug - HttpServer: HTTP Response 200 to 169.254.66.24. Response time: 10.0003 ms.
	Url: http://169.254.66.24:8096/mediabrowser/videos/d47de05df2bba8fec7d6d6dbf228e4b8/stream.ts?Params=4b521de55f5d48325a8a6b03684dc4f9;uuid:4D9BEBDC-8788-1491-A405-2C3E0B73633C;d47de05df2bba8fec7d6d6dbf228e4b8;false;h264;aac;1;3;;320000;6;;;;0;
2014-07-31 20:23:49.5514 Error - App: Error getting response from http://169.254.66.24:50003/MediaRenderer_AVTransport/control
	The remote server returned an error: (500) Internal Server Error.

Looking closely I noticed IP address 169.254.66.24 which does not seems right to me at all. This is not an IP that belongs to my local subnet.

DNLA Error.txt

Edited by Smaky
Link to comment
Share on other sites

Ghostm

I dont know if i can help you (likely not) but i cant seem to download the log, maybe regular users cant?

 

If you would want to post it on pastebin or something and post the url i could take a look.

Edited by Ghostm
Link to comment
Share on other sites

Ghostm

Im finding some instances of your profile not being found, unless your trying to play something else in this log

 

Dlna: No matching device profile found. The default will be used. User-agent: Linux UPnP/1.0 Sonos/26.1-76230 (ZP90).

 

Dlna: No matching device profile found. The default will be used. User-agent: HerculesC.

 

Dlna: No matching device profile found. The default will be used. User-agent: WINDOWS DLNADOC/1.50 UPnP/1.0 INTEL_NMPR/2.0 Intel_MicroStack/1.0.1497.

 

Dlna: No matching device profile found. The default will be used. User-agent: Microsoft-Windows/6.1 UPnP/1.0 Windows-Media-Player-DMS/12.0.7601.17514 DLNADOC/1.50.

 

I assume the sonos one is actually sonos and you actually have a sonos? Its finding your samsung tv profile that comes with mb3 server but thats about all i can see. You have alot of dlna devices so im just trying to make sure if one pertains to powerdvd. 

 

As luke mentioned its hard to decipher without using it ourselves, my yamaha avr for instance returns two responses, one for browsing which is a line for me like KnOS/3.2 bridgeCo-DMP/3.0 DLNADOC/1.50 INTEL_NMPR/2.0, and one for actually playing music which has an entry that refers to winamp, i dont understand it but thats what it reports. Im unsure if this is your issue with your profile but it might help turning off all other dlna devices and then finding out what it reports in the log when you see no device profile found, you then need to add those entries to the http headers. Once i added the Knos entry to the http headers, and the winamp one, it was always showing device profile found in the log and everything would work.

 

Thats what i did anyway, I apologize if its not much help. 
 

Edited by Ghostm
Link to comment
Share on other sites

Ghostm

After waiting for some time and disable/enable DNLA capabilities in PowerDVD I finally got the PlayTo to see it again. However I am unable to play as it used to be.

 

Log with details on the specific error attached. Seems to me that the profile is being used.

 

Exceprt...

2014-07-31 20:23:49.5264 Debug - Dlna: PowerDVD14 - Pakal - Received PlayRequest: PlayNow
2014-07-31 20:23:49.5264 Debug - Dlna: Found matching device profile: CyberLink PowerDVD
2014-07-31 20:23:49.5264 Debug - Dlna: PowerDVD14 - Pakal - Playlist created
2014-07-31 20:23:49.5264 Debug - Dlna: PowerDVD14 - Pakal - Playing 1 items
...

And after that...

2014-07-31 20:23:49.5514 Debug - HttpServer: HTTP Response 200 to 169.254.66.24. Response time: 10.0003 ms.
	Url: http://169.254.66.24:8096/mediabrowser/videos/d47de05df2bba8fec7d6d6dbf228e4b8/stream.ts?Params=4b521de55f5d48325a8a6b03684dc4f9;uuid:4D9BEBDC-8788-1491-A405-2C3E0B73633C;d47de05df2bba8fec7d6d6dbf228e4b8;false;h264;aac;1;3;;320000;6;;;;0;
2014-07-31 20:23:49.5514 Error - App: Error getting response from http://169.254.66.24:50003/MediaRenderer_AVTransport/control
	The remote server returned an error: (500) Internal Server Error.

Looking closely I noticed IP address 169.254.66.24 which does not seems right to me at all. This is not an IP that belongs to my local subnet.

 

Just looking at this post that does look like your powerdvd profile although i dont know if that refers to play to or the dlna server. For instance in the past it found my play to profile for my avr but not for the server. I would often see a similar entry in the log and assumed it was finding my profile, but it was refering to play to over dlna not to the dlna server. Also i could not find this profile being called up in your paste bin post.

 

I do recognize that (500) Internal Server Error, i was getting that awhile back and theirs not much i can help with if thats an issue, i was getting that awhile back on my avr and luke fixed it in late may with an update, after that i could then start building my profiles. 

Edited by Ghostm
Link to comment
Share on other sites

Ghostm

It may go beyond just a profile issue, i also notice

 

2014-07-31 22:01:08.3160 Error - Dlna: Error updating device volume info for PowerDVD14 - Pakal

    Unable to connect to the remote server
    System.Net.WebException

 

Are you able to see any mb3 dlna server on powerdvd at this point?

 

As for your profile

 

Dlna: No matching device profile found. The default will be used. User-agent: HerculesC

 

 i would add under your powerdvd profile in the http headers for Name (User-agent) and for value (HerculesC) and then substring. Without brackets of course.

  • Like 1
Link to comment
Share on other sites

Smaky

Following your advice I added the following header and now it is working very well when playing from PowerDVD by Browsing MB Server:

<Headers>
   <HttpHeaderInfo name="User-Agent" value="WINDOWS DLNADOC/1.50 UPnP/1.0 INTEL_NMPR/2.0 Intel_MicroStack/1.0.1497" match="Substring" />
</Headers>

I´ll try with the HerculesC to see if that fixed the PlayTo side.

Link to comment
Share on other sites

Smaky

Sure, I will until it is fully functional. It is now working from PowerDVD side, but PlayTo is not showing up... 

 

I added these headers to the profile:

<Headers>
   <HttpHeaderInfo name="User-Agent" value="WINDOWS DLNADOC/1.50 UPnP/1.0 INTEL_NMPR/2.0 Intel_MicroStack/1.0.1497" match="Substring" />
   <HttpHeaderInfo name="User-Agent" value="WINDOWS, DLNADOC/1.50 UPnP/1.0, Intel MicroStack/1.0.1497" match="Substring" />
   <HttpHeaderInfo name="User-Agent" value="HerculesC" match="Substring" />
</Headers>

all entries are pairing to the PowerDVD profile... but PlayTo does not shows it as a remote client nor it is shown in the server Dashboard.

 

53db0d6689ac4_20140731_224157.png

 

Edit: As a side note, I am noticing this is working because as MB Server is pairing to the correct profile, it now let me play most of my files. However, as soon as transcoding kicks in (as in the case where I have an AC3 2 Channel audio track) it fails. Not sure what is going on there.

Edited by Smaky
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...