The time now is Mon 20 May 2013, 03:57
All times are UTC - 4 |
| Author |
Message |
Lobster
Official Crustacean

Joined: 04 May 2005 Posts: 15109 Location: Paradox Realm
|
Posted: Tue 08 Mar 2011, 01:41 Post subject:
Pup record Subject description: recording desktop - with sound? |
|
This is a simple screen recorder
http://www.murga-linux.com/puppy/viewtopic.php?p=502087#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: | #!/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'?
_________________ Puppy WIKI
|
|
Back to top
|
|
 |
jamesbond
Joined: 26 Feb 2007 Posts: 1534 Location: The Blue Marble
|
Posted: Tue 08 Mar 2011, 05:03 Post subject:
|
|
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: | | -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.
_________________ Fatdog64, Slacko and Puppeee user. Puppy user since 2.13
|
|
Back to top
|
|
 |
Lobster
Official Crustacean

Joined: 04 May 2005 Posts: 15109 Location: Paradox Realm
|
Posted: Tue 08 Mar 2011, 05:20 Post subject:
|
|
| Quote: | | Lob, have you forgotten Fatdog64 has this screen recorder for a while already |
Yes I forgot
thanks for the reminder . . .
OK off to look for my head which was loosely screwed
to my head last time I looked . . .
If I find my head, it will make use of the code - thanks again
_________________ Puppy WIKI
|
|
Back to top
|
|
 |
Pelo
Joined: 10 Sep 2011 Posts: 1087 Location: Paris charles de Gaulle Airport (10 kms°)
|
Posted: Sat 18 May 2013, 14:15 Post subject:
parfait ! perfect ! muy bien ! Subject description: Bravo Lobster |
|
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 !
|
|
Back to top
|
|
 |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|