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 Sun 20 Apr 2014, 11:52
All times are UTC - 4
 Forum index » House Training » HOWTO ( Solutions )
How To Use FFMPEG To Screencast from any Puppy Distro
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 2 of 2 [22 Posts]   Goto page: Previous 1, 2
Author Message
Amgine


Joined: 21 Sep 2011
Posts: 233
Location: Washington State

PostPosted: Sat 14 Jan 2012, 17:48    Post subject:  

Is there a way to set up a short delay?
Back to top
View user's profile Send private message 
Karl Godt


Joined: 20 Jun 2010
Posts: 3860
Location: Kiel,Germany

PostPosted: Sat 14 Jan 2012, 18:24    Post subject:  

Code:
DELAY='5s'
sleep $DELAY
ffmpeg $MYVARS


OR

Code:
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
Back to top
View user's profile Send private message Visit poster's website 
Amgine


Joined: 21 Sep 2011
Posts: 233
Location: Washington State

PostPosted: Sat 14 Jan 2012, 22:49    Post subject:  

Karl Godt wrote:
Code:
DELAY='5s'
sleep $DELAY
ffmpeg $MYVARS


OR

Code:
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! Smile
Back to top
View user's profile Send private message 
Icyos


Joined: 28 Jun 2011
Posts: 92
Location: UK

PostPosted: Tue 17 Jan 2012, 04:37    Post subject:  

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.

_________________
Come to me TUBE : Icyos Puppy Linux YouTube
Puppy Slacko 5.31 Addict - Use With Caution.
icyos@hotmail.co.uk - MSN Me
Back to top
View user's profile Send private message Visit poster's website MSN Messenger 
Karl Godt


Joined: 20 Jun 2010
Posts: 3860
Location: Kiel,Germany

PostPosted: Tue 17 Jan 2012, 22:10    Post subject:  

MORE frames = MORE MB

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

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 .
Back to top
View user's profile Send private message Visit poster's website 
Tman


Joined: 22 Jan 2011
Posts: 811
Location: Toronto

PostPosted: Sun 14 Oct 2012, 15:23    Post subject:  

Thanks Karl Godt for the code. I modified it a bit and turned it into a pet.
http://www.murga-linux.com/puppy/viewtopic.php?t=75113&start=15&sid=44d25c2ed90a24271fc936db65793c95
Back to top
View user's profile Send private message 
Pelo


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

PostPosted: Sat 18 May 2013, 13:45    Post subject: Great ! puprecord is a good tool with my speach !  

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.
Back to top
View user's profile Send private message Yahoo Messenger 
Display posts from previous:   Sort by:   
Page 2 of 2 [22 Posts]   Goto page: Previous 1, 2
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » HOWTO ( Solutions )
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.0515s ][ Queries: 12 (0.0048s) ][ GZIP on ]