Sign up here and you can log into the forum!

YoutubeHD fix (August 2011)

youtube/live365/pandora/flickr replacements & other web services

YoutubeHD fix (August 2011)   

Postby RMerlin » Fri Aug 05, 2011 9:09 am

Youtube did quite a few changes to their website, which broke YoutubeHD.

I rewrote the scraper to deal with the new format. To get the new proxy code on your WDTV:

WDLXTV 0.4.7.3:
Try rebooting your WDTV, and see if YoutubeHD works again. If not, you need to force the download of the updated proxies. To do so, create (or modify if you already have one) /conf/S99user-script, so it contains:

Code: Select all
#!/bin/sh

# any existing content

/usr/bin/getproxies


Then reboot.

WDLXTV below 0.4.7.3:
Upgrade to 0.4.7.3 or newer, or fix it yourself - it's not trivial, but there are posts on the forums showing you how to patch it.
Last edited by RMerlin on Sat Oct 29, 2011 9:10 pm, edited 1 time in total.
WDLXTV Webend maintainer. Visit http://www.lostrealm.ca/wdlxtv to see my other WDLXTV projects.
If you like my work, please consider donating.
User avatar
RMerlin
WDLXTV Team
 
Posts: 3236
Joined: Sat Jun 26, 2010 9:25 am
Location: Montreal, Canada

Re: YoutubeHD fix (August 2011)   

Postby BonzenPaule » Fri Aug 05, 2011 11:10 am

Working with 1.02.21 on a live.
Nice work and thanks a lot :)

Sincerely
BonzenPaule
BonzenPaule
Donor
 
Posts: 83
Joined: Thu Oct 28, 2010 10:40 am
Location: Rostock, Germany

Re: YoutubeHD fix (August 2011)   

Postby harry411 » Fri Aug 05, 2011 11:21 pm

RMerlin wrote:Youtube did quite a few changes to their website, which broke YoutubeHD.

I rewrote the scraper to deal with the new format. To get the new proxy code on your WDTV:

WDLXTV 0.4.7.3 and newer:
Try rebooting your WDTV, and see if YoutubeHD works again. If not, you need to force the download of the updated proxies. To do so, create (or modify if you already have one) /conf/S99user-script, so it contains:

Code: Select all
#!/bin/sh

# any existing content

/usr/bin/getproxies


Then reboot.

WDLXTV below 0.4.7.3:
Upgrade to 0.4.7.3, or fix it yourself - it's not trivial, but there are posts on the forums showing you how to patch it.




It works perfectly by following your instruction. This is the first time I can view restricted you tube video by enabling youtube HD. All HD video quality is superb!
You guys are genius! Thanks a lot.
harry411
n00b
 
Posts: 3
Joined: Fri Aug 05, 2011 11:16 pm

Re: YoutubeHD fix (August 2011)   

Postby xlpbllpblx » Sat Aug 06, 2011 7:49 am

Genious!!!!
Thank you
xlpbllpblx
Donor
 
Posts: 5
Joined: Mon Jul 25, 2011 8:01 am
Location: Québec/Canada

Re: YoutubeHD fix (August 2011)   

Postby jk2011 » Sat Aug 06, 2011 8:07 am

I am running 1.03.49_V_WDLXTV.COM_WDLXTV_LIVE-0.4.7.3.

This is what I ended with after running getproxies:

Code: Select all
# ls -l /var/www/proxy
lrwxrwxrwx    1 root     root           14 Dec 31  1969 /var/www/proxy -> /tmp/www-proxy

# ls -l /var/www/proxy/
lrwxrwxrwx    1 root     root           44 Dec 31 16:00 easynews.php -> /usr/share/webend/youtube-proxy/easynews.php
lrwxrwxrwx    1 root     root           51 Dec 31 16:00 shoutcast-proxy.php -> /usr/share/webend/live365-proxy/shoutcast-proxy.php
-rw-r--r--    1 root     root        14883 Dec 31  2010 shoutcast.php
lrwxrwxrwx    1 root     root           28 Dec 31 16:00 youtube-proxy.php -> /var/www/proxy/youtubeHD.php
-rw-r--r--    1 root     root         6518 Aug  4  2011 youtubeHD.php


However youtube HD does not work yet.

Here is the content in /tmp/messages.txt when the request is sent for video
Code: Select all
Dec 31 17:46:52 WDLXTV-1abda user.notice YoutubeHD: Requesting video ID piZrjDTx2eg
Dec 31 17:46:52 WDLXTV-1abda user.notice YoutubeHD: Playback - Quality:35 Url:http://o-o.preferred.xxxxxxxxxxx.v15.lscache8.c.youtube.com/videoplayback?sparams=id%2Cexpire%2Cip%2Cipbits%2Citag%2Calgorithm%2Cburst%2Cfactor&fexp=900161&algorithm=throttle-factor&itag=35&ip=202.



Any sugestion?
jk2011
Donor
 
Posts: 32
Joined: Sat Jul 16, 2011 2:40 am

Re: YoutubeHD fix (August 2011)   

Postby RMerlin » Sat Aug 06, 2011 9:04 am

Quality level 35 is Flash-based. Youtube also upgraded the required version of Flash, so it's possible the WDTV can no longer decode these.

Try using a higher YoutubeHD quality such as 720P, so to force it to an mp4 format (assuming the video supports that resolution).

Otherwise, I will need to look at that specific video - will have to wait tomorrow.
WDLXTV Webend maintainer. Visit http://www.lostrealm.ca/wdlxtv to see my other WDLXTV projects.
If you like my work, please consider donating.
User avatar
RMerlin
WDLXTV Team
 
Posts: 3236
Joined: Sat Jun 26, 2010 9:25 am
Location: Montreal, Canada

Re: YoutubeHD fix (August 2011)   

Postby jefbuan » Sat Aug 06, 2011 9:43 am

same here i cant get my youtube HD work,,i already set it to 720P
here's my log message:
Jan 1 00:09:05 WDLXTV-8f727 user.notice YoutubeHD: Requesting list: /feeds/api/videos?v=2&format=5&q=jlo&start-index=1&max-results=5&orderby=relevance
Jan 1 00:09:06 WDLXTV-8f727 user.notice YoutubeHD: Requesting list: /feeds/api/videos?v=2&format=5&q=jlo&start-index=6&max-results=1&orderby=relevance
Jan 1 00:09:10 WDLXTV-8f727 user.notice YoutubeHD: Requesting video ID t4H_Zoh7G5A
Jan 1 00:09:10 WDLXTV-8f727 user.notice YoutubeHD: No fmt_map found - falling back to basic playback
jefbuan
n00b
 
Posts: 15
Joined: Sat Jun 19, 2010 11:43 am

Re: YoutubeHD fix (August 2011)   

Postby jk2011 » Sat Aug 06, 2011 9:54 am

You Tube no longer offers 720p for most of the videos. So I suppose we will be stuck now.

The example video was not picked by search, but just using the Favourites menu.
jk2011
Donor
 
Posts: 32
Joined: Sat Jul 16, 2011 2:40 am

Re: YoutubeHD fix (August 2011)   

Postby mad_ady » Sat Aug 06, 2011 10:18 am

jk2011 - can you post the video id so we can test it?

Sorry, I'm an idiot - didn't see the id in the logs... I'll give it a try

Ok, I've tested this clip piZrjDTx2eg with all the quality levels using the youtube-subscriptions proxy and all the qualities play back just fine.
The interesting thing is youtube added some new formats - for instance quality 45 (720P) is video/webm. Quality 22 (720P) still exists and returns video/mp4 - which plays fine.

For me, this means youtube will be moving away from flash in the future, but the risk is - it may be moving away from mp4 as well which is not good news.

I'll redo the tests with the youtubehd proxy and update you.

Edit 3: Ok, tested with youtube-hd proxy and 360P isn't playing back, but the rest are fine.
The difference is that youtune-hd uses quality id 34 for 360P (which is a flv container), while in youtube-subscriptions proxy I moved to quality id 18 - which is 360P inside a mp4 container.

RMerlin, if you wish, the easy fix would be to chage id 34 to id 18. So far, I haven't seen videos without quality 18, but with quality 34.
User avatar
mad_ady
Developer
 
Posts: 4520
Joined: Fri Nov 05, 2010 9:08 am
Location: Bucharest, Romania

Re: YoutubeHD fix (August 2011)   

Postby RMerlin » Sat Aug 06, 2011 7:47 pm

mad_ady wrote:Edit 3: Ok, tested with youtube-hd proxy and 360P isn't playing back, but the rest are fine.
The difference is that youtune-hd uses quality id 34 for 360P (which is a flv container), while in youtube-subscriptions proxy I moved to quality id 18 - which is 360P inside a mp4 container.

RMerlin, if you wish, the easy fix would be to chage id 34 to id 18. So far, I haven't seen videos without quality 18, but with quality 34.


For some reason, the original YoutubeHD author set 18 as the desired quality for 270P (which doesn't even exist in the first place).

I'll make both 360P and 270P (actually shown as 240P now on the webend) request quality 18, so not to break it for people still running 0.4.7.3's WEC.

I'll try to post the change later tonight - just reboot (or rerun getproxies) to try the new code then.

Can you confirm me that none of the current flash containers work anymore with the WDTV?
WDLXTV Webend maintainer. Visit http://www.lostrealm.ca/wdlxtv to see my other WDLXTV projects.
If you like my work, please consider donating.
User avatar
RMerlin
WDLXTV Team
 
Posts: 3236
Joined: Sat Jun 26, 2010 9:25 am
Location: Montreal, Canada

Next

Return to WDTVL Proxy Project

Who is online

Users browsing this forum: No registered users and 2 guests