Blog de François Becker

Aller au contenu | Aller au menu | Aller à la recherche

mercredi 30 septembre 2015

Compress a MP4 video using ffmpeg

This is the two-pass command, using a 2048k video bitrate:

ffmpeg -y -i <input>.mp4 -c:v libx264 -preset medium -b:v 2048k -pass 1 -c:a libfdk_aac -b:a 128k -f mp4 /dev/null && ffmpeg -i <input>.mp4 -c:v libx264 -preset medium -b:v 2048k -pass 2 -c:a libfdk_aac -b:a 128k <output>.mp4

samedi 28 janvier 2012

How to disable the F10 menu shortcut in Unity

In the newest versions of Ubuntu, Unity is the default user interface for GNOME. It introduces the controversial feature of a Mac OS X like menu bar. This menu bar is triggered by the F10 key shortcut; however, this shortcut is used in some desktop applications, for instance for the "step" functionality of Qt Creator's debugger.

To change or disable this shortcut, follow these steps:

  • open a terminal an launch gconf-editor
  • browse the tree to / > apps > compiz-1 > plugins > unityshell > screen0 > options
  • edit the value of the "panel_first_menu" key to another key (for example F12).

The new configuration should be immediately applied.