How to Record Your Desktop Video and Audio Using “Avconv” Tool in Ubuntu

If You Appreciate What We Do Here On TecMint, You Should Consider:

  1. Stay Connected to: Twitter | Facebook | Google Plus
  2. Subscribe to our email updates: Sign Up Now
  3. Use our Linode referral link if you plan to buy VPS (it starts at only $10/month).
  4. Support us via PayPal donate - Make a Donation
  5. Support us by purchasing our premium books in PDF format.
  6. Support us by taking our online Linux courses

We are thankful for your never ending support.

Hanny Helal

A Linux & Foss user since 2010, working on many projects in the field of Free Software.

Your name can also be listed here. Got a tip? Submit it here to become an TecMint author.

Receive Your Free Complimentary eBook NOW! -

Download Free Linux eBooks

Advanced Bash-Scripting Guide
Linux Bible
A Newbie's Getting Started Guide to Linux
Introduction to Linux - A Hands on Guide

You may also like...

12 Responses

  1. Zeeshan says:

    I want to Record the video for 30 minutes for example, how do i include it on the code?

  2. mark says:

    This is not working. How can i just uninstall this app?

  3. Fernando Biondi says:

    Hello I’m getting this error : Unknown input format: ‘X11grab’
    I’m running Ubuntu14.04 LTS on a hp compaq 6910 laptop
    eve using x11 or X11 always gives the same error
    Would you please tell me what’s wrong ?
    Thanks in advance for your kind answer

  4. any says:

    Before updating avconv with following commands youtube-dlg was running fine on Mint 17.1.

    $ sudo apt-get install yasm
    $ git clone git://git.libav.org/libav.git
    $ cd libav
    $ ./configure
    $ make
    $ sudo make install

    But if i want to convert audio of a youtube video to mp3 now, i receive the error-message:
    ERROR: audio conversion failed: Unknown encoder ‘libmp3lame’

    libmp3lame-dev and libmp3lame0 are installed.

    Please can you help me to fix the error?

  5. Hello,

    I compiled the avconv command on Ubuntu 14.04 LTS, and received the following error:

    davidg@machine:~$ avconv -f alsa -i hw:1 -f x11grab -r 25 -s 1920×1080 -i :0.0 -vcodec libx264 -threads 4 output-file2.avi
    avconv version v12_dev0-1240-gcfdaa4d, Copyright (c) 2000-2015 the Libav developers
    built on Apr 24 2015 10:24:42 with gcc 4.8 (Ubuntu 4.8.2-19ubuntu1)

    Unknown input format: ‘alsa’

  6. tom says:

    Q1. I am playing a game. The game has a very interesting sound theme. If I record my desktop, I can’t capture that sound theme right now. Is there any options to grab the sounds that come from the system.

    Q2. With this command, is it possible to record in tty (text terminals)?

  7. Dimitris Anogiatis says:

    You can also try ScreenStudio as a gui for avconv. It allows you to record your desktop and add other things like a logo and a small blurb as a title for your screencast, and also capture the picture from your webcam.

    it can also allow you to stream what you get to either Youtube live and a few other sites.

    Check it out at: http://screenstudio.crombz.com/

Got something to say? Join the discussion.

Your email address will not be published. Required fields are marked *

Join Over 150K+ Linux Users
  1. 100,756
  2. 5,113
  3. 36,418

Enter your email to get latest Linux Howto's