Pup record

For discussions about programming, programming questions/advice, and projects that don't really have anything to do with Puppy.
Post Reply
Message
Author
User avatar
Lobster
Official Crustacean
Posts: 15522
Joined: Wed 04 May 2005, 06:06
Location: Paradox Realm
Contact:

Pup record

#1 Post 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'?
Puppy Raspup 8.2Final 8)
Puppy Links Page http://www.smokey01.com/bruceb/puppy.html :D

jamesbond
Posts: 3433
Joined: Mon 26 Feb 2007, 05:02
Location: The Blue Marble

#2 Post 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.
Fatdog64 forum links: [url=http://murga-linux.com/puppy/viewtopic.php?t=117546]Latest version[/url] | [url=https://cutt.ly/ke8sn5H]Contributed packages[/url] | [url=https://cutt.ly/se8scrb]ISO builder[/url]

User avatar
Lobster
Official Crustacean
Posts: 15522
Joined: Wed 04 May 2005, 06:06
Location: Paradox Realm
Contact:

#3 Post 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 :)
Puppy Raspup 8.2Final 8)
Puppy Links Page http://www.smokey01.com/bruceb/puppy.html :D

Pelo

parfait ! perfect ! muy bien !

#4 Post 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 !

Post Reply