Is there a command line tool out there that can record your computer screen and audio device and then save that to a file?
|
migrated from stackoverflow.com Jul 18 '10 at 1:53
|
Mac OS X offers the ability to capture static screenshots from the command line using a utility called unimaginatively eg. As for recording motion and computer audio you can do this via AppleScript using QuickTime Player X if you're using Mac OS X 10.6 or newer. (However it's definitely not "silent" and will only run when someone is logged in) (Recording the screen for 5 seconds, just a possible starting point)
|
|||||||||
|
|
I'm using SOX and VLC for capture, crontab for scheduling, XLD to create m4a and MP4Box for multiplexing. It is quite flexible, but requires knowledge of Bash scripting (perhaps also Apple script) I found my inspiration in Diego Massanti's mkmp4 script. core processes to launch:
Scheduling recording:
you can get an idea what the script is doing: record 3h capture, mono sound, every working day at 8AM I did not find nor compile SOX enabled for MPEG audio streams, hence using FLAC to save some space; I'm using XLD to convert it to AAC-HE 16kbps, which is enough for voice. Next step: multiplex audio and video to create mp4. If you don't mind to use GUI, then MPEG StreamClip (or QuickTime) serves also well.
I'm using this daily to create archive of GoToWebinar, but when next release of FFmpeg supports G2M4 codec, I won't bother anymore. Yes, there's also OSAscript to launch the webinar which also required getting rid of com.apple.quarantine flag to disable warning (Are you sure you want to open it?). links: http://blog.massanti.com/2008/09/26/mkmp4-automated-h264-aacplus-encoder-script-mac-linux/ |
|||
|
|
You can use the software ffmpeg. To install it on a Mac, follow the instructions here. Then use the command:
|
|||
|
|
|
For capturing screen, there is several Open Source tools. You should search "screen capture" using a package manager on Linux. Tools like Capturing sound is really recording for microphone sound device. It's not really a snapshot and you should manage how long the recording should be done.Any sound recorder will do. There is also tools that makes a video of your desktop. |
|||
|
|
|
Dumping the contents of the Linux framebuffer device to a file may be something similar to what you are looking for. Below, I have quoted the relevant portion of the Linux 2.2 Framebuffer Device Programming Tutorial, take a look. You will need to configure your system to enable the framebuffer device (check if you have /dev/fb0 on your system), I don't have it on my Ubuntu 9.04.
|
|||
|
|
|
You can use import from ImageMagick, but it's Linux only. Then you could go to a terminal and execute:
|
|||
|
|