Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Fri 31 Oct 2014, 14:41
All times are UTC - 4
 Forum index » Off-Topic Area » Programming
Pup record
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [4 Posts]  
Author Message
Lobster
Official Crustacean


Joined: 04 May 2005
Posts: 15117
Location: Paradox Realm

PostPosted: 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
View user's profile Send private message Visit poster's website 
jamesbond

Joined: 26 Feb 2007
Posts: 2230
Location: The Blue Marble

PostPosted: 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.
Contributed Fatdog64 packages thread
Back to top
View user's profile Send private message 
Lobster
Official Crustacean


Joined: 04 May 2005
Posts: 15117
Location: Paradox Realm

PostPosted: 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 Embarassed
thanks for the reminder . . .
OK off to look for my head which was loosely screwed
to my head last time I looked . . . Embarassed

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

_________________
Puppy WIKI
Back to top
View user's profile Send private message Visit poster's website 
Pelo


Joined: 10 Sep 2011
Posts: 3246
Location: Mer méditerrannée (1 kms°)

PostPosted: 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
View user's profile Send private message Yahoo Messenger 
Display posts from previous:   Sort by:   
Page 1 of 1 [4 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Off-Topic Area » Programming
Jump to:  

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
[ Time: 0.0541s ][ Queries: 11 (0.0089s) ][ GZIP on ]