Page 1 of 1

Pup record

Posted: Tue 08 Mar 2011, 05:41
by Lobster
This is a simple screen recorder
http://www.murga-linux.com/puppy/viewto ... 087#502087

There is a front end which I wrote and my
programming buddy 'Shadow' created this part
which increments the saving of video mpg's . . .

Code: Select all

#!/bin/sh
X=1
fname="video$X.mpg"
while ([ -f $fname ])
do
  ((X++))
  fname="video$X.mpg" 
done
var="$(xrandr | grep '*')"
IFS=" "
set -- $var
ffmpeg -f x11grab -s $1 -r 25 -i :0.0 -sameq $fname
but how to add sound recording?
would 'wavrec' do it (and then stitch them together) or some
parameter in 'ffmpeg'?

Posted: Tue 08 Mar 2011, 09:03
by jamesbond
Lob, have you forgotten Fatdog64 has this screen recorder for a while already (menu Graphic --> Screencaster).
ffmpeg can do it, just add the following parameters to ffmpeg:

Code: Select all

-f alsa -ac $AUDIO_CHANNEL -ar $AUDIO_SAMPLERATE -i $AUDIO_DEVICE -acodec $AUDIO_CODEC -ab $AUDIO_BITRATE
For more details, you can check the source.

AUDIO_CHANNEL is number of audio channel, usually is 2
AUDIO_SAMPLERATE - obviously it's the sample rate (44100, 22050, 8000, or others)
AUDIO_DEVICE is usually hw:0,0
AUDIO_CODEC is the codec, you can use libmp3lame, libfaac, pcm_s8 or others
AUDIO_BITRATE is the bitrate reserved for audio, 8000, 16000, 64000, whatever.

Good luck.

Posted: Tue 08 Mar 2011, 09:20
by Lobster
Lob, have you forgotten Fatdog64 has this screen recorder for a while already
Yes I forgot :oops:
thanks for the reminder . . .
OK off to look for my head which was loosely screwed
to my head last time I looked . . . :oops:

If I find my head, it will make use of the code - thanks again :)

parfait ! perfect ! muy bien !

Posted: Sat 18 May 2013, 18:15
by Pelo
Bravo Lobster, nothing to say : a usefull little too, like i like them.
If I install ffmpeg from w5, i loose the sound. I withdraw it.
It's very OK !