Sign up here and you can log into the forum!

youtube HD

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

Re: youtube HD   

Postby RMerlin » Fri Dec 17, 2010 10:53 am

At this point, it might save you time just to wait for a few days:

http://forum.wdlxtv.com/viewtopic.php?f=38&t=2786
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: youtube HD   

Postby mss » Fri Dec 17, 2010 11:07 am

Hadn't spotted that ... thanks RMerlin

Still - well worth digging out the telnet/ftp skills & taking a look at all the hard work that has/is going into to getting this to were it is today!!!!!

Great work.
mss
Donor
 
Posts: 2
Joined: Mon Sep 20, 2010 10:10 am

Re: youtube HD   

Postby Karlson » Sat Dec 18, 2010 3:47 am

Hi, I have a problem with the firmware 1.02.21_WDLXTV.COM_WDLXTV_LIVE-0.4.3.1.

I wanted to be on Youtube S00Custom HD switch, but are still unable to play YouTube videos more! There always comes the error message: This video is not currently available.

Then I need the player to factory settings again to see YouTube. Why is that?

# # enable YouTube Switcher (You can only use one at a time!)
# # to enable YouTube HD:
# # *** youtubeHD requires setting YOUTUBE_QUALITY too ***
config_tool-c = YOUTUBE_SWITCHER youtubeHD
# # to enable easynews XViD proxy:
# config_tool-c YOUTUBE_SWITCHER = easynews
# # to disable YouTube Switcher:
# config_tool YOUTUBE_SWITCHER-c =''

# # youtubeHD YouTube Switcher quality setting
# config_tool-c YOUTUBE_QUALITY = 270P
# config_tool-c YOUTUBE_QUALITY = 360P
# config_tool-c YOUTUBE_QUALITY = 480P
config_tool-c YOUTUBE_QUALITY = 720P
# config_tool-c YOUTUBE_QUALITY = 1080P

So I had changed the settings and then it stopped going. What do I do bottle?
Karlson
n00b
 
Posts: 17
Joined: Mon May 17, 2010 1:20 pm

Re: youtube HD   

Postby ny888 » Sat Dec 18, 2010 7:33 am

@karlson - YouTube changed something again that caused these problems.

Did you use the new version that RMerlin posted?

http://www.lostrealm.ca/temp/youtubeHD-dec2010-fix.zip
ny888
Donor
 
Posts: 86
Joined: Mon Nov 29, 2010 12:13 pm

Re: youtube HD   

Postby Karlson » Sat Dec 18, 2010 8:02 am

Where do the file copy? I'll start with the file?
Karlson
n00b
 
Posts: 17
Joined: Mon May 17, 2010 1:20 pm

Re: youtube HD   

Postby RMerlin » Sat Dec 18, 2010 9:17 am

