Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Howto watch YouTube with only free software in Debian

Share your HowTo, Documentation, Tips and Tricks. Not for support questions!.
Message
Author
kedaha
Posts: 3521
Joined: 2008-05-24 12:26
Has thanked: 33 times
Been thanked: 77 times

Re: Howto watch YouTube with only free software in Debian

#46 Post by kedaha »

I set up the latest version of minitube, 1.4 on my 64-bit squeeze system:
(The following assumes:

Code: Select all

aptitude install build-essential qt4-dev-tools libphonon-dev
and the dependencies are satisfied):

Code: Select all

aptitude install libqtgui4 libqt4-xml libqt4-network libqt4-dbus phonon-backend-gstreamer gstreamer0.10-ffmpeg gstreamer0.10-plugins-bad
...

Code: Select all

$ wget http://flavio.tordini.org/files/minitube/minitube-1.4.tar.gz
$ tar xvzf minitube-1.4.tar.gz
$ cd minitube
$ qmake && make

Code: Select all

$ ./build/target/minitube
You'll find the executable, minitube in /minitube/build/target wherever you put it.
[Edit] After finding the executable, for example, on my system:
/home/kedaha/Downloads/sources/minitube/build/target/minitube
you can just edit the Gnome menu (by left-clicking on the Debian swirl icon in the top left-hand corner), then click "Sound & Video" and then, in the right column, select "Add entry". name it and cut and paste your path (like the example just given).
Note for new users: if you're not sure what the path to the executable is on your own system, just right-click on the executable, drag it to a terminal, and you'll find out. You don't need the quotation marks.
OK, it's a bit of an amateurish way to do it but it works!
Last edited by kedaha on 2011-05-29 21:05, edited 1 time in total.
DebianStable

Code: Select all

$ vrms

No non-free or contrib packages installed on debian!  rms would be proud.

morean51
Posts: 12
Joined: 2011-03-07 10:38

Re: Howto watch YouTube with only free software in Debian

#47 Post by morean51 »

thank you for the suggestions

kedaha
Posts: 3521
Joined: 2008-05-24 12:26
Has thanked: 33 times
Been thanked: 77 times

Re: Howto watch YouTube with only free software in Debian

#48 Post by kedaha »

morean51 wrote:thank you for the suggestions
I appreciate the thank you. :) I'm glad if other forum members find (at least some of them!) my posts useful.
DebianStable

Code: Select all

$ vrms

No non-free or contrib packages installed on debian!  rms would be proud.

User avatar
stevepusser
Posts: 12930
Joined: 2009-10-06 05:53
Has thanked: 41 times
Been thanked: 71 times

Re: Howto watch YouTube with only free software in Debian

#49 Post by stevepusser »

