Howto watch YouTube with only free software in Debian

Share your own howto's etc. Not for support questions!

Re: Howto watch YouTube with only free software in Debian

Postby canti » 2011-02-04 22:26

@kedaha: I succeeded to install minitube (not before I have to find out how to create a non-existing etc/apt/apt.conf file: searching in google learns that it is simple: touch etc/apt/apt.conf). It works very well. However, one disadvantage: I cannot play an embedded youtube video. Or is there a tip to get the embedded video play in minitube?

@stevepusser: thank you for indicating the difference between encoder and decoder (I'm not so well-experienced in computers...). To answer your question, I cannot play h.264 in other places than youtube. In Ubuntu I do not face this difficulty, flash and other video streamings do work very well there. The only difference is that in Ubuntu the non-free Nvidia was installed, and not Nouveau. Could there be the source of the problem? In any case I give you the output of xvinfo:

Code: Select all
X-Video Extension version 2.2
screen #0
  Adaptor #0: "Nouveau GeForce 8/9 Textured Video"
    number of ports: 32
    port base: 63
    operations supported: PutImage
    supported visuals:
      depth 24, visualID 0x21
      depth 24, visualID 0x22
    number of attributes: 2
      "XV_SET_DEFAULTS" (range 0 to 0)
              client settable attribute
      "XV_SYNC_TO_VBLANK" (range 0 to 1)
              client settable attribute
              client gettable attribute (current value is 1)
    maximum XvImage size: 4096 x 4096
    Number of image formats: 3
      id: 0x32315659 (YV12)
        guid: 59563132-0000-0010-8000-00aa00389b71
        bits per pixel: 12
        number of planes: 3
        type: YUV (planar)
      id: 0x30323449 (I420)
        guid: 49343230-0000-0010-8000-00aa00389b71
        bits per pixel: 12
        number of planes: 3
        type: YUV (planar)
      id: 0x32595559 (YUY2)
        guid: 59555932-0000-0010-8000-00aa00389b71
        bits per pixel: 16
        number of planes: 1
        type: YUV (packed)


I don't understand the output, I hope you can see the problem here?

Now it is time to go to bed. This weekend I need time for a study, but I will occassionaly have a look in this forum. I'm really enthousiast to use Debian, despite, or perhaps just thanks to puzzling, I learn a lot!

Warm regards,
canti
HP Envy 17 n120nd containing Debian Buster (Gnome 3)
canti
 
Posts: 72
Joined: 2011-01-31 12:57
Location: The Netherlands

Re: Howto watch YouTube with only free software in Debian

Postby kedaha » 2011-02-06 09:33

canti wrote:@kedaha: I succeeded to install minitube (not before I have to find out how to create a non-existing etc/apt/apt.conf file: searching in google learns that it is simple: touch etc/apt/apt.conf). It works very well. However, one disadvantage: I cannot play an embedded youtube video. Or is there a tip to get the embedded video play in minitube?

@stevepusser: thank you for indicating the difference between encoder and decoder (I'm not so well-experienced in computers...). To answer your question, I cannot play h.264 in other places than youtube. In Ubuntu I do not face this difficulty, flash and other video streamings do work very well there. The only difference is that in Ubuntu the non-free Nvidia was installed, and not Nouveau. Could there be the source of the problem? In any case I give you the output of xvinfo:

Code: Select all
X-Video Extension version 2.2
screen #0
  Adaptor #0: "Nouveau GeForce 8/9 Textured Video"
    number of ports: 32
    port base: 63
    operations supported: PutImage
    supported visuals:
      depth 24, visualID 0x21
      depth 24, visualID 0x22
    number of attributes: 2
      "XV_SET_DEFAULTS" (range 0 to 0)
              client settable attribute
      "XV_SYNC_TO_VBLANK" (range 0 to 1)
              client settable attribute
              client gettable attribute (current value is 1)
    maximum XvImage size: 4096 x 4096
    Number of image formats: 3
      id: 0x32315659 (YV12)
        guid: 59563132-0000-0010-8000-00aa00389b71
        bits per pixel: 12
        number of planes: 3
        type: YUV (planar)
      id: 0x30323449 (I420)
        guid: 49343230-0000-0010-8000-00aa00389b71
        bits per pixel: 12
        number of planes: 3
        type: YUV (planar)
      id: 0x32595559 (YUY2)
        guid: 59555932-0000-0010-8000-00aa00389b71
        bits per pixel: 16
        number of planes: 1
        type: YUV (packed)


I don't understand the output, I hope you can see the problem here?

Now it is time to go to bed. This weekend I need time for a study, but I will occassionaly have a look in this forum. I'm really enthousiast to use Debian, despite, or perhaps just thanks to puzzling, I learn a lot!

Warm regards,
canti

Likewise. No need to use touch command: just entering the commands, nano would've created the new system file after saving and exiting. Regarding the video question, it'd be better to start a new topic if you're not sure about how to install the nVidia proprietary driver. Post output of:
Code: Select all
lspci | grep VGA
Mate DE & OSSv4.
FreedomBox in Debian
ispmail
Debian Stable

Words, as is well known, are the great foes of reality. Joseph Conrad.
Kedaha's Conjecture
User avatar
kedaha
 
Posts: 2959
Joined: 2008-05-24 12:26

Re: Howto watch YouTube with only free software in Debian

Postby canti » 2011-02-07 10:26

I'm not quite sure if nVidia is the cause. It seems me a big step to use the nVidia proprietary in stead of Nouveau. If I have to do that, I will start a new topic. At your request I give the output of lspci | grep VGA here:

01:00.0 VGA compatible controller: nVidia Corporation G96 [GeForce 9600M GT] (rev a1)


What can you say about this output?
HP Envy 17 n120nd containing Debian Buster (Gnome 3)
canti
 
Posts: 72
Joined: 2011-01-31 12:57
Location: The Netherlands

Re: Howto watch YouTube with only free software in Debian

Postby canci » 2011-02-07 10:33

canti wrote:I'm not quite sure if nVidia is the cause. It seems me a big step to use the nVidia proprietary in stead of Nouveau. If I have to do that, I will start a new topic. At your request I give the output of lspci | grep VGA here:

01:00.0 VGA compatible controller: nVidia Corporation G96 [GeForce 9600M GT] (rev a1)


What can you say about this output?

Using nouveau might exactly be your problem. It's still a very basic driver, so video overlay and acceleration don't work. Using the nvidia proprietary driver is actually quite easy. Just add non-free to your sources and install the package called nvidia-glx (this is the one you need for the 9600M). Installing nvidia-settings might be a good idea as well. You can find instructions for both steps on the forums, as this has been done to death already.
I ken hez kinvulf beck? I ken hez riesnible modereyshn? Kthnxbai!

No need to discuss this topic? Offended by this signature? Remove it:

Mez wrote:You can easily just disable viewing signatures

Click here - and set "Display Signatures" to No
User avatar
canci
 
Posts: 1705
Joined: 2006-09-24 11:28
Location: Bosnia & Herzegovina

Re: Howto watch YouTube with only free software in Debian

Postby oswaldkelso » 2011-02-07 10:47

Howto watch YouTube with only free software in Debian


Just add non-free to your sources and install the package called nvidia-glx


Tut tut...
Ash init durbatulûk, ash init gimbatul,
Ash init thrakatulûk agh burzum-ishi krimpatul.
User avatar
oswaldkelso
 
Posts: 1181
Joined: 2005-07-26 23:20
Location: UK

Re: Howto watch YouTube with only free software in Debian

Postby canci » 2011-02-07 11:06

oswaldkelso wrote:
Howto watch YouTube with only free software in Debian


Just add non-free to your sources and install the package called nvidia-glx


Tut tut...

kelsoo, sorry, it is off topic, but nvidia is mostly very unusable without proprietary drivers. :(
I ken hez kinvulf beck? I ken hez riesnible modereyshn? Kthnxbai!

No need to discuss this topic? Offended by this signature? Remove it:

Mez wrote:You can easily just disable viewing signatures

Click here - and set "Display Signatures" to No
User avatar
canci
 
Posts: 1705
Joined: 2006-09-24 11:28
Location: Bosnia & Herzegovina

Re: Howto watch YouTube with only free software in Debian

Postby jw013 » 2011-02-09 22:37

Code: Select all
Using player backend of ''
DBUS connection created
Listening to path /control/15111
ARG: id = no-flash-player
ARG: type = video/flv
ARG: src = http://www.youtube.com/get_video?video_id=arfcS2QxIHw&t=vjVQa1PpcFM7uY0XoSQ_J43_tCD7qXWv5nhIoxJZTw4=&asv=&fmt=22&begin=0
ARG: scale = tofit
ARG: autoplay = true
ARG: height = 388
ARG: width = 640
Window resized
Calling GetURLNotify with item = 0x7fa6b4930000 src = http://www.youtube.com/get_video?video_id=arfcS2QxIHw&t=vjVQa1PpcFM7uY0XoSQ_J43_tCD7qXWv5nhIoxJZTw4=&asv=&fmt=22&begin=0
Window resized
URL Notify url = 'http://www.youtube.com/get_video?video_id=arfcS2QxIHw&t=vjVQa1PpcFM7uY0XoSQ_J43_tCD7qXWv5nhIoxJZTw4=&asv=&fmt=22&begin=0'
reason = 1
http://www.youtube.com/get_video?video_id=arfcS2QxIHw&t=vjVQa1PpcFM7uY0XoSQ_J43_tCD7qXWv5nhIoxJZTw4=&asv=&fmt=22&begin=0

/control/15111
URL Notify result is Network Error


I tried this on a fresh Squeeze install, Icewease 3.5.16, and got the above output in the terminal. I have a grey rectangle where the video is but nothing plays when I press play. Any ideas why this is not working?
jw013
 
Posts: 161
Joined: 2009-08-18 21:00

Re: Howto watch YouTube with only free software in Debian

Postby kedaha » 2011-02-09 23:11

The Greasemonkey script is broken at the moment according to this README.
Mate DE & OSSv4.
FreedomBox in Debian
ispmail
Debian Stable

Words, as is well known, are the great foes of reality. Joseph Conrad.
Kedaha's Conjecture
User avatar
kedaha
 
Posts: 2959
Joined: 2008-05-24 12:26

Re: Howto watch YouTube with only free software in Debian

Postby jw013 » 2011-02-09 23:28

Oh ok thanks for the link. I was slightly worried about the OP being from so long ago.

An update: the Free Youtube Greasemonkey script does seem to work.
The FlashVideoReplacer Firefox Addon does not.
jw013
 
Posts: 161
Joined: 2009-08-18 21:00

Re: Howto watch YouTube with only free software in Debian

Postby canti » 2011-02-13 13:33

canci wrote:
canti wrote:I'm not quite sure if nVidia is the cause. It seems me a big step to use the nVidia proprietary in stead of Nouveau. If I have to do that, I will start a new topic. At your request I give the output of lspci | grep VGA here:

01:00.0 VGA compatible controller: nVidia Corporation G96 [GeForce 9600M GT] (rev a1)


What can you say about this output?

Using nouveau might exactly be your problem. It's still a very basic driver, so video overlay and acceleration don't work. Using the nvidia proprietary driver is actually quite easy. Just add non-free to your sources and install the package called nvidia-glx (this is the one you need for the 9600M). Installing nvidia-settings might be a good idea as well. You can find instructions for both steps on the forums, as this has been done to death already.


Yesterday I installed nvidia driver by using the wiki which went without problem. Unfortunately, I didn't see any effect: I still got the message saying a plugin is missing, a grey block instead of video appears (greasemonkey is on and youtube without flash auto installed, see first post of this topic). I also tried with flash non-free, the problem with freezing of browser still occurs. I think I overlook something crucial, but what? I don't really know... But I keep on smiling :) , knowing there must be a good solution somewhere... Who can help me? If needed, I can open a new topic in the "desktop & multimedia".
HP Envy 17 n120nd containing Debian Buster (Gnome 3)
canti
 
Posts: 72
Joined: 2011-01-31 12:57
Location: The Netherlands

Re: Howto watch YouTube with only free software in Debian

Postby Mr James » 2011-02-13 15:16

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
Mr James
 
Posts: 1255
Joined: 2010-09-10 13:02

Re: Howto watch YouTube with only free software in Debian

Postby mixalis88 » 2011-02-13 22:59

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
mixalis88
 
Posts: 50
Joined: 2010-01-14 15:01

Re: Howto watch YouTube with only free software in Debian

Postby kedaha » 2011-02-14 07:33

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.
Mate DE & OSSv4.
FreedomBox in Debian
ispmail
Debian Stable

Words, as is well known, are the great foes of reality. Joseph Conrad.
Kedaha's Conjecture
User avatar
kedaha
 
Posts: 2959
Joined: 2008-05-24 12:26

Re: Howto watch YouTube with only free software in Debian

Postby mixalis88 » 2011-02-14 09:37

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.
User avatar
mixalis88
 
Posts: 50
Joined: 2010-01-14 15:01

Re: Howto watch YouTube with only free software in Debian

Postby canti » 2011-02-14 12:42

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 Buster (Gnome 3)
canti
 
Posts: 72
Joined: 2011-01-31 12:57
Location: The Netherlands

PreviousNext

Return to Docs, Howtos, Tips & Tricks

Who is online

Users browsing this forum: No registered users and 2 guests

fashionable