init 7
ready to go beyond?
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.

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).
Subscribe to RSS Feed




[...] mybrixia: [...]
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.
Hardy already has this feature.. see totem-plugins and totem-plugins-extra
@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.
It seems to be related to architecture for me. amd64 here.
The deb package has been fixed. It is not related to the architecture: it only uses python.
@michele: grazie, lo sto provando su Hardy e funziona.
[...] 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 [...]
64bit system can’t use H264 plugin
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
[...] 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 [...]
[...] Hay una modificación del plugin que permite verlos en formato H.264 video con una mayor calidad, para ello puedes instalarlo: Descargar [...]
Funcionou certinho. Valeu.
I want to apologize to all the non-i386 user.
I just updated the package: now it is installable on all the architecture.
very Thank you!!!!!!!
I replaced the original with this
good work
bravo
[...] 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 [...]
[...] 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 [...]
[...] 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 [...]
how i complie a file like tar.bz2???
and the totem say(you dont have permissin to write in this file !?!?!?!?!?
[...] веб-пользователи, то вам нужно установить плагин активации кодека H264, который устанавливается с Тотем так же как и плагин [...]
Thanks!
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).
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”.
[...] 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 [...]
[...] 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 [...]
[...] I simply ADORE the Youtube Plugin in Totem. (hint: even better is this Youtube H.264 plugin) [...]
[...] 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. [...]
[...] 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 [...]
[...] 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 [...]
[...] 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 [...]
[...] Vía | MundoGeek Enlaces | Totem, H.264 Youtube Video in Totem [...]
[...] 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 [...]
[...] Enlaces | Totem, H.264 Youtube Video in 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 [...]
[...] original: init7 (autor de las imágenes aquí adjuntas, yo no he podido apreciar dicha calidad, tal vez los vídeos [...]
[...] Font | init 7 [...]
Very nice indeed and very easy to use. Thank you very much.
[...] 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 [...]
[...] 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. [...]
[...] rechten Seite die Videos von YouTube suchen und anschauen. Sogar Vollbild klappt, wenn du noch das H.264 Plugin installierst hast du eine bessere [...]
[...] Vía | MundoGeek Enlaces | Totem, H.264 Youtube Video in 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 deb y [...]
[...] καλύτερη ποιότητα, μπορούμε να εγκαταστήσουμε το H.264 plugin. κατεβάζουμε το αρχείο youtubeh264.tar.gz και αποσυμπιέζουμε [...]
[...] 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 [...]
[...] 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 [...]
[...] 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 [...]
[...] Fuente: http://www.soccio.it/michelinux/2008/03/29/h264-youtube-video-in-totem/en/ [...]
[...] 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 [...]
What license is this plugin under? I don’t see any licensing information here.
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.
[...] 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 [...]
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??
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
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.
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
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!
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)
There’s a modified youtubeh264.py file posted here…
http://ubuntuforums.org/showpost.php?p=6425919&postcount=4
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)
[...] 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 [...]
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
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′
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.
Is there any way to open a youtube url with this from the command line? I’d like to use this with mediaplayerconnectivity.
i am getting this error…plz help
ffdemux_swf: Element doesn’t implement handling of this stream. Please file a bug.
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.