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 25 Jul 2014, 03:00
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 Posts_count  
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
Sub_title: 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_website 
jamesbond

Joined: 26 Feb 2007
Posts: 2043
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
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_website 
Pelo


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

PostPosted: Sat 18 May 2013, 14:15    Post_subject: parfait ! perfect ! muy bien !
Sub_title: 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 YIM 
Display_posts:   Sort by:   
Page 1 of 1 Posts_count  
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » Off-Topic Area » Programming
Jump to:  

Rules_post_cannot
Rules_reply_cannot
Rules_edit_cannot
Rules_delete_cannot
Rules_vote_cannot
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0486s ][ Queries: 11 (0.0030s) ][ GZIP on ]