PMSEncoder - Web Video Streaming Plugin

Discuss third-party additions, plugins and translations for PS3 Media Server

Re: PMSEncoder - Web Video Streaming Plugin

Postby mr_ho » Thu Nov 07, 2013 4:25 pm

I got PMS+PMSEncoder+youtube-dl up and running and most streams are playing just fine.
I'm just having some problems playing the Colbert Report and the Daily Show. The stream seems to be working fine, but only the 1st part of the show is played (each episode is divided in multiple parts).
I'm getting the episodes from:
Code: Select all
videofeed.Web,The Daily Show=http://extechops.net/full-episode-feeds/daily-show.rss
videofeed.Web,The Colbert Report=http://extechops.net/full-episode-feeds/colbert-report.rss

The debug string is
Code: Select all
DEBUG 2013-11-07 22:28:03.738 [cmd.exe-1] Starting cmd.exe /C D:\Apps\youtube-dl.exe --max-quality 37 --quiet -o - http://www.thedailyshow.com/full-episodes/wed-november-6-2013-monique-brinson-demery | win32\ffmpeg.exe -loglevel warning -y -threads 4 -i - -threads 4 -q:a 3 -q:v 3 -c:a ac3 -c:v mpeg2video -f vob \\.\pipe\pmsencoder_transcoder_out_1383834477627_41

And by the way, when I run:
Code: Select all
youtube-dl.exe http://www.thedailyshow.com/full-episodes/wed-november-6-2013-monique-brinson-demery

then each part of the show is downloaded to a separate file. Maybe that is the problem.
Any ideas?
mr_ho
 
Posts: 1
Joined: Thu Nov 07, 2013 4:10 pm

Re: PMSEncoder - Web Video Streaming Plugin

Postby Anonymoose » Thu Nov 14, 2013 9:45 pm

Using the latest release of PMSEncoder under Win 7 64-bit with the latest version of Java, a clean install of PMS 1.90.1, and a fresh pms.conf, streaming YouTube videos is unreliable. Shorter videos (~1-2m) seem to play fine, though only after an average loading time which seems much longer than it was with earlier versions of PMSEncoder/PMS. Longer videos (~3m+) begin playback less than a minute from their end then loop to the beginning and play at an increased rate until the faulty start time is reached, if they even start at all. Toggling HTTP engine v2 has had no effect and using youtube-dl has been similarly fruitless with the added bonus of producing ~300mb pmsencoder.logs, which otherwise seem to record no errors. Testing with the YT feeds from the PMSEncoder-tested web.conf debug.log has been more forthcoming and I was able to capture these:

Code: Select all
INFO  2013-11-14 15:09:20.819 [New I/O server worker #1-7] Starting transcode/remux of Hangin' at Universal Horror Nights!
DEBUG 2013-11-14 15:09:20.819 [New I/O server worker #1-7] Creating pipe \\.\pipe\pmsencoder_transcoder_out_1384459760819_158
DEBUG 2013-11-14 15:09:20.820 [Thread-25] Waiting for pipe connection \\.\pipe\pmsencoder_transcoder_out_1384459760819_158
DEBUG 2013-11-14 15:09:21.443 [ffmpeg.exe-3] Starting "C:\Program Files (x86)\PS3 Media Server\win32\ffmpeg.exe" -loglevel warning -y -threads 8 -i "http://r1---sn-ux3n588t-mjhe.googlevideo.com/videoplayback?expire=1384484853&mv=m&source=youtube&ratebypass=yes&key=yt5&mt=1384459654&id=b36406f08d92eb11&sver=3&fexp=923901%2C932237%2C916612%2C936912%2C936910%2C907231&sparams=id%2Cip%2Cipbits%2Citag%2Cratebypass%2Csource%2Cupn%2Cexpire&upn=LIVHFjEUg0E&itag=22&ip=206.248.184.26&ipbits=0&ms=au&signature=0B97167E90631EA881F179227A9B4F939170D904.D136B908F7E25A6D0CD80F13AC62569AE6A4FE33" -threads 8 -q:a 3 -q:v 3 -c:a ac3 -c:v mpeg2video -f vob \\.\pipe\pmsencoder_transcoder_out_1384459760819_158
DEBUG 2013-11-14 15:09:21.445 [ffmpeg.exe-3] Reading pipe: \\.\pipe\pmsencoder_transcoder_out_1384459760819_158
INFO  2013-11-14 15:09:21.451 [ffmpeg.exe-3] Successfully initialized buffer to 50,000,000 bytes.
DEBUG 2013-11-14 15:09:21.451 [ffmpeg.exe-3] Attaching thread: ffmpeg.exe-3
DEBUG 2013-11-14 15:09:21.997 [Thread-25] Result of \\.\pipe\pmsencoder_transcoder_out_1384459760819_158 : true
DEBUG 2013-11-14 15:09:22.000 [Thread-27] [vob @ 03f98280] VBV buffer size not set, muxing may fail
INFO  2013-11-14 15:09:27.643 [StartPlaying Event] Started sending http://www.youtube.com/watch?v=s2QG8I2S6xE&feature=youtube_gdata to PlayStation 3 on 192.168.1.8
DEBUG 2013-11-14 15:09:27.789 [New I/O server worker #1-1] Setting InputStream new position to: 9,223,372,034,706,767,871
ERROR 2013-11-14 15:09:35.292 [New I/O server worker #1-1] Buffer read ArrayIndexOutOfBoundsException error.
java.lang.ArrayIndexOutOfBoundsException: 167247871
   at net.pms.io.BufferedOutputFileImpl.read(BufferedOutputFileImpl.java:761) ~[pms.jar:1.90.1]
   at net.pms.io.WaitBufferedInputStream.read(WaitBufferedInputStream.java:43) [pms.jar:1.90.1]
   at java.io.FilterInputStream.read(Unknown Source) [na:1.7.0_45]
   at java.io.PushbackInputStream.read(Unknown Source) [na:1.7.0_45]
   at org.jboss.netty.handler.stream.ChunkedStream.hasNextChunk(ChunkedStream.java:84) [pms.jar:1.90.1]
   at org.jboss.netty.handler.stream.ChunkedStream.nextChunk(ChunkedStream.java:102) [pms.jar:1.90.1]
   at org.jboss.netty.handler.stream.ChunkedWriteHandler.flush(ChunkedWriteHandler.java:219) [pms.jar:1.90.1]
   at org.jboss.netty.handler.stream.ChunkedWriteHandler.handleDownstream(ChunkedWriteHandler.java:125) [pms.jar:1.90.1]
   at org.jboss.netty.channel.DefaultChannelPipeline.sendDownstream(DefaultChannelPipeline.java:591) [pms.jar:1.90.1]
   at org.jboss.netty.channel.DefaultChannelPipeline.sendDownstream(DefaultChannelPipeline.java:582) [pms.jar:1.90.1]
   at org.jboss.netty.channel.Channels.write(Channels.java:611) [pms.jar:1.90.1]
   at org.jboss.netty.channel.Channels.write(Channels.java:578) [pms.jar:1.90.1]
   at org.jboss.netty.channel.AbstractChannel.write(AbstractChannel.java:251) [pms.jar:1.90.1]
   at net.pms.network.RequestV2.answer(RequestV2.java:846) [pms.jar:1.90.1]
   at net.pms.network.RequestHandlerV2.writeResponse(RequestHandlerV2.java:300) [pms.jar:1.90.1]
   at net.pms.network.RequestHandlerV2.messageReceived(RequestHandlerV2.java:258) [pms.jar:1.90.1]
   at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:80) [pms.jar:1.90.1]
   at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564) [pms.jar:1.90.1]
   at org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:783) [pms.jar:1.90.1]
   at org.jboss.netty.handler.stream.ChunkedWriteHandler.handleUpstream(ChunkedWriteHandler.java:149) [pms.jar:1.90.1]
   at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564) [pms.jar:1.90.1]
   at org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:783) [pms.jar:1.90.1]
   at org.jboss.netty.handler.codec.http.HttpChunkAggregator.messageReceived(HttpChunkAggregator.java:116) [pms.jar:1.90.1]
   at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:80) [pms.jar:1.90.1]
   at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564) [pms.jar:1.90.1]
   at org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:783) [pms.jar:1.90.1]
   at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:302) [pms.jar:1.90.1]
   at org.jboss.netty.handler.codec.replay.ReplayingDecoder.unfoldAndFireMessageReceived(ReplayingDecoder.java:527) [pms.jar:1.90.1]
   at org.jboss.netty.handler.codec.replay.ReplayingDecoder.callDecode(ReplayingDecoder.java:506) [pms.jar:1.90.1]
   at org.jboss.netty.handler.codec.replay.ReplayingDecoder.messageReceived(ReplayingDecoder.java:443) [pms.jar:1.90.1]
   at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:80) [pms.jar:1.90.1]
   at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564) [pms.jar:1.90.1]
   at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:559) [pms.jar:1.90.1]
   at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:274) [pms.jar:1.90.1]
   at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:261) [pms.jar:1.90.1]
   at org.jboss.netty.channel.socket.nio.NioWorker.read(NioWorker.java:351) [pms.jar:1.90.1]
   at org.jboss.netty.channel.socket.nio.NioWorker.processSelectedKeys(NioWorker.java:282) [pms.jar:1.90.1]
   at org.jboss.netty.channel.socket.nio.NioWorker.run(NioWorker.java:202) [pms.jar:1.90.1]
   at org.jboss.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:108) [pms.jar:1.90.1]
   at org.jboss.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProofWorker.java:44) [pms.jar:1.90.1]
   at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [na:1.7.0_45]
   at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [na:1.7.0_45]
   at java.lang.Thread.run(Unknown Source) [na:1.7.0_45]
ERROR 2013-11-14 15:09:35.293 [New I/O server worker #1-1] buffer.length: 50,000,000 bytes.
ERROR 2013-11-14 15:09:35.293 [New I/O server worker #1-1] readCount: "9223372034706767871"
ERROR 2013-11-14 15:09:35.293 [New I/O server worker #1-1] maxMemorySize: "209715200"
INFO  2013-11-14 15:09:36.604 [Thread-28] Successfully grown buffer from 50,000,000 bytes to 209,715,200 bytes.
DEBUG 2013-11-14 15:09:41.474 [Buffered IO End Checker] Stopping process: ffmpeg.exe-2
DEBUG 2013-11-14 15:09:41.475 [Thread-19] Error: null
INFO  2013-11-14 15:09:41.474 [Buffered IO End Checker] Destroying buffer
INFO  2013-11-14 15:09:42.975 [StopPlaying Event] Stopped sending http://www.youtube.com/watch?v=yiWB7TKmLgA&feature=youtube_gdata to PlayStation 3 on 192.168.1.8


Code: Select all
DEBUG 2013-11-14 14:56:52.023 [Request Handler] Setting InputStream new position to: 9,223,372,034,706,767,871
INFO  2013-11-14 14:57:44.027 [Request Handler] Exception in thread "Request Handler" java.lang.ArrayIndexOutOfBoundsException
INFO  2013-11-14 14:57:44.028 [Request Handler]    at java.lang.System.arraycopy(Native Method)
INFO  2013-11-14 14:57:44.029 [Request Handler]    at net.pms.io.BufferedOutputFileImpl.read(BufferedOutputFileImpl.java:711)
INFO  2013-11-14 14:57:44.029 [Request Handler]    at net.pms.io.WaitBufferedInputStream.read(WaitBufferedInputStream.java:53)
INFO  2013-11-14 14:57:44.030 [Request Handler]    at net.pms.io.WaitBufferedInputStream.read(WaitBufferedInputStream.java:63)
INFO  2013-11-14 14:57:44.030 [Request Handler]    at net.pms.network.Request.sendBytes(Request.java:741)
INFO  2013-11-14 14:57:44.031 [Request Handler]    at net.pms.network.Request.answer(Request.java:708)
INFO  2013-11-14 14:57:44.031 [Request Handler]    at net.pms.network.RequestHandler.run(RequestHandler.java:247)
INFO  2013-11-14 14:57:44.032 [Request Handler]    at java.lang.Thread.run(Unknown Source)
Anonymoose
 
Posts: 1
Joined: Thu Nov 14, 2013 9:18 pm

Re: PMSEncoder - Web Video Streaming Plugin

Postby chocolateboy » Tue Nov 19, 2013 4:51 am

pat.rick wrote:My samsung tv displays the error [not supported file format].


Try the latest PMSEncoder snapshot build.

Edit: should be fixed in 2.0.0-rc2.
chocolateboy
Project Member
 
Posts: 2577
Joined: Wed Sep 16, 2009 10:05 am

Re: PMSEncoder - Web Video Streaming Plugin

Postby chocolateboy » Tue Nov 19, 2013 7:11 am

mr_ho wrote:And by the way, when I run:
Code: Select all
youtube-dl.exe http://www.thedailyshow.com/full-episodes/wed-november-6-2013-monique-brinson-demery

then each part of the show is downloaded to a separate file. Maybe that is the problem.


Yes, that's the problem. I don't have a solution at the moment.

Edit: Fixed in 2.0.0-rc2.
chocolateboy
Project Member
 
Posts: 2577
Joined: Wed Sep 16, 2009 10:05 am

Re: PMSEncoder - Web Video Streaming Plugin

Postby chocolateboy » Tue Nov 19, 2013 9:00 am

Anonymoose wrote:Testing with the YT feeds from the PMSEncoder-tested web.conf debug.log has been more forthcoming and I was able to capture these


I can't remember which PMS commit introduced those ArrayIndexOutOfBoundsException errors, but it's a) a PMS bug (i.e. it's not something that can be fixed in PMSEncoder) and b) doesn't appear to affect streaming.

YouTube have made some changes recently that make it harder to stream videos in 1080p and 480p (youtube-dl issue), but I've just tried a few of the videos in the sample YouTube feeds and can't reproduce any of the issues you've encountered with either the builtin YouTube support or the latest youtube-dl (2013.11.18.1).

If you want me to investigate further, you'll need to provide the full details as requested here.
chocolateboy
Project Member
 
Posts: 2577
Joined: Wed Sep 16, 2009 10:05 am

Re: PMSEncoder - Web Video Streaming Plugin

Postby Rhystic » Fri Nov 22, 2013 3:13 am

Hello,
Thanks for your work on the plugin. I've been able to follow the steps with no problem have installed the latest build (2.0.0.rc1) and have been able to update the web.config file with the video feeds I would like, however I'm running into a problem.

Although the feeds show up, and older ones even show up in transcode folder (for instance november 19 bill cosby shows up under daily show, and previous ones show up in the transcode folder dating all the way back to sep.), I am unable to get them to play or even get pms to try to play them.

Even though I click play, nothing happens. (Don't know if this matters and I still have no idea what it means in actuality, but the icon next to the feeds is a prohibited signal [the circle with a diagonal from top left to bottom right]) Other videos that are on my computer have this symbol to and play just fine which is why I'm unsure of what the symbol means.

I checked the log and debug file, but nothing even shows up; its like even though I'm clicking it, no interaction with pms is happening that mandates the program to log the action.

Thanks for your time on your work and reading this message and I hope you can help me out.
Rhystic
 
Posts: 7
Joined: Fri Nov 22, 2013 3:05 am

Re: PMSEncoder - Web Video Streaming Plugin

Postby chocolateboy » Fri Nov 22, 2013 4:08 am

Rhystic wrote:even though I'm clicking it, no interaction with pms is happening that mandates the program to log the action.


viewtopic.php?f=6&t=3507&p=15591#p15591
https://github.com/chocolateboy/pmsenco ... ing-issues
chocolateboy
Project Member
 
Posts: 2577
Joined: Wed Sep 16, 2009 10:05 am

Re: PMSEncoder - Web Video Streaming Plugin

Postby chocolateboy » Fri Nov 22, 2013 9:38 am

PMSEncoder 2.0.0-rc2 has been released. It includes the following changes:


For more details, see the changelog. For more details on PMSEncoder, see here.
chocolateboy
Project Member
 
Posts: 2577
Joined: Wed Sep 16, 2009 10:05 am

Re: PMSEncoder - Web Video Streaming Plugin

Postby pat.rick » Sat Nov 23, 2013 1:49 pm

I tried the 2.0.0 -rc2 thanks for releasing

The youtube is not working for me. I updated to 2013.11.22.2. Ther error is [not supported file format] on the TV. Then de TV resets

The Apple, Onion and the TED feeds they work very good. I did not try all the different video but the one's I tried all work in all the different resolutiuons.
Only youtube did not work. I tried to DL a youtube video from the commandline with youtube-dl and that is working ok.

De debug log file contains some very wierd charactars. which makes it difficult to read.

http://pastebin.com/6K13fqPA pms.conf
http://pastebin.com/CTRTT6gc pmsencoder.log
http://pastebin.com/rhzSAd44 web.conf
http://www.mediafire.com/download/n6uc2 ... /debug.log debug.log (86mb thats why this file by mediafire)
Last edited by pat.rick on Sat Nov 23, 2013 2:14 pm, edited 1 time in total.
pat.rick
 
Posts: 4
Joined: Sun Nov 03, 2013 12:08 pm

Re: PMSEncoder - Web Video Streaming Plugin

Postby chocolateboy » Sat Nov 23, 2013 2:03 pm

pat.rick wrote:De debug log file contains some very wierd charactars. which makes it difficult to read.


If you can't upload it to Pastebin.com, you can zip it and upload it to MediaFire:

https://github.com/chocolateboy/pmsenco ... ing-issues
chocolateboy
Project Member
 
Posts: 2577
Joined: Wed Sep 16, 2009 10:05 am

PreviousNext

Return to Additions and Plugins

Who is online

Users browsing this forum: No registered users and 5 guests