Sign up here and you can log into the forum!

Plugin: YouTube Subscriptions + new subscription videos

Discussion, features, plugins--everything about zoster's UMSP UPnP Media Server software

Re: Plugin: YouTube Subscriptions + new subscription videos   

Postby dzebrys » Fri Mar 09, 2012 1:19 am

it would be interesting to check that myth. yesterday i've tested how HD trailers are fetched from youtube using native function [720p] and
it was like my max available downlink bandwidth has been used from the start [observed using rt bandwidth monitor on router]. after ten or some seconds
bandwidth drops and trailer was probably fully downloaded and sourced from RAM. there is 512MB (minus system demands) so most likely whole trailer fits
easily. that would be not true for streaming large files [maybe here is a problem with dmaosd? point when download is resumed when buffer is run-down.
maybe its too late and unable to accumulate enough data on time with high bitrate streams].

afterwards i've changed to usmp trailer addict and choose same title. it seems as same source with same quality. this time it was much different.
only 1/4 of bandwidth utilized and playback stuttering.

so the size matter. youtube with its cache servers do its job well.
sadly, it was real late and has not cross my mind to do same test with subscriptions plugin. i'll check that on weekend.
User avatar
dzebrys
DLX'er
 
Posts: 130
Joined: Mon Feb 14, 2011 1:49 am
Location: poland

Re: Plugin: YouTube Subscriptions + new subscription videos   

Postby mad_ady » Fri Mar 09, 2012 3:35 am

Yes, a browser behaves completely different than a media player, because it usually doesn't have memory constraints.
The problem is the rendering (and buffering) is handled inside MediaLogic and we can't easily increase the buffer size.

Possible workarounds for this problem would be:
* copying the file locally before playback
* downloading the file's content inside the proxy and use a proxy-buffer - haven't tried it, but it would probably be slow and might run into php timeout issues... The idea is to "fgets" 10M of data in advance of what MediaLogic requests. However, this might introduce additional stuttering, because you would have to pass the available data back to medialogic as soon as possible - and if medialogic isn't ready to receive the data it will block your request and prevent you from getting more data in the meantime...

Hmm... one possible approach would be to buffer a known amount of data before starting playback (say you buffer 10M), and once you have 10M you fpassthru it to the renderer (provided it doesn't time out waiting). The problem is - your proxy will not make any additional requests for the extra data until those 10M have been consumed. So stuttering will re-appear after those 10M...

You would have to implement a software buffer and have the proxy run the whole time (it currently ends execution when running fpassthru) for this to work... And I doubt it will work without some threaded implementation (one thread to get the data and add it to the buffer and the other thread to pass the data to MediaLogic). Does anyone have experience with threaded php implementations?
User avatar
mad_ady
Developer
 
Posts: 3002
Joined: Fri Nov 05, 2010 9:08 am
Location: Bucharest, Romania

Re: Plugin: YouTube Subscriptions + new subscription videos   

Postby mad_ady » Fri Mar 09, 2012 4:55 am

I've updated the plugin to support special characters in the password. Leemonoid (or somebody else)- can you test with your old password?
User avatar
mad_ady
Developer
 
Posts: 3002
Joined: Fri Nov 05, 2010 9:08 am
Location: Bucharest, Romania

Re: Plugin: YouTube Subscriptions + new subscription videos   

Postby mad_ady » Sat Mar 10, 2012 12:45 pm

Made another update to fix search (seems nobody was using it and it was silently broken). Worked just fine under umsp-test, but failed to include the right info.php when running on the wdtv. Seems include_once has a very different behaviour than include()... :roll:

Now it should work fine.
User avatar
mad_ady
Developer
 
Posts: 3002
Joined: Fri Nov 05, 2010 9:08 am
Location: Bucharest, Romania

Re: Plugin: YouTube Subscriptions + new subscription videos   

Postby mad_ady » Wed Apr 11, 2012 9:19 am

Made a change in preparation for the new UMSP_LAN feature that will be part of the future firmware (it will allow you to use UMSP plugins on other devices in your LAN, streaming the content from the WDTV). Changes include some extra escaping of special characters.
Let me know if I've broken anything...
User avatar
mad_ady
Developer
 
Posts: 3002
Joined: Fri Nov 05, 2010 9:08 am
Location: Bucharest, Romania

Re: Plugin: YouTube Subscriptions + new subscription videos   

Postby S4bb3 » Tue Apr 17, 2012 11:25 am

FYI: I use this plugin everyday.
Thank you.
S4bb3
Donor
 
Posts: 41
Joined: Fri Apr 30, 2010 10:01 pm

Re: Plugin: YouTube Subscriptions + new subscription videos   

Postby mad_ady » Tue Apr 17, 2012 11:50 am

Me too :P
User avatar
mad_ady
Developer
 
Posts: 3002
Joined: Fri Nov 05, 2010 9:08 am
Location: Bucharest, Romania

Re: Plugin: YouTube Subscriptions + new subscription videos   

Postby namtih » Sat Apr 28, 2012 1:22 am

Is the plugin still working for everybody?
For me it's only downloading some channels, but not all I've subscribed to. Last weekend all was working fine. When I log in to YouTube all channels are still there.
Moved on to the RaspberryPi + xbian (XBMC).
Thank you all for 2 great years and all your work to provide such fantastic firmware. Also a big thank you to the guys in the DD thread for all their ongoing support.
Good luck to all of you and perhaps we will see us in any Raspberry forum, cheers :-)
namtih
Donor
 
Posts: 238
Joined: Thu Dec 23, 2010 6:41 am
Location: Germany

Re: Plugin: YouTube Subscriptions + new subscription videos   

Postby S4bb3 » Sat Apr 28, 2012 1:49 am

Same for me, but the Youtube App for iPad is having the same issue so it has to be a major issue.
S4bb3
Donor
 
Posts: 41
Joined: Fri Apr 30, 2010 10:01 pm

Re: Plugin: YouTube Subscriptions + new subscription videos   

Postby namtih » Sat Apr 28, 2012 2:12 am

Thanks for info. Then I think we just have to wait some time :)
Moved on to the RaspberryPi + xbian (XBMC).
Thank you all for 2 great years and all your work to provide such fantastic firmware. Also a big thank you to the guys in the DD thread for all their ongoing support.
Good luck to all of you and perhaps we will see us in any Raspberry forum, cheers :-)
namtih
Donor
 
Posts: 238
Joined: Thu Dec 23, 2010 6:41 am
Location: Germany

PreviousNext

Return to UMSP Media Server

Who is online

Users browsing this forum: No registered users and 3 guests