You are asking the questions that are already answered in that very thread to which you are posting them :(

http://forum.wdlxtv.com/viewtopic.php?f=2&t=2803
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: youtube HD   

Postby Ancaster » Sat Dec 18, 2010 5:07 pm

Sorry, you guys are right, after I re-telnet into the my WDTVLive, the youtubeHD.php file hadn't changed.
I think then, I am applying the changes wrong. These are the steps I am using:

1. Putty into my device, enter with password, then get into youtubeHD.php by pasting:

cd /etc/webend/youtube-proxy/

cp youtubeHD.php /conf

cd /conf

nano youtubeHD.php

(This is where I get lost, so I proceed to:)

2. Delete the original "function getvideo() {..." and replace it with the script on page 13.

3. Control X to save the modified "youtubeHD.php" file?

I apologize this is pretty basic to some of you, and I haven't done this in a while. I vaguely remember a mount -o option. I ssh into my iPhone4 every few days, whereas telnet into the WDTVLive?... maybe every few months so I'm lost.

Can someone please help me?
Ancaster
n00b
 
Posts: 7
Joined: Sat May 15, 2010 6:48 am

Re: youtube HD   

Postby RMerlin » Sat Dec 18, 2010 5:17 pm

Ancaster wrote:Can someone please help me?


http://forum.wdlxtv.com/viewtopic.php?f=14&t=2&start=100#p20861
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: youtube HD   

Postby Koby » Sun Dec 19, 2010 7:20 am

Thanks everyone! I got this fixed, even as a total noob. As my contribution, here's a compiled list of steps update with the new paths:

Log into putty

cd /usr/share/webend/youtube-proxy/

cp youtubeHD.php /conf

cd /conf

nano youtubeHD.php

find the “function getvideo” section, delete,

copy: code quoted below

Go back to putty, right click to paste and hit enter.

Ctrl-X to exit, yes to save changes

Copy: mount -o bind /conf/youtubeHD.php /usr/share/webend/youtube-proxy/youtubeHD.php


Go back to putty, right click to paste and hit enter.

EACH TIME you pull the power cord you'll have to run the final step (mount -o) again, until b-rad reissues his excellent firmware.




RMerlin wrote:Here's a fully functional (as far as I can tell) fix. This uses the new format parser by ramanvijay, with a few fixes:

  • Adapted to up-to-date youtubeHD code
  • Fixed fallback to lower resolution if the one requested is not available
  • Implemented SD fallback if no supported resolutions are available

Code: Select all
function getvideo() {

      $url = "http://www.youtube.com/watch?v=" . $_GET['id'];
      $html = file_get_contents($url);

      if(preg_match('/&fmt_url_map=([^&$]*)/', $html, $fmt_url_map)) {

       foreach(explode(',',urldecode($fmt_url_map[1])) as $var_fmt_url_map) {
          list($yt_qlty,$yt_url) = explode('|',$var_fmt_url_map);
          $hash_qlty_url[$yt_qlty] = $yt_url ;
       }

       $quality = "270P";

       if (file_exists('/conf/config')) {
         $config = file_get_contents('/conf/config');
         if(preg_match('/YOUTUBE_QUALITY=\'(.+)\'/', $config, $config_quality)) {
            $quality = $config_quality[1];
          }
        }

        $quality_map = array('1080P' => 37, '720P' => 22, '480P' => 35, '360P' => 34, '270P' => 18);
        $quality_map_values = array_values($quality_map);

        $index = array_search($quality_map[$quality], $quality_map_values);
        while (!isset($hash_qlty_url[$quality_map_values[$index]]) && ($index < (count($quality_map_values) - 1))) {
          $index++;
        }

        $quality = $quality_map_values[$index];
//        exec("logger -t YoutubeHD 'Q:".$quality." U:".$hash_qlty_url[$quality]."'");

        if ($hash_qlty_url[$quality]) {
            echo "<?xml?><entry><media:group><media:content url='" . str_replace('&', "&amp;", $hash_qlty_url[$quality]) . "' yt:format='3'/></media:group></entry>";
        } else {
            echo "<?xml?><entry><media:group><media:content url='" . str_replace('&', "&amp;", ($_SESSION['id_' . str_replace("-","_",$_GET['id'])])) . "' yt:format='3'/></media:group></entry>";
        }

      }
    }
Koby
n00b
 
Posts: 1
Joined: Wed Dec 08, 2010 8:59 pm

Re: youtube HD   

Postby recliq » Sun Dec 19, 2010 8:07 am

put the mount command in
Code: Select all
/conf/S99user-script

and you don't have to enter it after each reboot!
:ugeek:
­WDLXTV Project Maintainer
-:] If you like my contributions feel free to donate for a beer or a new flash drive. ...and always remember: RTFM! (README, FAQ, WIKI) [:-
User avatar
recliq
WDLXTV Team
 
Posts: 5021
Joined: Thu Apr 15, 2010 8:09 am
Location: Kiel, Germany

PreviousNext

Return to WDTVL Proxy Project

Who is online

Users browsing this forum: No registered users and 1 guest