Howto watch YouTube with only free software in Debian

Share your own howto's etc. Not for support questions!
Message
Author
User avatar
Mr James
Posts: 1255
Joined: 2010-09-10 13:02

Re: Howto watch YouTube with only free software in Debian

#41 Post by Mr James »

canti wrote:If needed, I can open a new topic in the "desktop & multimedia".
Please do, providing more info.
asus S551L laptop :: debian stable :: dwm

User avatar
mixalis88
Posts: 50
Joined: 2010-01-14 15:01

Re: Howto watch YouTube with only free software in Debian

#42 Post by mixalis88 »

kedaha wrote:To install Minitube in Squeeze, this should work:

Edit your sources list thus:

Code: Select all

nano /etc/apt/sources.list
So that they include sid:

Code: Select all

deb http://ftp.us.debian.org/debian/ sid main 
Use Control + O followed by Enter to save and then Control + X to exit.
Now, as root, create a system file thus:

Code: Select all

nano /etc/apt/apt.conf
Cut and paste this line to this empty file:

Code: Select all

APT::Default-Release "squeeze";
(For reasons explained in rickh's How to: Set up and maintain a Mixed Testing/Unstable System)
Now save and exit nano as before and do:

Code: Select all

aptitude update && aptitude install -t sid minitube
Unless you need the sid repo for something else, just unmark it in Synaptic or comment it out using nano.
I followed your instructions but when I attempt to install the minitube tells me

Code: Select all

The following NEW packages will be installed:
  ca-certificates {a} freepats {a} gstreamer0.10-ffmpeg {a} gstreamer0.10-plugins-bad {a} libavutil50 {a} libcdaudio1 {a} libcelt0-0 {a}
  libcurl3-gnutls {a} libfftw3-3 {a} libflite1 {a} libgme0 {a} libgraphicsmagick3 {a} libiptcdata0 {a} libjack-jackd2-0 {a} libmimic0 {a}
  libmms0 {a} libmusicbrainz4c2a {a} libofa0 {a} liboil0.3 {a} libopenspc0 {a} libphonon4 {a} libpulse-mainloop-glib0 {a} libqt4-opengl {a}
  libraptor1 {a} libraptor2-0 {a} librasqal2 {a} librasqal3 {a} librdf0 {a} librtmp0 {a} libslv2-9 {a} libsoundtouch1c2 {a} libva1 {a}
  libwildmidi1 {a} libwmf0.2-7 {a} libxcb-shape0 {a} libxine1 {a} libxine1-bin {a} libxine1-console {a} libxine1-ffmpeg {a}
  libxine1-misc-plugins {a} libxine1-plugins {a} libxine1-x {a} libyajl1 {a} libzbar0 {a} minitube phonon {a} phonon-backend-gstreamer {a}
  phonon-backend-xine {a}
The following packages will be REMOVED:
  liba52-0.7.4 {u} libcddb2 {u} libdvbpsi6 {u} libebml0 {u} liblircclient0 {u} libmatroska0 {u} libmpeg2-4 {u} libmtp8 {u} libtwolame0 {u}
  libupnp3 {u} libvlc5 {u} vlc-nox {u}
The following packages will be upgraded:
  libavcodec52 libavformat52 libgnutls26 libgpg-error0 liborc-0.4-0 libpostproc51 libswscale0
7 packages upgraded, 48 newly installed, 12 to remove and 311 not upgraded.
We need to descend 61,1 MB/61, 5 MB files. After unpacking used 75,0 MB.
The following packages have unmet dependencies:
  vlc: Depends: vlc-nox (= 1.1.3-1squeeze3) but it is not going to be installed.
  vlc-plugin-notify: Depends: vlc-nox (= 1.1.3-1squeeze3) but it is not going to be installed.
  vlc-plugin-pulse: Depends: vlc-nox (= 1.1.3-1squeeze3) but it is not going to be installed.
The following actions will resolve these dependencies:

     Remove the following packages:
1) vlc
2) vlc-plugin-notify
3) vlc-plugin-pulse

     Not resolve the following dependencies:
4), is the vlc vlc-plugin-notify (= 1.1.3-1squeeze3)
5) the is the vlc vlc-plugin-pulse (= 1.1.3-1squeeze3)


Acceptance of the solution; [Y / n / q /?]
:? why aptitude want to remove vlc and all others packages?

I also download the lastet version from here http://flavio.tordini.org/minitube and tried to run but I got this error :(

Code: Select all

QGtkStyle was unable to detect the current GTK+ theme.
Qt: Session management error: None of the authentication protocols specified are supported
./minitube: symbol lookup error: ./minitube: undefined symbol: _ZN9QListData11detach_growEPii

User avatar
kedaha
Posts: 3224
Joined: 2008-05-24 12:26
Has thanked: 2 times
Been thanked: 3 times

Re: Howto watch YouTube with only free software in Debian

#43 Post by kedaha »

Things change rather quickly. Squeeze, before it was released as Stable, included Minitube version 1.1-1 which used to work fine until it broke because of changes at Youtube. It isn't so easy to escape from Flash! :wink:
What I perhaps forgot to mention was that I first removed the broken version, 1.1-1 but not the accompanying dependencies. When I installed the version from Sid, 1.3-1, it just installed without any problems. the broken version of minitube is no longer available in Squeeze although the new versions are available in Wheezy (testing) and Sid (unstable). On my Stable system:

