How to successfully install GTK Youtube Viewer 3.1.4 on ChaletOS

View previous topic View next topic Go down

How to successfully install GTK Youtube Viewer 3.1.4 on ChaletOS

Post by xyis1 on Sat May 09, 2015 8:44 pm


Firefox is the eternal best youtube viewer than any other app...

To know more about youtube in firefox go to this link...

How to play HD - High Definition HTML5 videos in Firefox in ChaletOS


YouTube Viewer: A Complete YouTube Client For ChaletOS - Linux [Ubuntu PPA]





sudo add-apt-repository ppa:mc3man/mpv-tests
sudo apt-get update
sudo apt-get install mpv

sudo add-apt-repository ppa:nilarimogard/webupd8
sudo apt-get update
sudo apt-get install youtube-viewer

Error ----

Can't locate LWP/UserAgent/Cached.pm in @INC (you may need to install the
LWP::UserAgent::Cached module) (@INC contains: /etc/perl /usr/local
/lib/perl/5.18.2 /usr/local/share/perl/5.18.2 /usr/lib/perl5 /usr/share
/perl5 /usr/lib/perl/5.18 /usr/share/perl/5.18 /usr/local/lib/site_perl .)
at /usr/share/perl/5.18/WWW/YoutubeViewer.pm line 242.

Solution ----

sudo perl -MCPAN -e 'install LWP::UserAgent::Cached'

Another error ----

Can't locate JSON.pm in @INC (you may need to install the JSON module) (@INC contains: ../lib ../lib /etc/perl
 /usr/local/lib/perl/5.18.2 /usr/local/share/perl/5.18.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.18
 /usr/share/perl/5.18 /usr/local/lib/site_perl .) at ./blimp line 55.
 BEGIN failed--compilation aborted at ./blimp line 55.

I got these errors with some numbers changed, nonetheless the solution did work.

Solution ----

PERL_MM_USE_DEFAULT=1 sudo perl -MCPAN -e 'install JSON'

Now I can see it opened, it seems to be working but, it doesn't.

I tried to login with youtube account and I got this error:

Can't locate object method "basic_json_parser" via package "WWW::YoutubeViewer::Utils" at /usr/bin/gtk-youtube-viewer line 895.

I downloaded this file https://github.com/trizen/youtube-viewer/blob/master/Build.PL and named it as Build.pl and made it executable and dragged it into terminal and I get this message:

Checking prerequisites...
 recommends:
   *  Mozilla::CA is not installed
   *  Term::ReadLine::Gnu::XS is not installed

ERRORS/WARNINGS FOUND IN PREREQUISITES.  You may wish to install the versions
of the modules indicated above before proceeding with this installation

Run 'Build installdeps' to install missing prerequisites.

Can't find file lib/WWW/YoutubeViewer.pm to determine version at /usr/share/perl/5.18/Module/Build/Base.pm line 1193.

I can't open a video in this player and this solution solved the problem, I solved the problem but still can't make it accept the account link code... can't link account but can play any video using this settings...

This is how you can do it: in Youtube Viewer navigate to "Menu" --> "Preferences", you'll get a script opened, find these lines:

video_player_selected      => "mplayer",
video_players              => {
                           mplayer => {
                             arg   => "-prefer-ipv4 -really-quiet-cache %d -cache-min %d",
                             audio => "-audiofile *AUDIO*",
                             cmd   => "/usr/bin/mplayer",
                             fs    => "-fs",
                             srt   => "-sub *SUB*",
                           },
                           mpv => {
                             arg   => "--really-quiet",

then simply change the line:

cmd   => "/usr/bin/mplayer",

to e.g.:

cmd => "/usr/bin/mpv --profile=pseudo-gui",

A small fix/improvement when using mpv if you want to avoid breaking a link into threads when clicking on the video to play remove this argument line from mplayer section:

arg   => "-prefer-ipv4 -really-quiet -cache %d -cache-min %d",


In smtube we can select the resolution to save bandwidth.

___________________________________________________________________________________________________________________________________
Stay in touch with reality. All quotes are nothing but frame of mind.
I found the truth. The problem is health. The solution is health.
avatar
xyis1

Posts : 56
Join date : 2015-05-04
Location : India

http://xyis1.blogspot.in/

Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum