Saturday, October 20, 2012

GhostBSD 3.0-RC2


Eric Turgeon has announced the availability of the second release candidate for GhostBSD 3.0, a desktop-oriented operating system with GNOME or LXDE based on FreeBSD: "The second release candidate of GhostBSD 3.0 GNOME 2 and LXDE is now available for testing. Changes since LXDE RC1: FreeBSD 9.1-RC1 to FreeBSD 9.1-RC2; new WiFi configuration method; Firefox has replaced SeaMonkey; we have ported LXMusic to FreeBSD to replace Audacious; we have ported LxRandr to FreeBSD and add it; XChat has been added; X.Org is now automatically configured; Slim has been replace by GDM." See the release announcement for more details and known issues. Download: GhostBSD-3.0-RC2-gnome2-i386.iso (969MB, MD5), GhostBSD-3.0-RC2-lxde-i386.iso (628MB, MD5), GhostBSD-3.0-RC2-gnome2-amd64.iso (1,018MB, MD5), GhostBSD-3.0-RC2-lxde-amd64.iso (680MB, MD5).

Some Useful FFMPEG Commands (Screencasting, Rotate Video, Add Logo, etc.) - Ubuntu/Linux Mint



In this tutorial we will see some useful FFMPEG commands that you can use on Ubuntu/Linux Mint to make screencasting videos, rotate videos, add logo/text watermarks to a video, insert shapes, and so on.

To install ffmpeg and some other packages on Ubuntu/Linux Mint, open the terminal and run these commands:

sudo apt-get install ubuntu-restricted-extras

sudo apt-get install ffmpeg x264

sudo apt-get install frei0r-plugins mjpegtools

Note: The file formats used in this tutorial are selected randomly and you can set any other extension of your choice.

1. Screecasting

To record your screen withh FFMPEG, you can use this command:

ffmpeg -f x11grab -follow_mouse 100 -r 25 -s vga -i :0.0 filename.avi

Now the command will record every spot on your screen you hover your mouse cursor over. Press Ctrl+C to stop recording. If you want to set a screen resolution for the video to be recorded, you can use this ffmpeg command:

ffmpeg -f x11grab -s 800x600 -r 25 -i :0.0 -qscale 5 filename.avi

To show the region that will be recorded while moving your mouse pointer, use this command:

ffmpeg -f x11grab -follow_mouse centered -show_region 1 -r 25 -s vga -i :0.0 filename.avi

If you want to record in fullscreen with better video quality (HD), you can use this command:

ffmpeg -f x11grab -s wxga -r 25 -i :0.0 -sameq  video.mp4

Her is a video example created with the latter command:


2. Add Audio To A Static Picture

If you want to add music to a static picture with ffmpeg, run this command from the terminal:

ffmpeg -i audio.mp3 -loop_input -f image2 -i file.jpg -t 188 output.mp4
3. Add Image Watermarks to A Video

To add an image to a video using ffmpeg, you can use one of these commands:

Picture Location: Top Left Corner

ffmpeg -i input.avi -vf "movie=file.png [watermark]; [in][watermark] overlay=10:10 [out]" output.flv

Here is an example:

Picture Location: Top Right Corner

ffmpeg –i input.avi -vf "movie=watermarklogo.png [watermark]; [in][watermark] overlay=main_w-overlay_w-10:10 [out]" output.flv

Picture Location: Bottom Left Corner

ffmpeg –i input.avi -vf "movie=watermarklogo.png [watermark]; [in][watermark] overlay=10:main_h-overlay_h-10 [out]" output.flv

Picture Location: Bottom Right Corner

ffmpeg –i input.avi -vf "movie=watermarklogo.png [watermark]; [in][watermark] overlay=main_w-overlay_w-10:main_h-overlay_h-10 [out]" output.flv

4. Add Text Watermarks To Videos

To add text to a video, use this command:

ffmpeg -i input.mp4 -vf drawtext="fontfile=/usr/share/fonts/truetype/freefont/FreeSans.ttf: text='YOUR TEXT HERE':fontcolor=red@1.0:fontsize=70:x=00: y=40" -y output.mp4

An example:

To use another text font, you can list them from the terminal with this command:

ls /usr/share/fonts/truetype/freefont/

4. Rotate Videos

To rotate a video 90 degrees with ffmpeg, run this command:

ffmpeg -i input.avi -vf transpose=1 output.avi

Here is an example for a video rotated with ffmpeg:


Here is all parameters:

  • 0 = 90 degrees CounterCLockwise  (Vertical Flip (default))
  • 1 = 90 degrees Clockwise
  • 2 = 90 degrees CounterClockwise
  • 3 = 90 degrees Clockwise (Vertical Flip)

5. Adjust Audio/Video Volume
You can use ffmpeg to change volume of a video file with this command:

ffmpeg -i input.avi -vol 100  output.avi

To change volume of an audio file, run this command:

ffmpeg -i input.mp3 -vol 100 -ab 128 output.mp3

6. Insert A Video Inside Another Video

To do this, run this command:
ffmpeg -i video1.mp4 -vf "movie=video2.mp4:seek_point=5, scale=200:-1, setpts=PTS-STARTPTS [movie]; [in] setpts=PTS-STARTPTS, [movie] overlay=270:240 [out]" output.mp4

Here is an example:


7. Add a Rectangle To A Video

To draw for example an orange rectangle in a video, you can use this command:

ffmpeg -i input.avi -vf "drawbox=500:150:600:400:orange@0.9" -sameq -y output.avi

Video example:

If you have something to add or report a mistake, please use the comment form below.

Friday, October 19, 2012

Manual Book For Ubuntu 12.10 Quantal Quetzal



Manual Book for Ubuntu 12.10 announced by Ubuntu Manual Team. With title “Getting Started with Ubuntu 12.10″ and writen in over 52 languages, including English, French, Deutsch, Chinese, Italian, Finnish, Russian, Spanish, Romanian, Vietnamese, Japanese, Serbian, Catalan or Australian English. It contain about how-tos, guides, basic information about Linux and its components, and everything one needs to know after installing Ubuntu 12.10.
The Ubuntu 12.10 Manual Book Designed for Newbie in Ubuntu and advanced users. the 143 pages long PDF document will definitely help new users to learning and understanding new Ubuntu 12.10 Quantal Quetzal. This book Now ready to download for free

Manual book ubuntu 12.10 Getting Started with Ubuntu 12.10.pdf  Manual Book For Ubuntu 12.10 Quantal Quetzal
The Ubuntu 12.10 Quantal Quetzal will be the 17th release of the Ubuntu operating system, supported for 3 years on the Desktop and 2 years on the Server. Ubuntu 12.10 (Quantal Quetzal) came with Unity interface updated, updated applications, as well as brand new artwork. it will be released on October 18th, 2012.

Ubuntu Studio 12.10


Ubuntu Studio 12.10, a new version of the official Ubuntu variant compiled to give sound, video and graphics artists a free computing platform on which to unleash their creativity, is out and ready for download: "Ubuntu Studio is the Ubuntu flavour designed for content creation. Improved interface: a new web page, the help button on the main menu points there; Task Manager has been switched to System Monitor for better memory use display; a main menu tool has been added to setting to allow the user to change their menu; add/fix text Plymouth theme; set up Software Centre menu items for our workflows; fixed submenu icons for accessories, education and network. New software include: Xfce updated to version 4.10; Linux kernel (low latency) is now version 3.5." See the complete release notes for more details. Download (SHA256): ubuntustudio-12.10-dvd-i386.iso (2,130MB, torrent), edubuntu-12.10-dvd-amd64.iso (2,165MB, torrent).

Edubuntu 12.10


Edubuntu 12.10, a special flavour of Ubuntu designed for educational institutions, was also released yesterday as part of the Ubuntu product family: "The Edubuntu development team is proud to announce the release of Edubuntu 12.10. Edubuntu 12.10 is a regular release bringing updated software and a few improvements. For larger deployments and environments where a stable, well tested system is preferred, the Edubuntu development team strongly recommends staying on the long-term support releases (current release is 12.04.1). LTSP users should also remain on Edubuntu 12.04 LTS as 12.10 is lacking Unity support for LTSP and has been reported to be much slower than 12.04. This new release is well suited for home users and users who wish to use the latest versions of the available software." Read the release announcement and release notes for further info. Download (SHA256): edubuntu-12.10-dvd-i386.iso (2,558MB, torrent), edubuntu-12.10-dvd-amd64.iso (2,584MB, torrent).

Install Nvidia Driver 304.60 In Ubuntu 12.10/12.04/Linux Mint 13



The Nvidia driver 304.60 has been released recently in the Nvidia website. In this tutorial we will help you install it in Ubuntu/Linux Mint. For Ubuntu 12.10  (Quantal Quetzal), the PPA given below doesn't support it so far, but you can install the driver manually as shown below.



 Here are the changes and bug fixes in this latest release:

    Fixed a bug that caused the X server to crash if a display was put into DPMS off mode and subsequently reenabled while screen transformations are in use.
    Fixed a bug that caused the X Resize and Rotate extension to be enabled when Xinerama is enabled. These two X extensions are incompatible and having them both enabled can confuse window managers such as KDE's kwin. RandR is now correctly disabled when Xinerama is enabled.
    Fixed a bug causing OpenGL stereo applications to not work properly when using passive stereo modes 5 through 9 on Quadro Fermi and newer GPUs.
    Updated nvidia-settings to report Dedicated GPU Memory (i.e., the memory dedicated exclusively to the GPU) and Total GPU Memory (i.e., Dedicated GPU Memory plus any TurboCache(TM)-accessible system memory) separately on the GPU information page.
    Added reporting of the current utilization of Dedicated GPU Memory to the GPU information page of nvidia-settings.
    Added support for the "Backlight" RandR output property for configuring the brightness of some notebook internal panels.
    Fixed a bug that prevented the Ubuntu Unity launcher panel from unhiding: https://bugs.launchpad.net/unity/+bug/1057000
    Fixed a bug that caused nvidia-installer to sometimes attempt to write a log file in a nonexistent directory.
    Fixed a bug that caused incorrect input transformation after resizing an NVIDIA X screen with xserver ABI 12 (xorg-server 1.12) or newer.
    Fixed a bug that caused GLX to leak memory when Xinerama is enabled.

Driver Installation (Latest Long Lived Branch version: 304.60)

To install from x-swat PPA for Ubuntu 12.04/Linux Mint 13 or older, run these commands:

sudo apt-add-repository ppa:ubuntu-x-swat/x-updates
sudo apt-get update
sudo apt-get install nvidia-current nvidia-settings

Or install manually with these instructions for Ubuntu 12.10 (Quantal Quetzal):

1. Open the terminal and download this file with these commands:

cd && wget http://dl.dropbox.com/u/47950494/upubuntu.com/nvidia-304-60

chmod +x nvidia-304-60

2. Press CTRL+ALT+F3 to enable CLI mode, log in using your username and password, then kill the Xserver with this command:

 sudo service lightdm stop

3. Start the installation of the Nvidia driver 304.60 with this command:

cd && sudo sh nvidia-304-60

4. When the installation is complete, run this command to reboot your system:

sudo reboot

Note: You may also use these instructions to install the driver in GUI mode without the need to kill the Xserver.

You can also check this tutorial which explains how to install the Nvidia driver in Recovery Mode.