Code: Select all

$ apt-cache depends minitube
minitube
  Depends: libc6
  Depends: libgcc1
  Depends: libphonon4
  Depends: libqt4-dbus
  Depends: libqt4-network
  Depends: libqt4-xml
  Depends: libqtcore4
  Depends: libqtgui4
  Depends: libstdc++6
  Depends: phonon
  Depends: phonon-backend-gstreamer
  Depends: gstreamer0.10-plugins-good
  Depends: gstreamer0.10-plugins-bad
  Depends: gstreamer0.10-ffmpeg
  Depends: gstreamer0.10-x
  Depends: dbus-x11
Therefore, you might have better luck with:

Code: Select all

aptitude install libc6 libgcc libphonon4 libqt4-dbus libqt4-network libqt4-xml libqtcore4 libqtgui4 libstdc++6 phonon phonon-backend-gstreamer gstreamer0.10-plugins-good gstreamer0.10-plugins-bad gstreamer0.10-ffmpeg gstreamer0.10-x dbus-x11
Followed by:

Code: Select all

aptitude install minitube
Alternatively, you could try installing as explained by stevepusser here. After unzipping, it can be installed easily with gdebi.

User avatar
mixalis88
Posts: 50
Joined: 2010-01-14 15:01

Re: Howto watch YouTube with only free software in Debian

#44 Post by mixalis88 »

kedaha wrote:Things change rather quickly. Squeeze, before it was released as Stable, included Minitube version 1.1-1 which used to work fine until it broke because of changes at Youtube. It isn't so easy to escape from Flash! :wink:
What I perhaps forgot to mention was that I first removed the broken version, 1.1-1 but not the accompanying dependencies. When I installed the version from Sid, 1.3-1, it just installed without any problems. the broken version of minitube is no longer available in Squeeze although the new versions are available in Wheezy (testing) and Sid (unstable). On my Stable system:

Code: Select all

$ apt-cache depends minitube
minitube
  Depends: libc6
  Depends: libgcc1
  Depends: libphonon4
  Depends: libqt4-dbus
  Depends: libqt4-network
  Depends: libqt4-xml
  Depends: libqtcore4
  Depends: libqtgui4
  Depends: libstdc++6
  Depends: phonon
  Depends: phonon-backend-gstreamer
  Depends: gstreamer0.10-plugins-good
  Depends: gstreamer0.10-plugins-bad
  Depends: gstreamer0.10-ffmpeg
  Depends: gstreamer0.10-x
  Depends: dbus-x11
Therefore, you might have better luck with:

Code: Select all

aptitude install libc6 libgcc libphonon4 libqt4-dbus libqt4-network libqt4-xml libqtcore4 libqtgui4 libstdc++6 phonon phonon-backend-gstreamer gstreamer0.10-plugins-good gstreamer0.10-plugins-bad gstreamer0.10-ffmpeg gstreamer0.10-x dbus-x11
Followed by:

Code: Select all

aptitude install minitube
Alternatively, you could try installing as explained by stevepusser here. After unzipping, it can be installed easily with gdebi.
Thanks, it works :D . I have install the deb file that stevepusser gives.

canti
Posts: 74
Joined: 2011-01-31 12:57
Location: The Netherlands

Re: Howto watch YouTube with only free software in Debian

#45 Post by canti »

Mr James wrote:
canti wrote:If needed, I can open a new topic in the "desktop & multimedia".
Please do, providing more info.
I followed the request and opened a new topic. If you wish: go ahead, make me happy :D !
HP Envy 17 n120nd containing Debian Bullseye (Gnome 3)

User avatar
kedaha
Posts: 3224
Joined: 2008-05-24 12:26
Has thanked: 2 times
Been thanked: 3 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.

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

User avatar
kedaha
Posts: 3224
Joined: 2008-05-24 12:26
Has thanked: 2 times
Been thanked: 3 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.

User avatar
stevepusser
Posts: 12430
Joined: 2009-10-06 05:53
Has thanked: 8 times
Been thanked: 6 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 410 times
MX Linux packager and developer

User avatar
kedaha
Posts: 3224
Joined: 2008-05-24 12:26
Has thanked: 2 times
Been thanked: 3 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).

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: 1299
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

User avatar
kedaha
Posts: 3224
Joined: 2008-05-24 12:26
Has thanked: 2 times
Been thanked: 3 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.

User avatar
stevepusser
Posts: 12430
Joined: 2009-10-06 05:53
Has thanked: 8 times
Been thanked: 6 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: 12430
Joined: 2009-10-06 05:53
Has thanked: 8 times
Been thanked: 6 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: 12430
Joined: 2009-10-06 05:53
Has thanked: 8 times
Been thanked: 6 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

User avatar
kedaha
Posts: 3224
Joined: 2008-05-24 12:26
Has thanked: 2 times
Been thanked: 3 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.

User avatar
stevepusser
Posts: 12430
Joined: 2009-10-06 05:53
Has thanked: 8 times
Been thanked: 6 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

Post Reply