
Recherche avancée
Médias (91)
-
Les Miserables
9 décembre 2019, par
Mis à jour : Décembre 2019
Langue : français
Type : Textuel
-
VideoHandle
8 novembre 2019, par
Mis à jour : Novembre 2019
Langue : français
Type : Video
-
Somos millones 1
21 juillet 2014, par
Mis à jour : Juin 2015
Langue : français
Type : Video
-
Un test - mauritanie
3 avril 2014, par
Mis à jour : Avril 2014
Langue : français
Type : Textuel
-
Pourquoi Obama lit il mes mails ?
4 février 2014, par
Mis à jour : Février 2014
Langue : français
-
IMG 0222
6 octobre 2013, par
Mis à jour : Octobre 2013
Langue : français
Type : Image
Sur d’autres sites (550)
-
bash script to start/stop ffmpeg x11grab
28 juin 2012, par lunacafuA application is storing its status in a file on the server
/temp/status.txt
. There are 4 status possible :wait
,ready
,recording
,finished
. With a cronjob I would like to start a shell script that checks this file and take action as follows :- wait -> do nothing
- ready -> execute
ffmpeg -f x11grab -s cif -r 25 -i :0.0 /tmp/out.mpg
. Now whileffmpeg
captures, the status.txt file still has to be checked for a change to the status, - recording -> do nothing
- finished -> send
q
command toffmpeg
process to quit capturing process and finish script.
I tried to solve it with
expect
andxdotool
to realize that this absolutely the wrong way. My problem is that I acutally have no experience inbash
and handling processes, child processes etc.