[FFmpeg-user] how to programitically close a ffplay event

Jim Shupert, Jr. jshupert at theppsgroup.com
Thu Dec 31 02:02:21 CET 2015


> Jim Shupert, Jr. <jshupert <at> theppsgroup.com> writes:
>
>> You will see where I have tried vatious methods to
>> kill ffplay.
>
> Just send SIGHUP to the FFplay process.
>
> Carl Eugen

if you mean kill -SIGHUP ffplay

in something like below...
It does not work

ffplay just waits

#!/bin/bash

###--- the dir where the mp4 are
Src=/home/jshupert/Videos/t

etn=mp4

cd $Src
for f in *.$etn ; do

###################################---------  play 1  for 5 sec from top

ffplay -t 00:00:05.000 $Src/$f
# at this point ffplay just sits and waits
kill -SIGHUP ffplay


###################################---------  play 2  for 5 sec from 1 min
deep
ffplay -ss 00:01:00.000 -t 00:00:05.000 $Src/$f


kill -SIGHUP ffplay

done



More information about the ffmpeg-user mailing list