Posts Tagged ‘Sound’

How to make Video from your Linux Desktop with xvidcap / Capture desktop output in a video on Linux

Wednesday, April 6th, 2011

If you have wondered on how to create videos aiming at manuals on how you do certain stuff on Linux, let’s say related to programming or system administration.
Then you should definitely check out

xvidcap

Below is the package description as taken from apt-cache show xvidcap

A screen capture enabling you to capture videos off your X-Window desktop
for illustration or documentation purposes. It is intended to be a
standards-based alternative to tools like Lotus ScreenCam.

On Debian based Linux systems (e.g. Debian Ubuntu) xvidcap is available straight from the package repositories. To install and test it you can straight issue:

linux:~# apt-get install xvidcap
...

To start using xvidcap, either by starting it with alt+f2 in gnome or straight launch it from the applications menu via:

Applications -> Sound & Video -> xvidcap

Here is how the xvidcap program looks like right after you start it;
xvidcap screenshot main menu

As you see in the screenshot xvidcap’s menu interface is extraordinary simple.

As you see it only has a stop, pause, rec, back and forward buttons, a capture selector and movie editor.
Pitily xvidcap does not support music capturing, but at least for me that’s not such an issue.

If you click over the field test-0000.mpeg[0000] with your last mouse button, you will notice a drop down menu with an option for preferences of xvidcap.

Take the time to play with the preferences, since there are quite a few of them.

The most important preference that you might like to straightly adjust in my view is in the:

Preferences -> Multi-Frame tab -> File Name:

The default file that xvidcap uses to store it’s content files as you will see in the preferences is utest-%04d.mpeg

If you want to change the type of the output file format to let’s say flv change the File Name: value to utest-%04d.flv
Next time you record with xvidcap, you will have the file stored in flv format.

The red lines which you see in the above screenshot is the capture area, you will have to also tune the screen capture area before you can proceed with recording a video from your desktop.

The way to capture your Desktop in fullscreen is a bit unusual, you first need to mark up all your visible Desktop and before that you will have to select from xvidcap’s preferences from:

Preferences -> General -> Minimize to System Tray

By selecting this option each time you press the xvidcap’s record button the xvidcap’s controller interface will be minimized to tray and capturing the video of the region previously selected with the capture selector will start up.

No sound via pulseaudio in gnome 2.28 Debian unstable after upgrade and a simple fix

Sunday, October 4th, 2009

I’ve upgraded to gnome 2.28 on my Debian unstable. I was not surprised
to find out that sound is not working again. After some general debugging and testing :).
I’ve found the solution. The solution is to simply delete .pulse and .pulse-cookie
rm -rf ~/.pulserm -rf ~./.pulse-cookieNow restart pulseaudio:
killall -HUP pulseaudio
Hopefully sound now should be flowing right through your speakers.
END—–

Make Pulseaudio play multiple sound streams in Gnome 2.26

Friday, September 4th, 2009

I’ve recently upgraded my Debian as you’ve probably red in my previous posts, anyways. I’ve noticed that after the upgrade I couldn’t play parallel sound streams of let’s say rhythmbox and audacious. So logically I started looking for a fix. First I tried to install the paprefs debian package. That nice gtk interface for configuring pulseaudio includes a menu called Simultaneous Output there I’ve ticked the Add virtual output device for simultaneous output on all local sound cards hoping that this would solve my issues. However that was no go, so I googled around looking for a solution and I came upon The following forum thread discussing howto solve the simultaneous sound issues. I tried some of the solutions proposed there and figured out the fix for me. Here is the solution itself: 1. I’ve created .asoundrc file in my home directory ~/.asoundrc containng:

pcm.pulse {
    type pulse
}

ctl.pulse {
    type pulse
}

pcm.!default {
    type pulse
}

ctl.!default {
    type pulse
}

I needed to restart my gnome session in order to make the changes in .asoundrc noticeable to pulseaudio although probably simply restarting the pulseaudio server would be a solution that won’t require to restart your current gnome session.Cheers! 🙂
END—–