Page 7 of 21

Re: PS4 now support DLNA!

Posted: Wed Jul 01, 2015 5:53 am
by AlGrenadine
I've tested many files and most play ok here but i always get a/v sync issues with every file.
Am i the only one with this problem ?

Re: PS4 now support DLNA!

Posted: Thu Jul 02, 2015 7:48 pm
by SubJunk
New version to test: http://www.spirton.com/uploads/UMS/UMS-87d0375.exe
Logs would be very helpful, and if you want files to test, here's a pack: http://sourceforge.net/projects/unimedi ... z/download

Re: PS4 now support DLNA!

Posted: Fri Jul 03, 2015 7:18 am
by creighton
SubJunk wrote:New version to test
I'm sure this will take some time to comb through.

87d037531-my_files

Code: Select all

flv1 - played outright! Manual FFmpeg worked as well.
transcode1 - did not play outright, nor with manual FFmpeg
webm - played audio outright, but no video. the PS4 showed a loading symbol while audio played, never seen this before (same with manual FFmpeg)
87d037531-video_test_suite

Code: Select all

AVI:
All only played audio (except the MP2 one, which didn't play at all). No video was displayed, instead the PS4 continued to show the loading symbol while playing the audio.

MKV (H264):
Most of these streamed fine. Those that needed transcoding, failed (DTS, FLAC, MP2, Opus, Vorbis)

MKV (H265):
Didn't test every single one, but the ones I did, did not play.

MKV (XviD):
Didn't test every single one, but the ones I did, did not play.

MP4:
Lots of issues with these, including some things that probably shouldn't
MP4-H264-AACHE-2ch - UMS thought it needed to trancode this, it didn't ("no encoding" worked)
MP4-H264-AACHE-6ch - transcoding failed ("no encoding" played the video very fast, and I didn't hear any audio)
MP4-H264-MP2-2ch - transcoding failed ("no encoding" showed video, but PS4 said audio was not supported)
MP4-H264-MP3-2ch - transcoding failed ("no encoding" showed video, but PS4 said audio was not supported) - ???
Also saw a bunch of this in the log: "java.lang.OutOfMemoryError: unable to create new native thread"

Re: PS4 now support DLNA!

Posted: Fri Jul 03, 2015 10:06 am
by cmckendry
Hey guys. I've been trying to get this to work as well, with not-great results so far. Some things will play, but I'm definitely still relying on my PS3 as my go-to for any real viewing.

I would love to help with testing, but I don't have access to a Windows machine. Would it be a huge pain to upload test builds for other platforms, or is it not worth the added effort?

Alternatively, is there a reliable way that I could extract the necessary resources from the .exe myself?

Re: PS4 now support DLNA!

Posted: Sat Jul 04, 2015 1:00 pm
by SubJunk
creighton wrote:
SubJunk wrote:New version to test
I'm sure this will take some time to comb through.

87d037531-my_files

Code: Select all

flv1 - played outright! Manual FFmpeg worked as well.
transcode1 - did not play outright, nor with manual FFmpeg
webm - played audio outright, but no video. the PS4 showed a loading symbol while audio played, never seen this before (same with manual FFmpeg)
87d037531-video_test_suite

Code: Select all

AVI:
All only played audio (except the MP2 one, which didn't play at all). No video was displayed, instead the PS4 continued to show the loading symbol while playing the audio.

MKV (H264):
Most of these streamed fine. Those that needed transcoding, failed (DTS, FLAC, MP2, Opus, Vorbis)

MKV (H265):
Didn't test every single one, but the ones I did, did not play.

MKV (XviD):
Didn't test every single one, but the ones I did, did not play.

MP4:
Lots of issues with these, including some things that probably shouldn't
MP4-H264-AACHE-2ch - UMS thought it needed to trancode this, it didn't ("no encoding" worked)
MP4-H264-AACHE-6ch - transcoding failed ("no encoding" played the video very fast, and I didn't hear any audio)
MP4-H264-MP2-2ch - transcoding failed ("no encoding" showed video, but PS4 said audio was not supported)
MP4-H264-MP3-2ch - transcoding failed ("no encoding" showed video, but PS4 said audio was not supported) - ???
Also saw a bunch of this in the log: "java.lang.OutOfMemoryError: unable to create new native thread"
Thanks for the extensive testing! I'm very interested in the flv1 file now, because it played successfully with transcoding. Can you please try muxing it to a MKV container and playing that via the FFmpeg option in the #-TRANSCODE-# folder? I can run you through how to do it if you want, or I can do it for you if you upload it somewhere

Re: PS4 now support DLNA!

Posted: Sun Jul 05, 2015 1:35 am
by mero27

Code: Select all

07-04 16:53:45  Exception in thread "mencoder.exe-25-Timer" java.lang.ArithmeticException: / by zero
07-04 16:53:45  	at net.pms.newgui.StatusTab$RendererItem.actionPerformed(StatusTab.java:92)
07-04 16:53:45  	at net.pms.util.BasicPlayer$Minimal.alert(BasicPlayer.java:137)
07-04 16:53:45  	at net.pms.util.BasicPlayer$Minimal.reset(BasicPlayer.java:116)
07-04 16:53:45  	at net.pms.util.BasicPlayer$Minimal.<init>(BasicPlayer.java:102)
07-04 16:53:45  	at net.pms.configuration.RendererConfiguration$PlaybackTimer.<init>(RendererConfiguration.java:2512)
07-04 16:53:45  	at net.pms.configuration.RendererConfiguration.getPlayer(RendererConfiguration.java:1504)
07-04 16:53:45  	at net.pms.configuration.RendererConfiguration.setBuffer(RendererConfiguration.java:2498)
07-04 16:53:45  	at net.pms.io.BufferedOutputFileImpl$1.run(BufferedOutputFileImpl.java:813)
07-04 16:53:45  	at java.util.TimerThread.mainLoop(Unknown Source)
07-04 16:53:45  	at java.util.TimerThread.run(Unknown Source)
07-04 16:53:48  Exception in thread "StartPlaying Event" java.lang.ArithmeticException: / by zero
07-04 16:53:48  	at net.pms.newgui.StatusTab$RendererItem.actionPerformed(StatusTab.java:92)
07-04 16:53:48  	at net.pms.util.BasicPlayer$Minimal.alert(BasicPlayer.java:137)
07-04 16:53:48  	at net.pms.util.BasicPlayer$Minimal.reset(BasicPlayer.java:116)
07-04 16:53:48  	at net.pms.util.BasicPlayer$Minimal.<init>(BasicPlayer.java:102)
07-04 16:53:48  	at net.pms.configuration.RendererConfiguration$PlaybackTimer.<init>(RendererConfiguration.java:2512)
07-04 16:53:48  	at net.pms.configuration.RendererConfiguration.getPlayer(RendererConfiguration.java:1504)
07-04 16:53:48  	at net.pms.configuration.RendererConfiguration.setPlayingRes(RendererConfiguration.java:2485)
07-04 16:53:48  	at net.pms.dlna.DLNAResource$1.run(DLNAResource.java:2593)
07-04 16:53:48  	at java.lang.Thread.run(Unknown Source)
07-04 16:54:07  Exception in thread "mencoder.exe-25-Cleanup" java.lang.ArithmeticException: / by zero
07-04 16:54:07  	at net.pms.newgui.StatusTab$RendererItem.actionPerformed(StatusTab.java:92)
07-04 16:54:07  	at net.pms.util.BasicPlayer$Minimal.alert(BasicPlayer.java:137)
07-04 16:54:07  	at net.pms.util.BasicPlayer$Minimal.reset(BasicPlayer.java:116)
07-04 16:54:07  	at net.pms.util.BasicPlayer$Minimal.<init>(BasicPlayer.java:102)
07-04 16:54:07  	at net.pms.configuration.RendererConfiguration$PlaybackTimer.<init>(RendererConfiguration.java:2512)
07-04 16:54:07  	at net.pms.configuration.RendererConfiguration.getPlayer(RendererConfiguration.java:1504)
07-04 16:54:07  	at net.pms.configuration.RendererConfiguration.setBuffer(RendererConfiguration.java:2498)
07-04 16:54:07  	at net.pms.io.BufferedOutputFileImpl.reset(BufferedOutputFileImpl.java:879)
07-04 16:54:07  	at net.pms.io.BufferedOutputFileImpl$2.run(BufferedOutputFileImpl.java:850)
07-04 16:54:07  	at java.lang.Thread.run(Unknown Source)
07-04 16:54:07  Exception in thread "mencoder.exe-25-Cleanup" java.lang.ArithmeticException: / by zero
07-04 16:54:07  	at net.pms.newgui.StatusTab$RendererItem.actionPerformed(StatusTab.java:92)
07-04 16:54:07  	at net.pms.util.BasicPlayer$Minimal.alert(BasicPlayer.java:137)
07-04 16:54:07  	at net.pms.util.BasicPlayer$Minimal.reset(BasicPlayer.java:116)
07-04 16:54:07  	at net.pms.util.BasicPlayer$Minimal.<init>(BasicPlayer.java:102)
07-04 16:54:07  	at net.pms.configuration.RendererConfiguration$PlaybackTimer.<init>(RendererConfiguration.java:2512)
07-04 16:54:07  	at net.pms.configuration.RendererConfiguration.getPlayer(RendererConfiguration.java:1504)
07-04 16:54:07  	at net.pms.configuration.RendererConfiguration.setBuffer(RendererConfiguration.java:2498)
07-04 16:54:07  	at net.pms.io.BufferedOutputFileImpl.reset(BufferedOutputFileImpl.java:879)
07-04 16:54:07  	at net.pms.io.BufferedOutputFileImpl$2.run(BufferedOutputFileImpl.java:850)
07-04 16:54:07  	at java.lang.Thread.run(Unknown Source)
07-04 16:54:08  Exception in thread "StopPlaying Event" java.lang.ArithmeticException: / by zero
07-04 16:54:08  	at net.pms.newgui.StatusTab$RendererItem.actionPerformed(StatusTab.java:92)
07-04 16:54:08  	at net.pms.util.BasicPlayer$Minimal.alert(BasicPlayer.java:137)
07-04 16:54:08  	at net.pms.util.BasicPlayer$Minimal.reset(BasicPlayer.java:116)
07-04 16:54:08  	at net.pms.util.BasicPlayer$Minimal.<init>(BasicPlayer.java:102)
07-04 16:54:08  	at net.pms.configuration.RendererConfiguration$PlaybackTimer.<init>(RendererConfiguration.java:2512)
07-04 16:54:08  	at net.pms.configuration.RendererConfiguration.getPlayer(RendererConfiguration.java:1504)
07-04 16:54:08  	at net.pms.configuration.RendererConfiguration.setPlayingRes(RendererConfiguration.java:2485)
07-04 16:54:08  	at net.pms.dlna.DLNAResource$2$1.run(DLNAResource.java:2677)
07-04 16:54:08  	at java.lang.Thread.run(Unknown Source)

Re: PS4 now support DLNA!

Posted: Sun Jul 05, 2015 11:19 am
by SubJunk
mero27 wrote:

Code: Select all

07-04 16:53:45  Exception in thread "mencoder.exe-25-Timer" java.lang.ArithmeticException: / by zero
07-04 16:53:45  	at net.pms.newgui.StatusTab$RendererItem.actionPerformed(StatusTab.java:92)
07-04 16:53:45  	at net.pms.util.BasicPlayer$Minimal.alert(BasicPlayer.java:137)
07-04 16:53:45  	at net.pms.util.BasicPlayer$Minimal.reset(BasicPlayer.java:116)
07-04 16:53:45  	at net.pms.util.BasicPlayer$Minimal.<init>(BasicPlayer.java:102)
07-04 16:53:45  	at net.pms.configuration.RendererConfiguration$PlaybackTimer.<init>(RendererConfiguration.java:2512)
07-04 16:53:45  	at net.pms.configuration.RendererConfiguration.getPlayer(RendererConfiguration.java:1504)
07-04 16:53:45  	at net.pms.configuration.RendererConfiguration.setBuffer(RendererConfiguration.java:2498)
07-04 16:53:45  	at net.pms.io.BufferedOutputFileImpl$1.run(BufferedOutputFileImpl.java:813)
07-04 16:53:45  	at java.util.TimerThread.mainLoop(Unknown Source)
07-04 16:53:45  	at java.util.TimerThread.run(Unknown Source)
07-04 16:53:48  Exception in thread "StartPlaying Event" java.lang.ArithmeticException: / by zero
07-04 16:53:48  	at net.pms.newgui.StatusTab$RendererItem.actionPerformed(StatusTab.java:92)
07-04 16:53:48  	at net.pms.util.BasicPlayer$Minimal.alert(BasicPlayer.java:137)
07-04 16:53:48  	at net.pms.util.BasicPlayer$Minimal.reset(BasicPlayer.java:116)
07-04 16:53:48  	at net.pms.util.BasicPlayer$Minimal.<init>(BasicPlayer.java:102)
07-04 16:53:48  	at net.pms.configuration.RendererConfiguration$PlaybackTimer.<init>(RendererConfiguration.java:2512)
07-04 16:53:48  	at net.pms.configuration.RendererConfiguration.getPlayer(RendererConfiguration.java:1504)
07-04 16:53:48  	at net.pms.configuration.RendererConfiguration.setPlayingRes(RendererConfiguration.java:2485)
07-04 16:53:48  	at net.pms.dlna.DLNAResource$1.run(DLNAResource.java:2593)
07-04 16:53:48  	at java.lang.Thread.run(Unknown Source)
07-04 16:54:07  Exception in thread "mencoder.exe-25-Cleanup" java.lang.ArithmeticException: / by zero
07-04 16:54:07  	at net.pms.newgui.StatusTab$RendererItem.actionPerformed(StatusTab.java:92)
07-04 16:54:07  	at net.pms.util.BasicPlayer$Minimal.alert(BasicPlayer.java:137)
07-04 16:54:07  	at net.pms.util.BasicPlayer$Minimal.reset(BasicPlayer.java:116)
07-04 16:54:07  	at net.pms.util.BasicPlayer$Minimal.<init>(BasicPlayer.java:102)
07-04 16:54:07  	at net.pms.configuration.RendererConfiguration$PlaybackTimer.<init>(RendererConfiguration.java:2512)
07-04 16:54:07  	at net.pms.configuration.RendererConfiguration.getPlayer(RendererConfiguration.java:1504)
07-04 16:54:07  	at net.pms.configuration.RendererConfiguration.setBuffer(RendererConfiguration.java:2498)
07-04 16:54:07  	at net.pms.io.BufferedOutputFileImpl.reset(BufferedOutputFileImpl.java:879)
07-04 16:54:07  	at net.pms.io.BufferedOutputFileImpl$2.run(BufferedOutputFileImpl.java:850)
07-04 16:54:07  	at java.lang.Thread.run(Unknown Source)
07-04 16:54:07  Exception in thread "mencoder.exe-25-Cleanup" java.lang.ArithmeticException: / by zero
07-04 16:54:07  	at net.pms.newgui.StatusTab$RendererItem.actionPerformed(StatusTab.java:92)
07-04 16:54:07  	at net.pms.util.BasicPlayer$Minimal.alert(BasicPlayer.java:137)
07-04 16:54:07  	at net.pms.util.BasicPlayer$Minimal.reset(BasicPlayer.java:116)
07-04 16:54:07  	at net.pms.util.BasicPlayer$Minimal.<init>(BasicPlayer.java:102)
07-04 16:54:07  	at net.pms.configuration.RendererConfiguration$PlaybackTimer.<init>(RendererConfiguration.java:2512)
07-04 16:54:07  	at net.pms.configuration.RendererConfiguration.getPlayer(RendererConfiguration.java:1504)
07-04 16:54:07  	at net.pms.configuration.RendererConfiguration.setBuffer(RendererConfiguration.java:2498)
07-04 16:54:07  	at net.pms.io.BufferedOutputFileImpl.reset(BufferedOutputFileImpl.java:879)
07-04 16:54:07  	at net.pms.io.BufferedOutputFileImpl$2.run(BufferedOutputFileImpl.java:850)
07-04 16:54:07  	at java.lang.Thread.run(Unknown Source)
07-04 16:54:08  Exception in thread "StopPlaying Event" java.lang.ArithmeticException: / by zero
07-04 16:54:08  	at net.pms.newgui.StatusTab$RendererItem.actionPerformed(StatusTab.java:92)
07-04 16:54:08  	at net.pms.util.BasicPlayer$Minimal.alert(BasicPlayer.java:137)
07-04 16:54:08  	at net.pms.util.BasicPlayer$Minimal.reset(BasicPlayer.java:116)
07-04 16:54:08  	at net.pms.util.BasicPlayer$Minimal.<init>(BasicPlayer.java:102)
07-04 16:54:08  	at net.pms.configuration.RendererConfiguration$PlaybackTimer.<init>(RendererConfiguration.java:2512)
07-04 16:54:08  	at net.pms.configuration.RendererConfiguration.getPlayer(RendererConfiguration.java:1504)
07-04 16:54:08  	at net.pms.configuration.RendererConfiguration.setPlayingRes(RendererConfiguration.java:2485)
07-04 16:54:08  	at net.pms.dlna.DLNAResource$2$1.run(DLNAResource.java:2677)
07-04 16:54:08  	at java.lang.Thread.run(Unknown Source)
That's just a display bug, has nothing to do with PS4 :)

Re: PS4 now support DLNA!

Posted: Mon Jul 06, 2015 5:06 am
by creighton
SubJunk wrote:Thanks for the extensive testing! I'm very interested in the flv1 file now, because it played successfully with transcoding. Can you please try muxing it to a MKV container and playing that via the FFmpeg option in the #-TRANSCODE-# folder? I can run you through how to do it if you want, or I can do it for you if you upload it somewhere
Sorry for the delay, 4th of July and all...

I did this in command line and it appeared to do what you asked:

Code: Select all

C:\Program Files (x86)\Universal Media Server\win32>ffmpeg -i "Z:\test\flv1.flv" -vcodec copy -acodec copy "Z:\test\flv1.mkv"
Tried manual transcode with FFmpeg, but it eventually timed out on the PS4 like usual and failed unfortunately. Same with Mencoder. No encoding worked of course. Trace logs are attached, let me know if you need something different done with the file, or need more info on it.

Re: PS4 now support DLNA!

Posted: Mon Jul 06, 2015 9:59 pm
by SubJunk
Thanks for the logs :) I'm very confused now since it seems to me that we are doing the exact same thing in both cases, but the PS4 only likes one. I've made a new build with extra logging to try to uncover what the difference is. Can you please try both files the same way with this version?
http://www.spirton.com/uploads/UMS/UMS-3b723fa.exe

Re: PS4 now support DLNA!

Posted: Tue Jul 07, 2015 2:50 am
by creighton
SubJunk wrote:Thanks for the logs :) I'm very confused now since it seems to me that we are doing the exact same thing in both cases, but the PS4 only likes one. I've made a new build with extra logging to try to uncover what the difference is. Can you please try both files the same way with this version?
http://www.spirton.com/uploads/UMS/UMS-3b723fa.exe
Tried both under forced transcoding with FFmpeg, the .flv worked and the .mkv failed as expected.

From taking a peek into the log, it seems the command for the .mkv is missing some pipe information? Obviously I know nothing about the underlying code here, just taking a stab in the dark.

Code: Select all

C:\Program Files (x86)\Universal Media Server\win32\ffmpeg.exe -fflags +genpts -y -loglevel info -i Z:\test\flv1.flv -ab 384k -c:a ac3 -c:v copy -bsf:v h264_mp4toannexb -f mpegts \\.\pipe\ffmpegvideo_48_1436194527665

C:\Program Files (x86)\Universal Media Server\win32\ffmpeg.exe -i Z:\test\flv1.mkv -vframes 1 -c:v copy -f h264 -bsf h264_mp4toannexb -an -y pipe: