How To Use FFMPEG To Screencast from any Puppy Distro

How to do things, solutions, recipes, tutorials
Message
Author
User avatar
Amgine
Posts: 231
Joined: Thu 22 Sep 2011, 01:27
Location: Washington State

#16 Post by Amgine »

Is there a way to set up a short delay?

User avatar
Karl Godt
Posts: 4199
Joined: Sun 20 Jun 2010, 13:52
Location: Kiel,Germany

#17 Post by Karl Godt »

Code: Select all

DELAY='5s'
sleep $DELAY
ffmpeg $MYVARS
OR

Code: Select all

k='';c=0
echo "Press any key to start ffmpeg"
until [ "$k" ] ; do
sleep 1s;c=$((c+1));echo -ne "\r$c "
read -t1 -n1 k
done
echo
ffmpeg $MYVARS

User avatar
Amgine
Posts: 231
Joined: Thu 22 Sep 2011, 01:27
Location: Washington State

#18 Post by Amgine »

Karl Godt wrote:

Code: Select all

DELAY='5s'
sleep $DELAY
ffmpeg $MYVARS
OR

Code: Select all

k='';c=0
echo "Press any key to start ffmpeg"
until [ "$k" ] ; do
sleep 1s;c=$((c+1));echo -ne "\r$c "
read -t1 -n1 k
done
echo
ffmpeg $MYVARS
Thank you! :)

Icyos

#19 Post by Icyos »

Hi All

This is my final entry after trying many variations out.

#!/bin/sh
var="$(xrandr | grep '*')"
IFS=" "
set -- $var
ffmpeg -f alsa -ac 2 -i hw:0,0 -f x11grab -s $1 -r 30 -i :0.0 -sameq /root/test.avi

I have found 30 frames to be the optimal and it produces the best visual quality, I have tested this on Puppies 5.25/5.28 & 5.31 Slacko, I have now moved to Slacko as my main operating system as I just love it to bits.

I hope all of you trying to get this to work with older Puppies are successful please contact me if I can help you in any way.

User avatar
Karl Godt
Posts: 4199
Joined: Sun 20 Jun 2010, 13:52
Location: Kiel,Germany

#20 Post by Karl Godt »

MORE frames = MORE MB

I had forgotten that it ran for 40 minutes and the avi file became 1,15GB ( -s 1280x1024 -r 25 ) :shock:

No luck with mp4 format either , still very very large .
Would be nice to get more extensions to work andor to decrease the filesize .

Could not get 9.1 compile on one Puppy431 installation but 7.11 and 8.10 compiled .

yasm >=0.8 needed to enable yasm and the source compiled fine but it seems not to have any effect .

Despite --enable-x11grab some other configure options disable it
and the binary does not include x11grab though ffmpeg -help says so .
The first time i compiled source i had to look into the /tmp/* folders for hints .
After installing several header and library packages it worked .

User avatar
Tman
Posts: 808
Joined: Sat 22 Jan 2011, 21:39
Location: Toronto

#21 Post by Tman »

Thanks Karl Godt for the code. I modified it a bit and turned it into a pet.
http://www.murga-linux.com/puppy/viewto ... db65793c95

Pelo

Great ! puprecord is a good tool with my speach !

#22 Post by Pelo »

Sorry error of location, but i have tested FFMPEG vidcap which works fine. (it's a pet of the script here above).Simple but does the job.

Great ! puprecord is a good tool with my speach !
I have spent all the day long to try to improve xvidcap for Slacko 5.3.1.
Puprecord is here.
Why dont you tell it before !
Very good alternative to xvidcap, better than drec and record my desktop.
Thanks Lobster.

PS :
Xvidcap remains the best because we can choose more.Garbled colours in Slacko are due to scrren resolution. Change it to 24 (depth)
Attachments
dpuprec.jpg
dpuprec however still does the job (Gposil 2009)
(34.74 KiB) Downloaded 366 times

Pelo

EasyCast 2015 to be tested.

#23 Post by Pelo »

Test a renewed screencast here EasyCast, and give your opinion to Argolance (English accepted)

hamoudoudou

How To Use FFMPEG To Screencast from any Puppy Distro

#24 Post by hamoudoudou »

How To Use FFMPEG To Screencast from any Puppy Distro
Needed
Learn English (20 years)
Learn Linux commands (15 days)
Install Puppy Linux (choose a French one)
Suscribe Forum
install FFmpeg
Read this topic.

Or install Xvidcap. 5 minutes Fr included, FFmpeg included, zone selection, high quality.

hamoudoudou

Minimalist X11 screen capture software

#25 Post by hamoudoudou »

Minimalist X11 screen capture software.....with very low drain on resources
"Having found out about XvidCap earlier on today, I liked the sound of it"
Mike Walsh

Post Reply