define('DISALLOW_FILE_EDIT', true);
define('DISALLOW_FILE_MODS', true);
Un petit post bilingue pour présenter mon script qui permet de convertir des vidéos pour la PSP. Pour l’instant c’est le meilleur rapport taille de fichier/qualité qu’on peut trouver sur le marché (meilleur que WinFF ou PSP Video 9)
A little bilingual post to present my script which converts videos for PSP. It is the best one so far with a very good filesize/quality ratio that exists, better than WinFF or PSP Video 9.
Read the following to get the script and see the result.
| J’ai longtemps cherché comment encoder des vidéos pour la PSP. Il y a plein de programmes qui le font, sous Windows comme sous Linux. J’étais plus interessé par Linux mais j’ai testé sous Windows aussi. Sous Linux, la page d’Ubuntu propose d’utiliser ffmpeg. Le problème c’est que cela donne de gros fichiers… De même, sous Windows, après la conversion, les films occupent trop de place. J’ai donc fait un petit script basé sur mencoder. Je compare le résultat de ce script aux programmes suivants : Elecard Studio ProHD (sous Windows), PSP Video 9 (Windows), WinFF (Windows et Linux) et mon script. J’arrive à faire tenir une vidéo de 2 minutes en 7,2Mo. Cela permet de loger un film dans environ 200Mo alors que la plupart des programmes utilise au moins 350Mo. Sur une « memory stick » de 4Go, ça commence à faire pas mal de différence. Si vous cliquez sur l’image plus bas vous pouvez voir la différence de qualité entre les 4 programmes. Globalement, PSP Video 9, WinFF et mon script donnent une qualité similaire mais des tailles de fichiers très différentes (11,5Mo pour Elecard, 16,1Mo pour PSP Video 9 et 24,1Mo pour WinFF contre 7,2Mo pour mon script). Pour qu’on puisse tout comparer j’ai remis à la même résolution les différentes images extraites. On peut aussi constater que le programme d’Elecard est à la traine puisqu’il ne donne qu’une résolution plus faible et donc lors de l’augmentation de résolution, cela amène une image plus floue.Ce script mencoder marche bien sous ma Ubuntu 8.04 Hardy Heron mais devrait marcher sous Windows avec mencoder pour Windows.La vidéo test est la bande annonce HD de Hulk.Plus techniquement on utilise le codec libre x264 pour la video et faac pour l’audio.N’hésitez pas à commenter ce script | I wanted to encode videos for my PSP. I looked for a software to do this either using Linux or Windows. The problem is that the output file is more than 350Mo for a full movie. For Windows I used Elecard Studio ProHD and PSP Video 9. For Linux, I used WinFF which is mainly a GUI for an ffmpeg conversion. The problem is that the movie use, for me, too much space, at least 350Mo which on a Memory Stick of 4Go can be too much. I therefore created a script based on mencoder to convert video for the PSP. The result is that I can have a video of 2 minutes only using 7.2Mo. I can fit a full movie on about 200Mo.You can check the results of such a conversion by clicking the picture below. I resized them to the size of the widescreen movie that it will have on the PSP. You will see that there is no difference in quality between my script, WinFF and PSP Video 9 but the filesizes are very different (11,5Mo for Elecard, 16,1Mo for PSP Video 9 and 24,1Mo for WinFF against 7,2Mo for my script). Elecard is far behind mainly because the output resolution is less that the other softwares and lead therefore to a blurrier/more blurry (I don’t really know which one is correct).The mencoder script can be used on Linux (for me Ubuntu 8.04 Hardy Heron) with the native installation of mencoder and ffmpeg. Still, it should work for Windows using mencoder for Windows. The test video is the HD trailer of Incredible Hulk.Just tecnhically I use the free h264 codec x264 and faac codec for the audio. Do not hesitate to leave a comment. |
mencoder -sws 9 -vf scale -zoom -xy 480 -ovc x264 -oac faac -faacopts br=64:mpeg=4:object=2:raw -channels 2 -srate 24000 -x264encopts crf=26:me=umh:me_range=16:subq=6:trellis=2:global_header:level_idc=30:profile=main:bframes=0 -of lavf -lavfopts format=psp
![]() |
First download the GSAS+EXPGUI package for linux and extract it where you want the package to be installed. In fact, no installation is needed as the extraction gives you the program itself. If you try to run expgui, you should run on a error stating that you don’t have « wish ». To get it install tk8.4 either by doing
sudo apt-get install tk8.4
or simply using synaptic/adept to grab it.
After that, if you try to run expgui again you will see that a prompt telling you « »Error loading the BWidget package: This should not happen if you use the version of Tcl/Tk (tcl84+.exe) distributed with EXPGUI ». But if you try to do what is on the GSAS homepage, as to say
/myprogs/gsas/tcltk84+ /myprogs/gsas/expgui/expgui
you will run into an error also. The first error about the BWidget package is in fact more like a warning and it should not stop the script. To avoid breaking the script, just comment the lines with this statement in your expgui file like this :
#if [catch {package require BWidget}] {
# set msg "Error loading the BWidget package: This should not happen if you use the version of Tcl/Tk (tcl84+.exe) distributed with EXPGUI"
# MyMessageBox -parent . -title "BWidget load error" \
# -message $msg -icon error -type Error -default error \
# -helplink "debug_tcltk.html"
# destroy .
#}
Finally, if you try to run expgui it will complain about blt not being present. An installation of blt via synaptic or adept or using
sudo apt-get install blt
should get rid of the last problem.
Now you should be able to run the GSAS+EXPGUI program on your Ubuntu machine. I don’t know if it works for other linux distro but I would be glad to hear it.
First, I have to say I used the installation script found on this ubuntuforums page. If everything went right during the installation, when I tried to start VMWare i had this huge console outupt (or something like it because I didn’t wrote down the exact output and therefore copy it from another forum)
ERROR: ld.so: object '/usr/lib/vmware/lib/libX11.so.6/libX11.so.6' from LD_PRELOAD cannot be preloaded: ignored.
ERROR: ld.so: object '/usr/lib/vmware/lib/libX11.so.6/libX11.so.6' from LD_PRELOAD cannot be preloaded: ignored.
ERROR: ld.so: object '/usr/lib/vmware/lib/libX11.so.6/libX11.so.6' from LD_PRELOAD cannot be preloaded: ignored.
ERROR: ld.so: object '/usr/lib/vmware/lib/libX11.so.6/libX11.so.6' from LD_PRELOAD cannot be preloaded: ignored.
Locking assertion failure. Backtrace:
#0 /usr/lib/libxcb-xlib.so.0 [0xb6eb5767]
#1 /usr/lib/libxcb-xlib.so.0(xcb_xlib_unlock+0x31) [0xb6eb58b1]
#2 /usr/lib/libX11.so.6(_XReply+0xfd) [0xb708b1bd]
#3 /usr/lib/vmware/lib/libXrender.so.1/libXrender.so.1(XRenderQueryFormats+0x109) [0xb745c969]
#4 /usr/lib/vmware/lib/libXrender.so.1/libXrender.so.1(XRenderFindFormat+0x4c) [0xb745cf4c]
#5 /usr/lib/vmware/lib/libgdk-x11-2.0.so.0/libgdk-x11-2.0.so.0 [0xb78ce180]
#6 /usr/lib/vmware/lib/libgdk-x11-2.0.so.0/libgdk-x11-2.0.so.0 [0xb78ced2c]
#7 /usr/lib/vmware/lib/libgdk-x11-2.0.so.0/libgdk-x11-2.0.so.0(gdk_draw_pixbuf+0x270) [0xb789ec14]
#8 /usr/lib/vmware/lib/libgdk-x11-2.0.so.0/libgdk-x11-2.0.so.0 [0xb78ab24f]
#9 /usr/lib/vmware/lib/libgdk-x11-2.0.so.0/libgdk-x11-2.0.so.0(gdk_draw_pixbuf+0x270) [0xb789ec14]
#10 /usr/lib/vmware/lib/libgdk-x11-2.0.so.0/libgdk-x11-2.0.so.0(gdk_pixbuf_render_pixmap_and_mask_for_colormap+0x255) [0xb78aab34]
#11 /usr/lib/vmware/lib/libgtk-x11-2.0.so.0/libgtk-x11-2.0.so.0 [0xb77af298]
#12 /usr/lib/vmware/lib/libgtk-x11-2.0.so.0/libgtk-x11-2.0.so.0 [0xb77af586]
#13 /usr/lib/vmware/lib/libgtk-x11-2.0.so.0/libgtk-x11-2.0.so.0 [0xb77b177e]
#14 /usr/lib/vmware/lib/libgobject-2.0.so.0/libgobject-2.0.so.0(g_cclosure_marshal_VOID__VOID+0xd1) [0xb79ca459]
#15 /usr/lib/vmware/lib/libgobject-2.0.so.0/libgobject-2.0.so.0 [0xb79b23a1]
#16 /usr/lib/vmware/lib/libgobject-2.0.so.0/libgobject-2.0.so.0(g_closure_invoke+0x1b1) [0xb79b2076]
#17 /usr/lib/vmware/lib/libgobject-2.0.so.0/libgobject-2.0.so.0 [0xb79c96eb]
#18 /usr/lib/vmware/lib/libgobject-2.0.so.0/libgobject-2.0.so.0(g_signal_emit_valist+0x91e) [0xb79c8d46]
#19 /usr/lib/vmware/lib/libgobject-2.0.so.0/libgobject-2.0.so.0(g_signal_emit+0x38) [0xb79c90b8]
Locking assertion failure. Backtrace:
#0 /usr/lib/libxcb-xlib.so.0 [0xb6eb5767]
#1 /usr/lib/libxcb-xlib.so.0(xcb_xlib_lock+0x2e) [0xb6eb581e]
#2 /usr/lib/libX11.so.6 [0xb708a518]
#3 /usr/lib/libX11.so.6(XAddExtension+0x2c) [0xb706dc9c]
#4 /usr/lib/vmware/lib/libXft.so.2/libXft.so.2(_XftDisplayInfoGet+0x77) [0xb746ded7]
#5 /usr/lib/vmware/lib/libXft.so.2/libXft.so.2 [0xb746c8b1]
#6 /usr/lib/vmware/lib/libXft.so.2/libXft.so.2 [0xb746cd39]
#7 /usr/lib/vmware/lib/libXft.so.2/libXft.so.2(XftDrawPicture+0x10) [0xb746cec0]
#8 /usr/lib/vmware/lib/libgdk-x11-2.0.so.0/libgdk-x11-2.0.so.0 [0xb78cc9b6]
#9 /usr/lib/vmware/lib/libgdk-x11-2.0.so.0/libgdk-x11-2.0.so.0 [0xb78ced75]
#10 /usr/lib/vmware/lib/libgdk-x11-2.0.so.0/libgdk-x11-2.0.so.0(gdk_draw_pixbuf+0x270) [0xb789ec14]
#11 /usr/lib/vmware/lib/libgdk-x11-2.0.so.0/libgdk-x11-2.0.so.0 [0xb78ab24f]
#12 /usr/lib/vmware/lib/libgdk-x11-2.0.so.0/libgdk-x11-2.0.so.0(gdk_draw_pixbuf+0x270) [0xb789ec14]
#13 /usr/lib/vmware/lib/libgdk-x11-2.0.so.0/libgdk-x11-2.0.so.0(gdk_pixbuf_render_pixmap_and_mask_for_colormap+0x255) [0xb78aab34]
#14 /usr/lib/vmware/lib/libgtk-x11-2.0.so.0/libgtk-x11-2.0.so.0 [0xb77af298]
#15 /usr/lib/vmware/lib/libgtk-x11-2.0.so.0/libgtk-x11-2.0.so.0 [0xb77af586]
#16 /usr/lib/vmware/lib/libgtk-x11-2.0.so.0/libgtk-x11-2.0.so.0 [0xb77b177e]
#17 /usr/lib/vmware/lib/libgobject-2.0.so.0/libgobject-2.0.so.0(g_cclosure_marshal_VOID__VOID+0xd1) [0xb79ca459]
#18 /usr/lib/vmware/lib/libgobject-2.0.so.0/libgobject-2.0.so.0 [0xb79b23a1]
#19 /usr/lib/vmware/lib/libgobject-2.0.so.0/libgobject-2.0.so.0(g_closure_invoke+0x1b1) [0xb79b2076]
vmware: ../../src/xcb_lock.c :77 : _XGetXCBBuffer: L'assertion « ((int) ((xcb_req) - (dpy->request)) >= 0) » a échoué.
The problem seems to come from an incompatibility of version between the libX11 library of Ubuntu and the one required from VMWare. How to solve it. First download this old version of the library (don’t worry we wont replace yours but just make VMWare think that it has to use this one). Then in a terminal do the following :
cd /usr/lib/vmware/ (We go into the directory where VMWare is installed)
sudo mkdir lib/libX11.so.6 (We create a directory where we will put the old version of the library that VMWare will use)
sudo cp /path/to/the/downloaded/libX11.so.6 lib/libX11.so.6/ (We copy the old library into the VMware library directory we've just created)
Now you should be able to run VMWare properly. Please comment if it worked for you! You can find other linux ressources on this page
]]>![]() |
Il avait même été baptisé non officiellement goobuntu. Finalement, un linux a été développé pour se baser en grande partie sur les applications en ligne développé par Google. Il s’agit de gOS, une sorte de linux tirant avantage du dévelopement de l’internet et des applications disponibles en ligne. Je vous propose ici une petite revue des possibilités de gOS que j’ai testé grâce au liveCD.
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
| gOS – Ecran d’accueil |
gOS – Macintosh dock style |
gOS – Chercher une applications |
gOS – Linux Kernel 2.6.22-14 |
gOS – Mozilla Firefox |
gOS – Ajuster les paramètres |
gOS – Clic gauche | gOS – Clic droit |
Tout d’abord, il est basé sur une Ubuntu avec un noyau sur 2.6.22-14 ce qui peut permettre portentiellement une prise en charge de pas mal de matériel. Je dois dire que si mon disque dur et ses partitions ont été reconnus (je le rappelle, je suis sur le live CD), ils ne sont pas automatiquement montés. Il faut donc passer par la traditionnelle création d’un point de montage puis le montage proprement dit. Par contre, ma clé USB a été montée automatiquement mais seulement avec un accès en lecture. Enfin, l’écran large n’est pas reconnu comme tel et j’ai donc eu une résolution de 1024×768 au lieu du 1280×800.
Côté interface graphique, le système utilise Enlightment E17 ce qui le rend léger et facilement maniable. Les habitués de KDE, Gnome… (Windows, Mac) pourront être un peu déroutés par le fait que les deux clics de souris sont utilisés pour faire apparaitre des menus (gauche
applications courrantes (7ème image) , droit, une sorte de menu déroulant à applications (8ème image).
Il y a en bas aussi un lanceur rapide d’applications qui a l’avantage (ou l’inconvénient) de ne lancer que des applications disponibles sur internet et qui ressemble fortement à un dock macintosh.
C’est d’aileurs le parti pris de cette distribution : on y retrouve un lien vers tout un tas de Google Apps (Docs and Spreadsheet, GMail,
Google Reader, Google Calendar). De même, pour la messagerie instantanée on trouvera gBooth ou Meebo. Grâce au google gears, ces applications pourront être rendues disponibles lorsqu’on est hors-ligne et synchroniser les données entre le en ligne et hors-ligne. Cependant, Google Gears ne marche pour l’instant que pour Google Reader. De ce fait, gOS propose tout de même une suite OpenOffice (2.3) ainsi qu’un client mail (Thunderbird 2.0) et Pidgin pour la messagerie instantanée. Pour ce qui est du graphisme on regrettera que seul GIMP soit présent car, pour visionner une image, il y a plus léger. L’intégration d’une petite visionneuse très simple (du type xzgv par exemple) aurait été la bienvenue.
De même, le lancement de certaines tâches/applications s’avèrent parfois un peu difficile. Je pense notamment au terminal qui ne se trouve pas facilement (allez, je vous aide, pour ouvrir le terminal sous gOS, il faut faire « run » et commencez à tapper terminal pour qu’il soit proposé).
Enfin, une fois installé, le système occupe aux alentours de 2.3Go. Soit comme un Ubuntu classique dirons nous.
Voilà pour ce test de la distribution Linux gOS. Disons que c’est un OS en devenir mais qui reste assez prometteur.
]]>C’est un logiciel (gratuit) qui permet de réaliser soi-même des paysages. Le résultat est plutôt convaincant. Je n’ai pas testé Terragen2, mais parait-il que les résultats sont encore plus saisissant.
L’ergonomie du logiciel est très bonne et on comprend très rapidement comment cela fonctionne. Une fois le paysage généré, on peut choisir l’angle de vue et exporter l’image (taille maximum 1280 x 960).
L’avantage de Terragen est qu’il est disponible sous Windows, Macintosh et qu’on peut aussi l’utiliser sous Linux via le paquet wine. Je vous
présente quelques unes de mes réalisations plus bas, vous verez, c’est pas mal du tout. A vous les fonds d’écran numériques!
![]() |
![]() |
![]() |
D’abord, la version finale de framegrabber/framegrabGTK se profile. On en est à la version 0.1.2 officiellement et 0.1.3 officieusement. Cela ressemble maintenant très fortement à un véritable imagegrabberII mais pour Linux. Encore un petit peu de travail et ce sera tout pareil.
Enfin, pas mal de personnes connaissent les googlehacks, c’est à dire à partir de simple mot clés comment rechercher de la musique par exemple. La personne avec qui je réalise framegrabgtk a monté un site qui permet de faire ça directement comme à l’intérieur de Google. Allez donc faire un tour sur http://www.autofillband.co.uk/
Voici une petite capture d’écran du site
![]() |
C’était agréable mais le temps était très lourd (80% d’humidité) et il y faisait vraiment chaud (32°). Nous avons tout de même pu visiter un petit peu. Je suis notamment retourné au Pavillon d’Or et au Pavillon d’argent. Je mettrais des photos bientôt dans l’onglet Japon.
Lors de notre passage à Osaka, nous avons pu aussi écumer quelques boutiques de nouvelles technologies. J’ai notamment été frappé par un nouvel ordinateur Sony qui tient plus de l’ordinateur de poche que de l’ultraportable. Je mets quelques photos ici qui proviennent de leur site. Ce qui m’a surpris c’est d’une part la petitesse de l’odinateur par rapport à ses performances (1,3GHz, 1Go de RAM, 32Go de
disque dur, Wifi, prise LAN) mais aussi le fait que l’écran soit tactile. Ces japonais, ils sont vraiment forts!
![]() |
![]() |
![]() |
D’autre part, le projet framegrabber que j’avais initié (voir ce billet la page Linux) possède maintenant une interface graphique et est hébergé sur sourceforge sous le nom de framegrabgtk. Ce projet est mené conjointement avec bobocanfly. Le premier script restera toujours hébergé sur la page Linux
]]>Je mets rapidement au dessous quelques captures d’écran de ce qu’on peut faire avec Linux et qui ressemble beaucoup à Vista… Seules différences : c’est gratuit et on peut tout modifier librement ;). Exemple : une vidéo que j’ai faite il y a un an avec un thème de bureau complètement différent.
![]() |
![]() |
![]() |
| Apparence générale |
Fonction « exposé » comme sous Mac OS X |
4 bureaux différents sur 4 faces d’un cube |