kedaha wrote:
morean51 wrote:thank you for the suggestions
I appreciate the thank you. :) I'm glad if other forum members find (at least some of them!) my posts useful.
You can also drop this debian folder into the source folder and build a proper debian package that will appear in the menu automatically & stuff (I stole most of it from the Ubuntu PPA. Just add it, install the build-depends as above, and add build tools:

Code: Select all

 aptitude install debhelper dpkg-dev devscripts fakeroot cdbs
and build the deb with

Code: Select all

debuild binary
Steve (damn package won't build on QT 4.7, though.)
Attachments
debian.zip
(5.92 KiB) Downloaded 437 times
MX Linux packager and developer

kedaha
Posts: 3521
Joined: 2008-05-24 12:26
Has thanked: 33 times
Been thanked: 77 times

Re: Howto watch YouTube with only free software in Debian

#50 Post by kedaha »

Edited 28 March 2011:
Edited 6 April
Two methods to set up the latest version of Minitube 1.4.1:
One; Download and install, using gdebi, stevepusser's repackaged deb from:
http://main.mepis-deb.org/mepiscr/testr ... /minitube/

If Minitube does not show up in the Gnome menu under "Sound & Video" add the entry manually:
1. Right-click on Debian swirl in top-left hand corner.
2. Select "Edit Menus"
3. In the main Menu Column on left, select Sound & Video
4. Now select + New Item over on the right.

In the Launcher Properties Box, enter the name, command and comment:
Type: Application
Name: Minitube
Command: /usr/bin/minitube
Comment: Native YouTube Client
5. If necessary, select the appropriate icon (the tv icon).

However, on 64-bit Squeeze system, I couldn't install Minitube 1.4.1 this way because: gdebi notified:
Error: Dependency is not satisfiable: libqtcore4 (>= 4:4.7.0~beta1) Therefore:

Second Method:
It can also be done manually - the example is on 64-bit Squeeze:
(The following assumes:

Code: Select all

aptitude install build-essential qt4-dev-tools libphonon-dev
and the dependencies are satisfied):

Code: Select all

aptitude install libqtgui4 libqt4-xml libqt4-network libqt4-dbus phonon-backend-gstreamer gstreamer0.10-ffmpeg gstreamer0.10-plugins-bad
...

Code: Select all

$ wget http://flavio.tordini.org/files/minitube/minitube-1.4.1.tar.gz
$ tar xvzf minitube-1.4.1.tar.gz
$ cd minitube
$ qmake && make

Code: Select all

$ ./build/target/minitube
You'll find the executable in '/home/youruser/minitube/build/target/minitube'
To add Minitube to Gnome menu:
1. Right-click on Debian swirl in top-left hand corner.
2. Select "Edit Menus"
3. In the main Menu Column on left, select Sound & Video
4. Now select + New Item over on the right.
In the Launcher Properties Box, enter the name, command and comment:
Type: Application
Name: Minitube
Command: '/home/youruser/minitube/build/target/minitube'
(Note for new users: Please substitute your user name for the italicized youruser!)
Comment: Native YouTube Client
5. Finally, select the appropriate icon (the tv icon).
DebianStable

Code: Select all

$ vrms

No non-free or contrib packages installed on debian!  rms would be proud.

secipolla
Posts: 1127
Joined: 2010-06-21 14:20

Re: Howto watch YouTube with only free software in Debian

#51 Post by secipolla »

Just a heads up to the webm option in youtube.
Go to http://youtube.com/html5 and opt in for the html5 trial (if you clear cookies when quitting the browser you should opt in html5 everytime before watching YT).
Now the videos will use the webm format.
Modern browsers can reproduce them well (Firefox4, Google Chrome/Chromium, Midori etc.).
I don't have Flash installed and watch YT videos in Midori like that. I use Chrome too and although it has Flash built-in I opt for the webm version.
I have a very modest Internet connection and a modest hardware and the webm videos look quite better than the same videos in Flash. Besides that they don't leave those infamous cookies.

I just can't give a testimony about fullscreen or HD videos in webm as my equipment wouldn't allow me to try anyway.

eric1959
Posts: 1298
Joined: 2008-12-15 13:17
Location: Amsterdam

Re: Howto watch YouTube with only free software in Debian

#52 Post by eric1959 »

Go to http://youtube.com/html5 and opt in for the html5 trial
I get higher cpu usage with that option....( compared to flash 64 bit )
Debian Bits And Snips
Squeeze, Gnome, amd64, Intel Core i3-530, Geforce GT330

kedaha
Posts: 3521
Joined: 2008-05-24 12:26
Has thanked: 33 times
Been thanked: 77 times

Re: Howto watch YouTube with only free software in Debian

#53 Post by kedaha »

Post removed because edited by mistake but was outdated anyway.
Last edited by kedaha on 2011-11-06 18:21, edited 3 times in total.
DebianStable

Code: Select all

$ vrms

No non-free or contrib packages installed on debian!  rms would be proud.

User avatar
stevepusser
Posts: 12930
Joined: 2009-10-06 05:53
Has thanked: 41 times
Been thanked: 71 times

Re: Howto watch YouTube with only free software in Debian

#54 Post by stevepusser »

The mcr8.5 packages of minitube 1.4.3 here: http://main.mepis-deb.org/mepiscr/testr ... /minitube/
were built against a version of QT 4.5.3 and should work just fine in Squeeze, or you can download and build the sources yourself into debs. I found a trick for the build-depends that only will require libqtwebkit-dev if the QT 4 version is >= 4.7. This aids backporting and saves me time when building multiple versions (less manual editing).

Umplayer seems to offer much of the same Youtube functionality; I wonder if the code was reused...They are both QT 4 applications.
MX Linux packager and developer

geazzy
Posts: 27
Joined: 2011-07-02 05:39

Re: Howto watch YouTube with only free software in Debian

#55 Post by geazzy »

great job bro :)

User avatar
stevepusser
Posts: 12930
Joined: 2009-10-06 05:53
Has thanked: 41 times
Been thanked: 71 times

Re: Howto watch YouTube with only free software in Debian

#56 Post by stevepusser »

The latest Youtube API changes have broken minitube 1.43 and UMPlayer, but versions 1.5 and svn 174 for the respective programs do fix the problem. You can use the /debian folder from the previous version to build the new source into deb packages, remembering to increment the /debian/changelog accordingly. I'm building MEPIS packages that should also work on Squeeze, too.
MX Linux packager and developer

secipolla
Posts: 1127
Joined: 2010-06-21 14:20

Re: Howto watch YouTube with only free software in Debian

#57 Post by secipolla »

Good to know, the Totem YT plugin isn't working either then I installed minitube just to evaluate it and it was plain broken too.
I must have mentioned before but xt7-player (in kde-apps.org) works with YT too (mplayer based). I didn't test the latest version though.

User avatar
stevepusser
Posts: 12930
Joined: 2009-10-06 05:53
Has thanked: 41 times
Been thanked: 71 times

Re: Howto watch YouTube with only free software in Debian

#58 Post by stevepusser »

Umplayer fixed builds here:

http://dl.dropbox.com/u/1540715/umplayer-svn174.zip

Minitube 1.5: https://docs.google.com/viewer?a=v&pid= ... j&hl=en_US

Squeeze users need the mcr85 versions, since the mcr110 packages require QT 4.7.
MX Linux packager and developer

kedaha
Posts: 3521
Joined: 2008-05-24 12:26
Has thanked: 33 times
Been thanked: 77 times

Re: Howto watch YouTube with only free software in Debian

#59 Post by kedaha »

Another way to install Minitube 1.5 is to download the 32bit binaries from the site and make a minitube_.deb package using checkinstall:
Requires:

Code: Select all

# aptitude install build-essential checkinstall qt4-dev-tools libphonon-dev && aptitude install libqtgui4 libqt4-xml libqt4-network libqt4-dbus phonon-backend-gstreamer gstreamer0.10-ffmpeg gstreamer0.10-plugins-bad
As normal user:

Code: Select all

$ wget http://flavio.tordini.org/files/minitube/minitube-1.5.tar.gz
$ tar xvzf minitube-1.5.tar.gz
$ cd minitube
$ qmake && make
Now do:

Code: Select all

$ su
Password
# checkinstall
Optional: In reply to checkinstall's "Please write a description for the package" just put: Native YouTube Client and press enter twice.
Continue and Minitube 1.5 will be installed system-wide and visible via Synaptic.
DebianStable

Code: Select all

$ vrms

No non-free or contrib packages installed on debian!  rms would be proud.

User avatar
stevepusser
Posts: 12930
Joined: 2009-10-06 05:53
Has thanked: 41 times
Been thanked: 71 times

Re: Howto watch YouTube with only free software in Debian

#60 Post by stevepusser »

kedaha wrote:Another way to install Minitube 1.5 is to download the 32bit binaries from the site and make a minitube_.deb package using checkinstall:
Requires:

Code: Select all

# aptitude install build-essential checkinstall qt4-dev-tools libphonon-dev && aptitude install libqtgui4 libqt4-xml libqt4-network libqt4-dbus phonon-backend-gstreamer gstreamer0.10-ffmpeg gstreamer0.10-plugins-bad
As normal user:

Code: Select all

$ wget http://flavio.tordini.org/files/minitube/minitube-1.5.tar.gz
$ tar xvzf minitube-1.5.tar.gz
$ cd minitube
$ qmake && make
Now do:

Code: Select all

$ su
Password
# checkinstall
Optional: In reply to checkinstall's "Please write a description for the package" just put: Native YouTube Client and press enter twice.
Continue and Minitube 1.5 will be installed system-wide and visible via Synaptic.

That looks like the "qmake && make" step does a complete recompile from the source code. In that case, why not just rebuild proper Debian packages from the source files that I've included? It's probably is a bit easier, since the descriptions, etc are already in there, and the dependencies for the packages get automatically determined and added to the package: https://sites.google.com/site/stevosfil ... kports.txt
MX Linux packager and developer

User avatar
nadir
Posts: 5961
Joined: 2009-10-05 22:06
Location: away

Re: Howto watch YouTube with only free software in Debian

#61 Post by nadir »

minitube 1.5 arrived in sid, 2011-08-15, and works (at least here).
"I am not fine with it, so there is nothing for me to do but stand aside." M.D.

kedaha
Posts: 3521
Joined: 2008-05-24 12:26
Has thanked: 33 times
Been thanked: 77 times

Re: Howto watch YouTube with only free software in Debian

#62 Post by kedaha »

The latest version 1.8 of Minitube is available but instructions are the same as above for version 1.6 and previous for Squeeze thus:
Prerequisites:

Code: Select all

# aptitude install build-essential qt4-dev-tools libphonon-dev libqtgui4 libqt4-xml libqt4-network libqt4-dbus phonon-backend-gstreamer gstreamer0.10-ffmpeg gstreamer0.10-plugins-bad checkinstall
As normal user:

Code: Select all

cd ~/ && mkdir tmp && cd tmp/
wget http://flavio.tordini.org/files/minitube/minitube-1.8.tar.gz
tar xvzf minitube-1.8.tar.gz
cd minitube
qmake-qt4 && make
(qt3 is no good)
su to root:

Code: Select all

checkinstall
Optional: When it asks for a description for the package:" type Native YouTube Client and press enter twice.
DebianStable

Code: Select all

$ vrms

No non-free or contrib packages installed on debian!  rms would be proud.

kedaha
Posts: 3521
Joined: 2008-05-24 12:26
Has thanked: 33 times
Been thanked: 77 times

Re: Howto watch YouTube with only free software in Debian

#63 Post by kedaha »

A new version of Minitube1.9 is available and it works in stable!: To get it up and running directly from source:
The usual prerequisites:

Code: Select all

# aptitude install build-essential qt4-dev-tools libphonon-dev libqtgui4 libqt4-xml libqt4-network libqt4-dbus phonon-backend-gstreamer gstreamer0.10-ffmpeg gstreamer0.10-plugins-bad checkinstall
As normal user:

Code: Select all

cd ~/ && mkdir tmp && cd tmp/
wget http://flavio.tordini.org/files/minitube/minitube-1.9.tar.gz
tar xvzf minitube-1.9.tar.gz
cd minitube
qmake-qt4 && make
(qt3 is no good)
su to root:

Code: Select all

checkinstall
Optional: When it asks for a description for the package:" type Native YouTube Client and press enter twice.
DONE!
The version presently available in sid 1.7-1.1 (at the time of posting this) lags behind but, if anyone wishes to try it, the package can be backported to squeeze using the method given here.
DebianStable

Code: Select all

$ vrms

No non-free or contrib packages installed on debian!  rms would be proud.

User avatar
lizbeth
Posts: 75
Joined: 2012-10-20 12:15

Re: Howto watch YouTube with only free software in Debian

#64 Post by lizbeth »

I tried to build this and got the following error:


g++ -c -m64 -pipe -O2 -Wall -W -D_REENTRANT -DQT_WEBKIT -DAPP_VERSION=1.9 -DAPP_NAME=Minitube -DAPP_UNIX_NAME=minitube -DQT_USE_FAST_CONCATENATION -DQT_USE_FAST_OPERATOR_PLUS -DDATADIR=\"/usr/share\" -DPKGDATADIR=\"/usr/share/minitube\" -DQT_NO_DEBUG -DQT_PHONON_LIB -DQT_DBUS_LIB -DQT_XML_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++-64 -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtNetwork -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtXml -I/usr/include/qt4/QtDBus -I/usr/include/phonon -I/usr/include/qt4 -Isrc/qtsingleapplication -Ilocale -I/usr/include/phonon -I/usr/include/qt4/phonon_compat -Ibuild/moc -o build/obj/qtlocalpeer.o src/qtsingleapplication/qtlocalpeer.cpp
src/qtsingleapplication/qtlocalpeer.cpp: In constructor ‘QtLocalPeer::QtLocalPeer(QObject*, const QString&)’:
src/qtsingleapplication/qtlocalpeer.cpp:104:54: error: ‘::getuid’ has not been declared
src/qtsingleapplication/qtlocalpeer.cpp:104:54: note: suggested alternative:
In file included from src/qtsingleapplication/qtlockedfile_unix.cpp:49:0,
from src/qtsingleapplication/qtlocalpeer.cpp:68:
/usr/include/unistd.h:694:16: note: ‘QtLP_Private::getuid’
make: *** [build/obj/qtlocalpeer.o] Error 1
Toshiba Satellite Laptop, AMD A6-3420M Quad-Core CPU, AMD Radeon 6520G On Chip HD GPU, Toshiba 500 Gig HD, 6 gigs Ram

Linux Mint Debian Sid, Liquorix 3.6 Kernel, Cinnamon 1.6.4 Desktop

User avatar
oswaldkelso
df -h | grep > 20TiB
df -h | grep > 20TiB
Posts: 1493
Joined: 2005-07-26 23:20
Location: UK
Has thanked: 1 time
Been thanked: 59 times

Re: Howto watch YouTube with only free software in Debian

#65 Post by oswaldkelso »

youtube-viewer works well and has a nice license from a free-software pov.
https://code.google.com/p/trizen/

There is also gtk-youtube-viewer I find it lighter than minitube and it offers more options
http://code.google.com/p/trizen/downloa ... l:Featured

Image

Downside is no Debian package so you need to build it
Free Software Matters
Ash init durbatulûk, ash init gimbatul,
Ash init thrakatulûk agh burzum-ishi krimpatul.
My oldest used PC: 1999 imac 333Mhz 256MB PPC abandoned by Debian

Post Reply