Subscribe to RSS Feed

a blog about linux, opensource software, web and technology in general

H264 YouTube video in Totem

This is just a two minutes hack to the original YouTube plugin for Totem 2.22, the Gnome Multimedia Player. It’s nothing more than a proof of concept: I hope in a very near future the original plugin could have a setting to allow users to choose the favourite video quality.

You can install it without damaging the original plugin. You also can have both enabled.

Plugins Dialog - Totem

You can download it as a gzipped package:

youtubeh264.tar.gz

You only need to extract it and copy it in your totem plugins directory (usually it’s /usr/lib/totem/plugins).

[Fixed] For Ubuntu Hardy users I also prepared a deb file, easier to install and uninstall, architecture indipendent:

totem-youtubeh264_0.0.1-2.deb

Some Screenshots following (click to enlarge).

Sorenson Quality
Sorenson Quality

 

H264 Quality
 H264 Quality

 

Sorenson Properties
Sorenson Properties

 


H264 Properties

H264 Properties

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]

67 Responses to “H264 YouTube video in Totem”

  1. Video Drive Blog » H264 YouTube video in Totem |

    [...] mybrixia: [...]

  2. ell |

    error: can not open totem-youtubeh264_0.0.1.deb , the package might be corrupted, or you are not allowed to open the file, check your permission of the file.

  3. grigio |

    Hardy already has this feature.. see totem-plugins and totem-plugins-extra

  4. michele |

    @ell
    Try using
    sudo dpkg -i totem-youtubeh264_0.0.1.deb

    In the while I’ll watch why this deb file is not working using gdebi (the graphical way).

    @grigio
    Hardy olny has plugin which search for Sorenson (old Flash 7 compatible) Youtube video. My plugin is just a very little change over the original: it’s the same plugin, just getting the High Quality videos.

  5. Tim Leary |

    It seems to be related to architecture for me. amd64 here.

  6. michele |

    The deb package has been fixed. It is not related to the architecture: it only uses python.

  7. grigio |

    @michele: grazie, lo sto provando su Hardy e funziona.

  8. Play YouTube Videos from the Totem Movie Player | Tombuntu |

    [...] a modification to this plugin that will play the H.264 video, you can install its package from this page and enable the YouTube H264 plugin the same way. On recently added videos, the H.264 file looks [...]

  9. shell |

    64bit system can’t use H264 plugin :( :( :(

  10. Christoph |

    You can’t install it on a 64bit system…

    $ sudo dpkg -i totem-youtubeh264_0.0.1.deb
    dpkg: error processing totem-youtubeh264_0.0.1.deb (–install):
    package architecture (i386) does not match system (amd64)
    Errors were encountered while processing:
    totem-youtubeh264_0.0.1.deb

    But it’s possible to force the installation:

    $ sudo dpkg –force-architecture -i totem-youtubeh264_0.0.1.deb

  11. Mira video de YouTube en Totem Movie Player | |

    [...] una modificacion para este Plugin que te permite reproducir video H.264, tu puedes intalarlo este paquete de la pagina y activar el YouTube H.264. Por supuesto veras videos de mucha mejor [...]

  12. Ver los videos de Youtube en Totem // Linux Zone // Blog sobre linux, con noticias, manuales de ayuda, curiosidades, distribuciones, FAQ, drivers y novedades |

    [...] Hay una modificación del plugin que permite verlos en formato H.264 video con una mayor calidad, para ello puedes instalarlo: Descargar [...]

  13. jeferson |

    Funcionou certinho. Valeu.

  14. michele |

    I want to apologize to all the non-i386 user.
    I just updated the package: now it is installable on all the architecture.

  15. shell |

    very Thank you!!!!!!!

  16. pasqoo |

    I replaced the original with this :) good work

    bravo :D

  17. Watch YouTube Clips Inside GNOME’s Built-In Movie Player [Video] » Lifehacker, tips and downloads for getting things done |

    [...] plugin. Want some of the higher-res goodies web viewers are getting? Go ahead and grab a H264 plugin and activate it the same way. From my experience, search runs a little slower, but I haven’t [...]

  18. Watch YouTube Clips Inside GNOME’s Built-In Movie Player [Video] · TechBlogger |

    [...] plugin. Want some of the higher-res goodies web viewers are getting? Go ahead and grab a H264 plugin and activate it the same way. From my experience, search runs a little slower, but I haven’t [...]

  19. despuesdegoogle » » Vídeos H.264 de YouTube en Totem |

    [...] H.264 de alta resolución que mejora notablemente las prestaciones del códec Sorensen. Basta descargarlo e instalarlo para ver vídeos de YouTube con mejor [...]

  20. max |

    how i complie a file like tar.bz2???
    and the totem say(you dont have permissin to write in this file !?!?!?!?!?

  21. Lifehacker » Архив » Проигрывание и поиск роликов на YouTube в Totem |

    [...] веб-пользователи, то вам нужно установить плагин активации кодека H264, который устанавливается с Тотем так же как и плагин [...]

  22. Vadim P. |

    Thanks!

  23. Hezy |

    Very nice. But is there an easy way to bring the url form a youtube webpage into totem? (right now I just search for the name of the clip in totem).

  24. michele |

    Actually the fastest way is to copy the video ID from the url. For example, from the URL “http://youtube.com/watch?v=x1toa0ek07E”, you need to copy and paste in the Totem search the string “x1toa0ek07E”.

  25. Guardare i video di YouTube direttamente da Totem, in Ubuntu 8.04 « k-hole |

    [...] ci permette di visualizzare anche i video ad alta qualità H.264 di Youtube, potete scaricare da qua l’archivio dei sorgenti o il pacchetto deb, installarlo ed abilitare il plugin, nella maniera [...]

  26. Guide e Manuali Linux e Windows - Guardare i filmati di YouTube direttamente da Totem in Ubuntu 8.04 |

    [...] di vedere i video di YouTube ad alta qualità H.264 tramite un plugin che potete scaricare da qua, o l’archivio dei sorgenti o il pacchetto deb, poi lo installate e lo abilitate come spiegato in [...]

  27. Ubuntu 8.04: The Veridict « Relax’s Presence |

    [...] I simply ADORE the Youtube Plugin in Totem. (hint: even better is this Youtube H.264 plugin) [...]

  28. My Ubuntu tips & tricks (and some small pieces of software/gadgets) « In Arid Glamor |

    [...] Play youtube videos directly in Totem Movie Player (Hardy): Open Movie Player, go to Edit > Plugins and enable “Youtube Browser”, then in the right panel select “Youtube” and then just search for a video. And of course, it works full-screen too And you can install the Totem Movie Player H.264 plugin for youtube for better quality, from here. [...]

  29. Ver videos de Youtube con Totem Movie Player | gEEK tHE pLANET |

    [...] el códec H.264 (opción que YouTube nos proporciona desde hace poco), debemos instalar el plugin YouTube H264 browser, descargandolo el paquete Totem_YoutubeH264. Después de instalado el paquete, nos dirigimos de [...]

  30. Ver los videos de Youtube en el reprodctor de peliculas Totem en Ubuntu Hrdy Heron « Tux Azteca |

    [...] el códec H.264, opción que YouTube nos proporciona desde hace poco, podemos instalar el plugin YouTube H264 browser, una versión modificada del “Examinador de YouTube”. Basta con descargar el paquete [...]

  31. FlaPer87 » Totem + YouTube |

    [...] la casilla que dice “Examinador de YouTube”, también existe una mejora del plugin aqui el cual permite utilizar los nuevos códecs H.264 que ofrecen las personas de youTube los cuales [...]

  32. Ver videos de Youtube en H.264 directamente desde Totem |

    [...] Vía | MundoGeek Enlaces | Totem, H.264 Youtube Video in Totem [...]

  33. Tren al SUR :: Novedades de Hardy: You Tube en Totem :: May :: 2008 |

    [...] en la barra lateral está el buscador. En la página de MundoGeek, también hacen mención a un plugin para ver los videos en alta calidad, una nueva función de You Tube. También lo instalé pero la reproducción es lenta y a veces se [...]

  34. Ver videos de Youtube en H.264 directamente desde Totem | Trisoft Peru |

    [...] Enlaces | Totem, H.264 Youtube Video in Totem [...]

  35. Charliec114 Blog’s » Blog Archive » Ver videos de Youtube en H.264 directamente desde Totem |

    [...] el códec H.264, opción que YouTube nos proporciona desde hace poco, podemos instalar el plugin YouTube H264 browser, una versión modificada del “Examinador de YouTube”. Basta con descargar el paquete [...]

  36. Mira los vídeos de YouTube en H264 desde Totem • IslaTux |

    [...] original: init7 (autor de las imágenes aquí adjuntas, yo no he podido apreciar dicha calidad, tal vez los vídeos [...]

  37. SomGNU » Blog Archive » Totem i YouTube |

    [...] Font | init 7 [...]

  38. William |

    Very nice indeed and very easy to use. Thank you very much.

  39. Ver videos de youtube en totem « Desde Ubuntu para el mundo |

    [...] el códec H.264, opción que YouTube nos proporciona desde hace poco, podemos instalar el plugin YouTube H264 browser, una versión modificada del “Examinador de YouTube”. Basta con descargar el paquete [...]

  40. Good 13 Tips for Ubuntu « Techii |

    [...] Play youtube videos directly in Totem Movie Player (Hardy):Open Movie Player, go to Edit > Plugins and enable “YoutubeBrowser”, then in the right panel select “Youtube” and then just searchfor a video. And of course, it works full-screen too And you can install the Totem Movie Player H.264 plugin for youtube for better quality, from here. [...]

  41. Ubuntu Tipps - Manuel’s Blog |

    [...] rechten Seite die Videos von YouTube suchen und anschauen. Sogar Vollbild klappt, wenn du noch das H.264 Plugin installierst hast du eine bessere [...]

  42. Ubuntu + Totem + Youtube » RCH |

    [...] Vía | MundoGeek Enlaces | Totem, H.264 Youtube Video in Totem [...]

  43. Ver videos de YouTube en Totem « El Signo de los Cuatro |

    [...] el códec H.264, opción que YouTube nos proporciona desde hace poco, podemos instalar el plugin YouTube H264 browser, una versión modificada del “Examinador de YouTube”. Basta con descargar el paquete deb y [...]

  44. Totem movie player και Youtube | What's on a geek woman's mind |

    [...] καλύτερη ποιότητα, μπορούμε να εγκαταστήσουμε το H.264 plugin. κατεβάζουμε το αρχείο youtubeh264.tar.gz και αποσυμπιέζουμε [...]

  45. How to watch YouTube videos in the Ubuntu Media Player - Simplehelp |

    [...] also get Totem to play the higher-quality h264 videos on YouTube as well. Download this file from http://www.soccio.it/michelinux/. When downloading the file, select Open with and make sure GDebi Package Installer (default) is [...]

  46. Ver videos de YouTube en Totem « El Signo de los Cuatro |

    [...] el códec H.264, opción que YouTube nos proporciona desde hace poco, podemos instalar el plugin YouTube H264 browser, una versión modificada del “Examinador de YouTube”. Basta con descargar el paquete [...]

  47. ¡Ver videos de YouTuBe desde Totem! « UsoftX |

    [...] el códec H.264, opción que YouTube nos proporciona desde hace poco, podemos instalar el plugin YouTube H264 browser, una versión modificada del “Examinador de YouTube”. Basta con descargar el paquete [...]

  48. Videos Youtube con alta calidad. « Tuxuntu |

    [...] Fuente: http://www.soccio.it/michelinux/2008/03/29/h264-youtube-video-in-totem/en/ [...]

  49. YouTube en Totem | Barra Libre |

    [...] el códec H.264, opción que YouTube nos proporciona desde hace poco, podemos instalar el plugin YouTube H264 browser, una versión modificada del “Examinador de YouTube”. Basta con descargar el paquete [...]

  50. gNewSense |

    What license is this plugin under? I don’t see any licensing information here.

  51. michele |

    About the license. This plugin is a small hack on the original Youtube plugin included in Totem, which is released under GPL2 or later, so I thought it was quite obvious my version of this plugin was also GPL2 or later.
    By the way, there is another problem: I believe (although I’m not very sure) that you will need some extra GStreamer codec to play H.264 content and I believe this software, which is actually available for Linux but I’m not so sure it’s free from any patent menace.

  52. Ver los v |

    [...] H.264, opción que YouTube nos proporciona desde hace poco, podemos instalar el plugin YouTube H264 browser, una versión modificada del “Examinador de YouTube”. Basta con descargar el [...]

  53. Ashrael |

    ffdemux_swf: Element doesn’t implement handling of this stream. Please file a bug.

    This is the error i get when trying to play youtube or youtube H264 content…any suggestions anyone??

  54. Ashrael |

    More info from starting totem in terminal:

    :~$totem
    ** (totem:6772): DEBUG: Init of Python module
    ** (totem:6772): DEBUG: Registering Python plugin instance: YouTube+TotemPythonPlugin
    ** (totem:6772): DEBUG: Creating object of type YouTube+TotemPythonPlugin
    ** (totem:6772): DEBUG: Creating Python plugin instance
    ** (totem:6772): DEBUG: Init of Python module
    ** (totem:6772): DEBUG: Registering Python plugin instance: BBCViewer+TotemPythonPlugin
    ** (totem:6772): DEBUG: Creating object of type BBCViewer+TotemPythonPlugin
    ** (totem:6772): DEBUG: Creating Python plugin instance
    ** (totem:6772): DEBUG: Init of Python module
    ** (totem:6772): DEBUG: Registering Python plugin instance: YouTubeH264+TotemPythonPlugin
    ** (totem:6772): DEBUG: Creating object of type YouTubeH264+TotemPythonPlugin
    ** (totem:6772): DEBUG: Creating Python plugin instance
    Activating row
    Done Activating row
    Traceback (most recent call last):
    File “/usr/lib/totem/plugins/youtubeh264/youtubeh264.py”, line 117, in on_starting_video
    mrl = “http://www.youtube.com/get_video?video_id=” + urllib.quote (youtube_id) + “&t=” + urllib.quote (re.match (“.*[?&]t=([^&]+)”, location).groups ()[0]) +”&fmt=18″
    AttributeError: ‘NoneType’ object has no attribute ‘groups’
    ** Message: don’t know how to handle application/x-shockwave-flash
    ** Message: Error: Element doesn’t implement handling of this stream. Please file a bug.
    gstffmpegdemux.c(1440): gst_ffmpegdemux_sink_activate_push (): /GstPlayBin:play/GstDecodeBin:decodebin1/ffdemux_swf:ffdemux_swf0:
    failed to activate sinkpad in pull mode, push mode not implemented yet

    ** (totem:6772): DEBUG: Finalizing Python plugin instance
    ** (totem:6772): DEBUG: Finalizing Python plugin instance
    ** (totem:6772): DEBUG: Finalizing Python plugin instance

  55. michele |

    Ashrael, thanks for your report.

    Unfortunately it seems Youtube is changing the place in which the videos are stored. If you can, update to Totem 2.24 which comes with a new version of the plugin that already loads the H.264 videos.

    I will update my plugin as well for those who don’t want to update, but I will be very busy for a couple of weeks. So, be patient.

    Thanks.

  56. racoq |

    I already updated the youtube.py, from ubuntu hardy that was making it suffer from the same problem.
    michele, u can use it to adapt it to your h624 version. Grab it here.

    https://bugs.launchpad.net/ubuntu/hardy/+source/totem/+bug/288494

  57. Ashrael |

    Thanks Michelle, i was beginning to think nobody had a clue….;) since no one answered any of my posts on any forum. But progress is being made :)
    I want to give you some more info:
    I am using Intrepid and so I already had Totem 2.24.3 installed, but still the youtube h264 plugin does not work.
    If you need more info please ask…

    Thanks!

  58. Ashrael |

    Michelle? Have you made any changes to the plug-in yet? It is very strange, on 2 computers i installed this plug-in works, on all the others i get the aforementioned error…
    Maybe the fault is with ffdemux_swf?
    I very much would like to help solve this issue, because there are many people affected by this…

    greetings, a merry x-mass and a very good (safe) new years eve to you all!…..HOHOHO!

    “Umuntu ngumuntu ngabanye bantu” – Xhosa saying.
    (People are people because of other people)

  59. HeWhoE |

    There’s a modified youtubeh264.py file posted here…

    http://ubuntuforums.org/showpost.php?p=6425919&postcount=4

  60. Ashrael |

    I can confirm that HeWhoE’s yuoutubeh264.py works like a charm!

    Thanks to All!

    “Umuntu ngumuntu ngabanye bantu” – Xhosa saying.
    (People are people because of other people)

  61. Shikoni videot ne Youtube nga kompjuteri! Ubuntu | eklipsi.com |

    [...] shikoni edhe video në Cilësi të lartë në version h264 në youtube. Shkarkoni këtë file-n nga http://www.soccio.it/michelinux/. Në kohën që shkarkoni file-n, selektoni Open with dhe sigurohuni që të jetë i selektuar [...]

  62. Arky |

    youtubeh264.tar.gz on totem 2.26.1-0ubuntu1 spews this error.

    Exception in thread Thread-1:
    Traceback (most recent call last):
    File “/usr/lib/python2.6/threading.py”, line 525, in __bootstrap_inner
    self.run()
    File “/home/iise/.local/share/totem/plugins/youtubeh264/youtubeh264.py”, line 19, in run
    self.youtube.entry[self.treeview_name] = self.youtube.service.Get (self.url).entry
    File “/var/lib/python-support/python2.6/gdata/service.py”, line 980, in Get
    headers=extra_headers)
    File “/var/lib/python-support/python2.6/atom/service.py”, line 175, in request
    data=data, headers=all_headers)
    File “/var/lib/python-support/python2.6/atom/http_interface.py”, line 148, in perform_request
    return http_client.request(operation, url, data=data, headers=headers)
    File “/var/lib/python-support/python2.6/atom/http.py”, line 135, in request
    connection.endheaders()
    File “/usr/lib/python2.6/httplib.py”, line 868, in endheaders
    self._send_output()
    File “/usr/lib/python2.6/httplib.py”, line 740, in _send_output
    self.send(msg)
    File “/usr/lib/python2.6/httplib.py”, line 699, in send
    self.connect()
    File “/usr/lib/python2.6/httplib.py”, line 683, in connect
    self.timeout)
    File “/usr/lib/python2.6/socket.py”, line 498, in create_connection
    for res in getaddrinfo(host, port, 0, SOCK_STREAM):
    gaierror: [Errno -2] Name or service not known

  63. Kenzumi |

    I have this message error when I tried to activate the plugin:

    Traceback (most recent call last):
    File “/usr/lib/totem/plugins/youtubeh264/youtubeh264.py”, line 3, in
    import gdata.service
    ImportError: No module named gdata.service

    ** (totem:2398): WARNING **: Could not load plugin youtubeh264

    ** (totem:2398): WARNING **: Error, impossible to activate plugin ‘Examinador de YouTube H264′

  64. otto.kranz |

    I found a bug report with the solution for this problem:
    http://old.nabble.com/-Bug-37325–totem-common,-NEW:-Youtube-plugin-in-totem-fails-to-initialize-due-to-missing-gdata-td15170382.html
    You have to install the package python-gdata to get it work.
    It would be good to create a dependencie to this package in the installer.

  65. k |

    Is there any way to open a youtube url with this from the command line? I’d like to use this with mediaplayerconnectivity.

  66. bharat |

    i am getting this error…plz help

    ffdemux_swf: Element doesn’t implement handling of this stream. Please file a bug.

  67. michele |

    Sorry bharat, but this plugin has not been update for a very long time, since the recent versions of Totem has already H.264 capabilities.

Leave a Reply