Code‎ > ‎

recordmydesktop

###############
recordmydesktop
###############
***************

Using RecordMyDesktop with Pulseaudio
=====================================

.. note::
Try the easy way first. Lookup Perfect Setup on the Pulseaudio wiki and 
add an alsa pulse plugin to the alsa config and set the audio device
in recordmydesktop to be "pulse." If it still doesn't work, read on.

Using RecordMyDesktop with sound on my laptop, with the featureless sound card, fails with "input/output error". However, its still possible to record sound using Pulseaudio (Pulseaudio being the default on Ubuntu 8.10/9.04 now). RecordMyDesktop current doesn't feature recording with Pulseaudio, but you can record sound and video separately and mux them together.

Here's a script that will do that for you,

parmd.sh
--------
Download the script: `<parmd.sh>`_

This script automatically starts up parec piping into sox and recordmydesktop. After recordmydesktop terminates, it merges the files with oggzmerge.

Packages required (besides pulseaudio and recordmydesktop)
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
* `sox <apt://sox>`_
* `oggz-tools <apt://oggz-tools>`_

Command options
'''''''''''''''

To run with default options::
./parmd.sh my-output-file

my-output-file.ogg will be created in the same working directory

To run with options for recordmydesktop, include the options after the double dash::
./parmd.sh my-output-file -- -fps 24

.. note:: Do not specify the recordmydesktop ``-o`` output file option.
parmd.sh specifies the output file option to a location in /tmp and then creates a file with the name specified (ie my-output-file in the above example). parmd.sh will ask you to overwrite files if it already exists.


RecordMyDesktop with Pulseaudio inside a Xepher window
======================================================
To allow a clean recording of an application, you can run the application in a Xepher window. You will need recordmydesktop version 0.3.7.2 or greater. Versions lower than this will generate assertion errors with different displays.

1. Start up Xepher like so
xepher -ac -screen 800x600 :1 &
2. Now run the application of your choice
DISPLAY=:1 milkytracker &
3. Then run parmd.sh
./parmd.sh my-output-file -- -display: 1

.. tip:: Making sdl output sound to pulseaudio
Be default sdl outputs to alsa. See http://pulseaudio.org/wiki/PerfectSetup for more information.
In Debian and derivatives, you can install `<apt://libsdl1.2debian-esd>`_ or `<apt://apt://libsdl1.2debian-all>`_ and specify the SDL_AUDIODRIVER environment variable.

:Created: 20 Jun 2008
ċ
parmd.sh
(2k)
Christopher Foo,
Dec 28, 2009, 1:00 AM
Comments