SageTV Community  

Go Back   SageTV Community > SageTV Development and Customizations > SageTV v7 Customizations
Forum Rules FAQs Community Downloads Today's Posts Search

Notices

SageTV v7 Customizations This forums is for discussing and sharing user-created modifications for the SageTV version 7 application created by using the SageTV Studio or through the use of external plugins. Use this forum to discuss plugins for SageTV version 7 and newer.

Reply
 
Thread Tools Search this Thread Display Modes
  #61  
Old 12-30-2010, 08:40 PM
jreichen's Avatar
jreichen jreichen is offline
Sage Icon
 
Join Date: Jul 2004
Posts: 1,192
Quote:
Originally Posted by gamehendge2000 View Post
So after a little testing of the streaming...

I have a Core Duo 2,2ghz, trying to stream HD-PVR .ts files at the 'Great' encoding setting. I know this may be sub-optimal, just trying to get the config right at the moment.

- When logged in to my network via VPN, the mobile interface works fine (over 8080, jetty non-ssl) - but the streaming will not work. I get the video play button in the crossed-out circle icon on iPhone (4.01) and a blank black box on the iPad (4.2.1). I understand it will not worked directly over SSL, but would have thought that VPN might have worked...
I would think it would work as well. Can you look in the jetty/logs folder for the log file that would correspond to the time you captured the log file you posted (I'm going to add this step to the first post)? There's a new log for each day. You might want to search/replace for anything you don't want posted such as server name. I'm wondering what requests are happening during this time.

Quote:
Originally Posted by gamehendge2000 View Post
- When opening the 8080 port and connecting publicly, everything seemed to work fine on the 4.01 iPhone (3GS) the first time. Subsequent times, the video never finishes buffering/loading in the video player.

- streaming does not work on the iPad (4.2.1). I get the play video button..when clicked, it greys out for a moment, but then returns to the white video icon, and does not launch the iPad video player.
I noticed something similar today. I was able to try it on Mac Safari and saw an HTTP 503 coming from the Media Streaming webapp (the url begins with /stream). I had to shut down Sage, delete the subdirectories under jetty/webapps (in my case it was the MediaStreaming one), then restart Sage.

Quote:
Originally Posted by gamehendge2000 View Post
Any thoughts? Logs attached

Specs:
CPU Core Duo 2.2ghz
SageTV OS: Win XP SP3 32 bit
Connect iPad/iPhone to server via Wifi G
Devices:
- iPhone 3GS, jailbroken. 4.01
- iPad 4.2.1
It looks like your hardware should handle it.
__________________
Server: Intel Core i5 760 Quad, Gigabyte GA-H57M-USB3, 4GB RAM, Gigabyte GeForce 210, 120GB SSD (OS), 1TB SATA, HD HomeRun.
Extender: STP-HD300, Harmony 550 Remote,
Netgear MCA1001 Ethernet over Coax.
SageTV: SageTV Server 7.1.8 on Ubuntu Linux 11.04, SageTV Placeshifter for Mac 6.6.2, SageTV Client 7.0.15 for Windows, Linux Placeshifter 7.1.8 on Server and Client
, Java 1.6.
Plugins: Jetty, Nielm's Web Server, Mobile Web Interface.

Reply With Quote
  #62  
Old 01-15-2011, 07:45 PM
jreichen's Avatar
jreichen jreichen is offline
Sage Icon
 
Join Date: Jul 2004
Posts: 1,192
Version 1.1 will be available soon. There are several fixes in this release:
  • Increase volume on HTTP Live Streaming videos.
  • Create a default web page to explain that this plugin is not used directly by the user.
  • Use SageTV's ffmpeg for transcoding. The web streaming should now support the same files as the Sage core. Some users had reported problems with playing or seeking through avi, mkv, mpeg2, and wmv files.
  • Fixed problems watching shows currently being recorded.
    • Playback duration was the length of the recording when playback began
    • Playback would fail if started immediately after recording started
  • Added a URL to allow clients to kill transcoding processes on the server. The Mobile Web Interface does not use this API.
  • Added more logging detail

Jason
__________________
Server: Intel Core i5 760 Quad, Gigabyte GA-H57M-USB3, 4GB RAM, Gigabyte GeForce 210, 120GB SSD (OS), 1TB SATA, HD HomeRun.
Extender: STP-HD300, Harmony 550 Remote,
Netgear MCA1001 Ethernet over Coax.
SageTV: SageTV Server 7.1.8 on Ubuntu Linux 11.04, SageTV Placeshifter for Mac 6.6.2, SageTV Client 7.0.15 for Windows, Linux Placeshifter 7.1.8 on Server and Client
, Java 1.6.
Plugins: Jetty, Nielm's Web Server, Mobile Web Interface.

Reply With Quote
  #63  
Old 01-15-2011, 09:26 PM
johnb263 johnb263 is offline
Sage User
 
Join Date: Apr 2008
Posts: 12
Streaming Services 1.1.0.40 broke Iphone streaming

Updated the plugin today, video wont even start to play on Iphone 3gs. Worked fine before. Tried uninstalling and re-installing, no change. It gets to "watch now" "on this page" but is unresponsive from there on.
Reply With Quote
  #64  
Old 01-15-2011, 09:52 PM
johnb263 johnb263 is offline
Sage User
 
Join Date: Apr 2008
Posts: 12
Log files and info

Description of the problem - see above
CPU - Intel core2duo 3Ghz
SageTV server operating system - Windows 7 pro 64
Wireless Connection (WiFi G/N or 3G) - Wifi G
Type of device (iPhone, iPod touch, iPad) - Iphone 3gs
iOS Version - 4.2.1
Attached Files
File Type: zip johnb263_16Jan10.zip (52.8 KB, 217 views)
Reply With Quote
  #65  
Old 01-15-2011, 10:15 PM
Fonceur's Avatar
Fonceur Fonceur is offline
Sage Icon
 
Join Date: Jan 2008
Location: DDO, QC
Posts: 1,915
Also broke the basic mpeg streaming on my iPod second generation...
__________________
SageTCPServer (2.3.5): Open source TCP interface to the SageTV API
MLSageTV (3.1.8)/Sage Media Server (1.13): SageTV plugin for MainLobby/CQC
TaSageTV (2.58)/TaSTVRemote (1.14): Monitor/control SageTV with an Android device
TbSageTV (1.02)/STVRemote (1.11): Monitor/control SageTV with a PlayBook 2
TiSageTV (1.64)/TiSTVRemote (1.09): Monitor/control SageTV with an iPhone/iPod/iPad
Reply With Quote
  #66  
Old 01-15-2011, 10:27 PM
jreichen's Avatar
jreichen jreichen is offline
Sage Icon
 
Join Date: Jul 2004
Posts: 1,192
Thanks for the info. I'm looking into it.
__________________
Server: Intel Core i5 760 Quad, Gigabyte GA-H57M-USB3, 4GB RAM, Gigabyte GeForce 210, 120GB SSD (OS), 1TB SATA, HD HomeRun.
Extender: STP-HD300, Harmony 550 Remote,
Netgear MCA1001 Ethernet over Coax.
SageTV: SageTV Server 7.1.8 on Ubuntu Linux 11.04, SageTV Placeshifter for Mac 6.6.2, SageTV Client 7.0.15 for Windows, Linux Placeshifter 7.1.8 on Server and Client
, Java 1.6.
Plugins: Jetty, Nielm's Web Server, Mobile Web Interface.

Reply With Quote
  #67  
Old 01-15-2011, 11:35 PM
jreichen's Avatar
jreichen jreichen is offline
Sage Icon
 
Join Date: Jul 2004
Posts: 1,192
I have a fix ready but the plugin submission system is rejecting my update. It will be available once Sage support can help me resolve the issue.

Sorry for the inconvenience,
Jason
__________________
Server: Intel Core i5 760 Quad, Gigabyte GA-H57M-USB3, 4GB RAM, Gigabyte GeForce 210, 120GB SSD (OS), 1TB SATA, HD HomeRun.
Extender: STP-HD300, Harmony 550 Remote,
Netgear MCA1001 Ethernet over Coax.
SageTV: SageTV Server 7.1.8 on Ubuntu Linux 11.04, SageTV Placeshifter for Mac 6.6.2, SageTV Client 7.0.15 for Windows, Linux Placeshifter 7.1.8 on Server and Client
, Java 1.6.
Plugins: Jetty, Nielm's Web Server, Mobile Web Interface.

Reply With Quote
  #68  
Old 01-16-2011, 12:17 PM
jreichen's Avatar
jreichen jreichen is offline
Sage Icon
 
Join Date: Jul 2004
Posts: 1,192
Version 1.1.1 is now available in the plugin manager.
  • Fix bug in HTTP Live Streaming playlist generation
__________________
Server: Intel Core i5 760 Quad, Gigabyte GA-H57M-USB3, 4GB RAM, Gigabyte GeForce 210, 120GB SSD (OS), 1TB SATA, HD HomeRun.
Extender: STP-HD300, Harmony 550 Remote,
Netgear MCA1001 Ethernet over Coax.
SageTV: SageTV Server 7.1.8 on Ubuntu Linux 11.04, SageTV Placeshifter for Mac 6.6.2, SageTV Client 7.0.15 for Windows, Linux Placeshifter 7.1.8 on Server and Client
, Java 1.6.
Plugins: Jetty, Nielm's Web Server, Mobile Web Interface.

Reply With Quote
  #69  
Old 01-16-2011, 01:49 PM
Fonceur's Avatar
Fonceur Fonceur is offline
Sage Icon
 
Join Date: Jan 2008
Location: DDO, QC
Posts: 1,915
Quote:
Originally Posted by jreichen View Post
Fix bug in HTTP Live Streaming playlist generation
OK, now it's working again. I can now stream avi files that I could not before.

Quote:
Increase volume on HTTP Live Streaming videos.
Now the Sage TV recordings (Hauppauge PVR-500) and some other videos sound like thin can... The avi sounds good though.
__________________
SageTCPServer (2.3.5): Open source TCP interface to the SageTV API
MLSageTV (3.1.8)/Sage Media Server (1.13): SageTV plugin for MainLobby/CQC
TaSageTV (2.58)/TaSTVRemote (1.14): Monitor/control SageTV with an Android device
TbSageTV (1.02)/STVRemote (1.11): Monitor/control SageTV with a PlayBook 2
TiSageTV (1.64)/TiSTVRemote (1.09): Monitor/control SageTV with an iPhone/iPod/iPad
Reply With Quote
  #70  
Old 01-16-2011, 04:14 PM
johnb263 johnb263 is offline
Sage User
 
Join Date: Apr 2008
Posts: 12
fixed!

Works again here as well. Thanks for the quick response and thanks for a great plugin!
Reply With Quote
  #71  
Old 01-16-2011, 08:34 PM
LehighBri LehighBri is offline
Sage Expert
 
Join Date: Sep 2006
Posts: 694
Quote:
Originally Posted by jreichen View Post
[*]Added a URL to allow clients to kill transcoding processes on the server. The Mobile Web Interface does not use this API.
How would I go about using this URL feature? Reason being, I am having the following issues w/ v1.1.1.42:

-Upon restarting SageTV server (v7.0.23), I am able to watch 2-4 minutes of streaming MPEG4 recorded TV no problem. I am also even able to watch live TV.
-After 2-4 minutes, the streaming just freezes, and no matter how many times I refresh the mobile website and try to re-play the recorded TV, it opens the iOS player but nothing plays back. The only way I can get this to work again is to restart the SageTV server

What can I do to further debug this and/or get your support in trying to figure out why this isn't fully working? Much appreciated.
__________________
Server: Sage 7.1.9 beta; Dell Inspiron 530; Windows 7 Ultimate 32-bit (UAC turned off); 2TB Internal SATA (TV Recordings)
Storage: Synology DiskStation DS411+, RAID 5, 5x 2TB SATA for (DVDs/Music/Other Videos)
Tuners: Ceton InfiniTV w/ Verizon FIOS cablecard (using babgvant's SageDCT plugin)
Clients: 1x STP-HD300; 1x Acer Aspire Revo 3610 (Atom/Ion) w/ SageTV client (Win 7, EVR, FSE on)
Reply With Quote
  #72  
Old 01-16-2011, 09:38 PM
megamojo's Avatar
megamojo megamojo is offline
Sage Advanced User
 
Join Date: Apr 2006
Posts: 179
Quote:
Originally Posted by jreichen View Post
Version 1.1.1 is now available in the plugin manager.
  • Fix bug in HTTP Live Streaming playlist generation
I'm still getting no play button, and the Watch Now>On This Page appears to do absolutely nothing. Streaming was working just fine before either of the 2 updates from this weekend. Let me know if you need a log file from me. I made a point of restarting the sagetv service even though the updates didn't ask me too. I also made sure that javascript was turned on on my iphone safari and turned on the debugger there. There were no errors.
Reply With Quote
  #73  
Old 01-16-2011, 09:55 PM
johnb263 johnb263 is offline
Sage User
 
Join Date: Apr 2008
Posts: 12
not fixed..

I have to take back what I said - after updating to the latest release I tested it (without rebooting) and it worked (both WiFi G and 3G). I then rebooted the server and the problem is back. No play button on the video preview, no action on "play on this page".
Reply With Quote
  #74  
Old 01-17-2011, 08:24 AM
AzTech AzTech is offline
Sage User
 
Join Date: Apr 2008
Posts: 53
I know this sounds really strange (I had a hard time believing it myself) but after the 2 updates this weekend I found that when I have the Jetty server logging set to INFO, streaming doesn't work...when I have it set to DEBUG or VERBOSE, it works fine. I have switched back and forth a dozen time and it is completely reproducible for me..
Reply With Quote
  #75  
Old 01-17-2011, 09:41 AM
thopkin1 thopkin1 is offline
Sage User
 
Join Date: Sep 2010
Location: Cleveland, OH
Posts: 31
Same for me

Quote:
Originally Posted by AzTech View Post
I know this sounds really strange (I had a hard time believing it myself) but after the 2 updates this weekend I found that when I have the Jetty server logging set to INFO, streaming doesn't work...when I have it set to DEBUG or VERBOSE, it works fine. I have switched back and forth a dozen time and it is completely reproducible for me..
By resetting jetty logging I can get it to work, although may be an unrelated issue but the playback seems to pause itself every 30 seconds or so.
Reply With Quote
  #76  
Old 01-17-2011, 10:44 AM
nethead nethead is offline
Sage User
 
Join Date: Jun 2009
Location: Washington, D.C.
Posts: 63
Quote:
Originally Posted by jreichen View Post
Version 1.1.1 is now available in the plugin manager.
  • Fix bug in HTTP Live Streaming playlist generation
Thank you for the quick fix.

MrsNethead commented on the louder sound coming from her iPad and the Sage Video recorded stream looks better (much better)

Reply With Quote
  #77  
Old 01-17-2011, 11:00 AM
Fonceur's Avatar
Fonceur Fonceur is offline
Sage Icon
 
Join Date: Jan 2008
Location: DDO, QC
Posts: 1,915
I have a tester that is getting the following error, any idea? We can get the thumbnail, so the file is there... Straight from the mobile web server, the error is: "There was a problem rendering the audio portion of the content for playback".

HTTP ERROR 500

Problem accessing /stream/HTTPLiveStreamingPlaylist. Reason:

String index out of range: -1

Caused by:

java.lang.StringIndexOutOfBoundsException: String index out of range: -1
at java.lang.String.substring(Unknown Source)
at sagex.streaming.servlet.HTTPLiveStreamingPlaylistServlet.doServletGet(HTTPLiveStreamingPlaylistServlet.java:28)
at sagex.streaming.servlet.SageServlet.doGet(SageServlet.java:60)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:502)
at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:389)
at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:417)
at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230)
at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
at org.mortbay.jetty.handler.rewrite.RewriteHandler.handle(RewriteHandler.java:230)
at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
at org.mortbay.jetty.Server.handle(Server.java:326)
at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:534)
at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:864)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:539)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409)
at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:520)
__________________
SageTCPServer (2.3.5): Open source TCP interface to the SageTV API
MLSageTV (3.1.8)/Sage Media Server (1.13): SageTV plugin for MainLobby/CQC
TaSageTV (2.58)/TaSTVRemote (1.14): Monitor/control SageTV with an Android device
TbSageTV (1.02)/STVRemote (1.11): Monitor/control SageTV with a PlayBook 2
TiSageTV (1.64)/TiSTVRemote (1.09): Monitor/control SageTV with an iPhone/iPod/iPad
Reply With Quote
  #78  
Old 01-17-2011, 11:28 AM
jreichen's Avatar
jreichen jreichen is offline
Sage Icon
 
Join Date: Jul 2004
Posts: 1,192
Quote:
Originally Posted by LehighBri View Post
How would I go about using this URL feature? Reason being, I am having the following issues w/ v1.1.1.42:

-Upon restarting SageTV server (v7.0.23), I am able to watch 2-4 minutes of streaming MPEG4 recorded TV no problem. I am also even able to watch live TV.
-After 2-4 minutes, the streaming just freezes, and no matter how many times I refresh the mobile website and try to re-play the recorded TV, it opens the iOS player but nothing plays back. The only way I can get this to work again is to restart the SageTV server

What can I do to further debug this and/or get your support in trying to figure out why this isn't fully working? Much appreciated.
The URL is
Code:
http://<server>:<port>/stream/HTTPLiveStreamingSegment?ConversionId=3bef0701-c89d-401b-aa83-f7562a8975ab&Command=stop&MediaFileId=11184677
You can get the conversion id from the log file. I'd like to get that working with the web UI but there are a lot of paths the user might take (pause, done, restart within media player, restart from web page, refresh web page, etc) and I need to see how that corresponds to the JavaScript events.

Check and see how many SageTVTranscoder.exe (Sage's ffmpeg on Windows) and ffmpeg processes are running. It will help if you can get the full command line. I think Process Explorer will do that on Windows or maybe you have a better tool. I use the following on Linux
Code:
ps -ef | grep ffmpeg
There will be two processes for each video. One does the transcoding and another does the segmenting.

The instructions in the original post for submitting logs and your system config will always help you get my support
__________________
Server: Intel Core i5 760 Quad, Gigabyte GA-H57M-USB3, 4GB RAM, Gigabyte GeForce 210, 120GB SSD (OS), 1TB SATA, HD HomeRun.
Extender: STP-HD300, Harmony 550 Remote,
Netgear MCA1001 Ethernet over Coax.
SageTV: SageTV Server 7.1.8 on Ubuntu Linux 11.04, SageTV Placeshifter for Mac 6.6.2, SageTV Client 7.0.15 for Windows, Linux Placeshifter 7.1.8 on Server and Client
, Java 1.6.
Plugins: Jetty, Nielm's Web Server, Mobile Web Interface.


Last edited by jreichen; 01-17-2011 at 04:26 PM. Reason: Sage's ffmpeg file is named SageTVTranscoder.exe on Windows
Reply With Quote
  #79  
Old 01-17-2011, 11:35 AM
jreichen's Avatar
jreichen jreichen is offline
Sage Icon
 
Join Date: Jul 2004
Posts: 1,192
Quote:
Originally Posted by megamojo View Post
I'm still getting no play button, and the Watch Now>On This Page appears to do absolutely nothing. Streaming was working just fine before either of the 2 updates from this weekend. Let me know if you need a log file from me. I made a point of restarting the sagetv service even though the updates didn't ask me too.
Quote:
Originally Posted by johnb263 View Post
I have to take back what I said - after updating to the latest release I tested it (without rebooting) and it worked (both WiFi G and 3G). I then rebooted the server and the problem is back. No play button on the video preview, no action on "play on this page".
For anyone with this problem, could you please try rebooting your iPhone/iPad/iPod? There have been times where the streaming stops working and a reboot will fix it for me. (Shocking for an Apple device, I know)

If that doesn't work, check to see if there are any ffmpeg processes running on your server.

Quote:
Originally Posted by megamojo View Post
I also made sure that javascript was turned on on my iphone safari and turned on the debugger there. There were no errors.
Good, I was going to ask you to do that
__________________
Server: Intel Core i5 760 Quad, Gigabyte GA-H57M-USB3, 4GB RAM, Gigabyte GeForce 210, 120GB SSD (OS), 1TB SATA, HD HomeRun.
Extender: STP-HD300, Harmony 550 Remote,
Netgear MCA1001 Ethernet over Coax.
SageTV: SageTV Server 7.1.8 on Ubuntu Linux 11.04, SageTV Placeshifter for Mac 6.6.2, SageTV Client 7.0.15 for Windows, Linux Placeshifter 7.1.8 on Server and Client
, Java 1.6.
Plugins: Jetty, Nielm's Web Server, Mobile Web Interface.

Reply With Quote
  #80  
Old 01-17-2011, 11:38 AM
jreichen's Avatar
jreichen jreichen is offline
Sage Icon
 
Join Date: Jul 2004
Posts: 1,192
Quote:
Originally Posted by AzTech View Post
I know this sounds really strange (I had a hard time believing it myself) but after the 2 updates this weekend I found that when I have the Jetty server logging set to INFO, streaming doesn't work...when I have it set to DEBUG or VERBOSE, it works fine. I have switched back and forth a dozen time and it is completely reproducible for me..
Hmmmm... I always run with DEBUG or VERBOSE. At least it gives me something else to try. Too bad I need the logging though
__________________
Server: Intel Core i5 760 Quad, Gigabyte GA-H57M-USB3, 4GB RAM, Gigabyte GeForce 210, 120GB SSD (OS), 1TB SATA, HD HomeRun.
Extender: STP-HD300, Harmony 550 Remote,
Netgear MCA1001 Ethernet over Coax.
SageTV: SageTV Server 7.1.8 on Ubuntu Linux 11.04, SageTV Placeshifter for Mac 6.6.2, SageTV Client 7.0.15 for Windows, Linux Placeshifter 7.1.8 on Server and Client
, Java 1.6.
Plugins: Jetty, Nielm's Web Server, Mobile Web Interface.

Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Plugin: Mobile Web Interface Version 2 jreichen SageTV v7 Customizations 411 02-28-2021 10:05 PM
Plugin: Mobile Web Interface 1.2 jreichen SageTV Customizations 281 06-17-2011 02:20 PM
FAQ: Mobile Web Interface V2 iOS Streaming jreichen SageTV v7 Customizations 3 11-07-2010 08:28 PM
Wanted: Developer for Web Interface Mobile Brent SageTV Customizations 249 02-09-2009 11:21 PM
Web User Interface + Secure = Broken Streaming Function jmoney579 SageTV Customizations 1 05-28-2008 01:51 AM


All times are GMT -6. The time now is 01:21 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2023, vBulletin Solutions Inc.
Copyright 2003-2005 SageTV, LLC. All rights reserved.