Video/Audio Record of the DOSBox via ffmpeg and arecord
This is a short Video i made useing :
#!/bin/sh
ffmpeg -f x11grab -s 640x400 -r 23.976 -sameq -i 0:1 /tmp/test.avi &
arecord -f CD -D default /tmp/test.wav &
exit $?
And setting the capture option in alsamixer for "wave" and "mic" to record both parallel.
The white Mousecursor is a little disturbing but at last Video and Audio are in nearly synced (only about 200ms Video is faster :-( i need another recording script, one that does exit arecord properly by sending SIGTERM parallel to sending SIGTERM to ffmpeg.) Perfect sync will this be i hope :)
For future recording i will use the following script :
#!/bin/sh
filename=$1
resolution=$2
ffmpeg -f x11grab -s $resolution -r 25 -sameq -i 0:1 ~/$filename-$(date +%Y%m%d).avi & PIDvideo=$!
arecord -f CD -D default ~/$filename-$(date +%Y%m%d).wav & PIDaudio=$!
read -p "press enter to stop recording"
kill $PIDvideo $PIDaudio
usage is :
scriptname filename screenresolution
e.g. : dosboxrecord test 640x400