After updating to Fedora18, gstreamer don’t read mpeg4 videos anymore 🙁

This will make it work again (you should’ve added rpmfusion repo first)

yum install gstreamer1-plugins-ugly gstreamer1-plugins-bad-freeworld gstreamer1-libav

Fedora 18 was just released!

You can upgrade your current Fedora 17 like this:

# yum install fedup
# fedup-cli --network 18 --instrepo http://dl.fedoraproject.org/pub/fedora/linux/releases/18/Fedora/x86_64/os

Reboot and select Upgrade in grub menu

Enjoy!

Edit: now that mirrors are updated this should be enough:

# fedup-cli --network 18

Today I wanted to update to latest rhythmbox. Unfortunately it’s not (yet) available for Fedora 16. Yet it’s available for next to come F17 so I rebuilt it:

1. download src rpm

 $ yumdownloader --releasever=17 --enablerepo=updates-testing \
   --source rhythmbox

2. install required dependencies

 # yum install libpeas-devel libgudev1-devel gobject-introspection-devel \
   pygobject3-devel libgpod-devel GConf2-devel brasero-devel \
   gstreamer-plugins-base-devel totem-pl-parser-devel avahi-glib-devel \
   libmusicbrainz3-devel dbus-devel dbus-glib-devel libnotify-devel \
   gstreamer-devel gnome-doc-utils libsoup-devel lirc-devel libmtp-devel \
   libdmapsharing-devel webkitgtk3-devel gstreamer-python-devel \
   libgnome-keyring-devel json-glib-devel libSM-devel perl-XML-Parser \
   intltool gnome-common clutter-gtk-devel clutter-gst-devel libmx-devel \
   grilo-devel libtdb-devel

3. install src rpm

 $ rpm -ivh rhythmbox-2.96-1.fc17.src.rpm

4. build rpm

 $ rpmbuild -bb rpmbuild/SPECS/rhythmbox.spec

5. install (just built) rpm

 # rpm -Uvh /home/jeo/rpmbuild/RPMS/x86_64/rhythmbox-2.96-1.fc16.x86_64.rpm

6. cleanup dependencies

 # yum remove Conf2-devel avahi-glib-devel brasero-devel \
   clutter-gst-devel clutter-gtk-devel dbus-devel dbus-glib-devel \
   gnome-common gnome-doc-utils gobject-introspection-devel grilo-devel  \
   gstreamer-devel gstreamer-plugins-base-devel gstreamer-python-devel \
   intltool json-glib-devel libSM-devel libdmapsharing-devel \
   libgnome-keyring-devel libgpod-devel libgudev1-devel libmtp-devel \
   libmusicbrainz3-devel libmx-devel libnotify-devel libpeas-devel \
   libsoup-devel libtdb-devel lirc-devel perl-XML-Parser pygobject3-devel \
   totem-pl-parser-devel webkitgtk3-devel ORBit2-devel avahi-devel \
   boost-regex cairo-gobject-devel check check-devel clutter-devel \
   cogl-devel ctags docbook-style-dsssl docbook-style-xsl docbook-utils \
   gettext-common-devel gettext-devel gmime-devel gnutls-c++ gnutls-devel \
   gtk-doc gtk3-devel indent libICE-devel libIDL-devel libarchive-devel \
   libdiscid-devel libffi-devel libgcrypt-devel libgpg-error-devel \
   libimobiledevice-devel libplist-devel libquvi-devel libtasn1-devel \
   libudev-devel libusb1-devel libusb1-devel-doc libxml2-devel neon-devel \
   openjade p11-kit-devel perl-SGMLSpm pycairo-devel pygobject2-codegen \
   pygobject2-devel pygobject2-doc pygtk2-codegen pygtk2-devel pygtk2-doc \
   source-highlight usbmuxd-devel

You’re done!

On m’a demandé aujourd’hui comment convertir les pages d’un fichier PDF en images JPEG, Sous GNU/Linux, c’est tout simple (en fait je n’ai pas réussi à le faire en une seule étape avec les outils standard… bientôt peut-être 😉 )

  1. Exporter le PDF en plusieurs images au format ppm (pdftoppm est fourni par le paquet poppler-utils)

    $ pdftoppm filename.pdf filename

  2. Convertif les ppm en jpeg (convert fait partie de la suite ImageMagick)

    $ for file in *.ppm; do convert $file ${file/.ppm/.jpg} && rm -f $file; done

PS : Il est possible de convertir un PDF en une seule images JPEG (incluant toute les pages) avec la commande suivante
$ convert -density 300 filename.pdf filename.jpeg

That’s all forlks!

Next Page »