Tag Archives: h264

H.264, che confusione

Macity prende un po’ di cantonate sull’H.264 quando dice che:

«MPEG LA rende lo standard H.264 royalty-free»
Titolo d’effetto ma vero solo in parte: non pagherà diritti e brevetti solo chi lo userà a titolo gratuito. E poi ci mancherebbe altro che se metto un video in H.264 sul mio blog (che non abbia pubblicità, per carità di Dio!) debba anche pagare qualcuno. Pensate, a titolo d’esempio, se Tim Berners-Lee avesse deciso di dare via il Web nella stessa maniera.

«non verranno mai richieste royalties a chi utilizzerà il codec per produrre e distribuire filmati gratuiti per l’utente finale.»
Produrre video? H.264 viene usato solo in fase di distribuzione. Quando ci lavori sopra ci lavori sempre in formati non compressi. Se poi qualcuno si è sbagliato e ha scritto “produrre” invece di “registrare”, allora mi scuso io per non aver capito una vostra improprietà di linguaggio. E comunque mi piacerebbe trovare una telecamerina che registri in H.264 che mi venga fornita a titolo gratuito.

«L’annuncio del consorzio conferma nell’H.264 il formato di riferimento per l’HTML5 e allontana i potenziali sostenitori dell’Ogg Theora, il formato open-source fortemente voluto da Mozilla.»
Il formato non è fortemente voluto da Mozilla ma anche da giganti del calibro di Google, che è poi anche il padrone di Youtube. E poi, cari amici di Macity (l’articolo l’ha scritto Mauro Notarianni) siete rimasti indietro: è da un po’ che abbiamo WebM il quale, nel caso non vi foste giunta voce, è qualcosa in più di un codec video. Voi continuate pure a giocherellare con le vostre dita su schermi luccicanti. Se non vi scoccia troppo, nel frattempo noi andremmo avanti.

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).

read more »

Podencoder script with Single Pass option

iPod TouchI recently bought an iPod Touch, very nice gadget, but with a very bad video section: only a few formats accepted, forcing me to recode almost all my video files.
I found the best way to do it on Linux is to use the Podencoder script by Mark Pilgrim. It mainly needs mencoder and mp4box, both easily installable on Ubuntu and Debian. The only problem is that my computer is really slow, and encoding an H.264 video seems to be never ending, also because the Podencoder script automatically use a Two Passes encoding, which gives the best quality, but also almost double the encoding time.
So I added an option to Podencoder to choose the Single Pass (the Two Passes is still the default action). If you want to encode using Single Pass just use the -1 option, like in this example:


podencoder -1 input_video.avi

You can download the modified script from here: podencoder.

Remember to make it executable. It’s also good to place is in the local bin path. To do all those actions just copy and paste the following lines into your terminal (you need to be root):


wget http://www.soccio.it/code/ipod/podencoder -O /usr/local/bin/podencoder
chmod +x /usr/local/bin/podencoder

If you are using Ubuntu or other sudo enabled distros, you can use these lines instead, without the need of being root:


sudo wget http://www.soccio.it/code/ipod/podencoder -O /usr/local/bin/podencoder
sudo chmod +x /usr/local/bin/podencoder

Nautilus Script Encode for iPod VideoI also prepared a few lines script to encode your videos from the Nautilus file manager. The result videos will be placed into your Desktop. Just place the Nautilus Scripts Encode for iPod – Single Pass and Encode for iPod – Two Passes into ~/.gnome2/nautilus-scripts. Again: remember to make them executable. Again, to download and place the two Nautilus scripts in the right place just copy and paste the following lines into your terminal.


cd ~/.gnome2/nautilus-scripts/
wget "http://www.soccio.it/code/ipod/Encode for iPod - Two Passes"
wget "http://www.soccio.it/code/ipod/Encode for iPod - Single Pass"
chmod +x *
cd