[FFmpeg-user] how to programitically close a ffplay event
Jim Shupert, Jr.
jshupert at theppsgroup.com
Thu Dec 31 02:24:32 CET 2015
> On Wed, 30 Dec 2015 11:52:03 -0500
> "Jim Shupert, Jr." <jshupert at theppsgroup.com> wrote:
>
>> I am very much able to PLAY in the manner i wish but seem UNABLE to end
>> a
>> ffplay event so that it can move forward to the next event.
>
> -autoexit
that WORKS! so simple , so good
I am so thankful
in the possibility that this could serve another here is the script
it plays and "auto exits" moving along to next
thanks again!
#!/bin/bash
# ~~~~~~~~~~batch
# ~~~~~~~~-
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#-----------------------------------
#################################################################################
#
#
####---FROM < where the avis are . eg /media/data/cap
#Src=/media/data/cap
Src=/home/jshupert/Videos/t
job=playtest
etn=mp4
###--- the dir where the source avi are
cd $Src
echo $(date)
__________________________________________________START_of_SESSIONj >>
~//01_logs/$job.txt
for f in *.$etn ; do
###################################--------- play 1 for 5 sec from top
ffplay -t 00:00:05.000 -autoexit $Src/$f
###################################--------- play 2 for 5 sec from 1 min
deep
ffplay -ss 00:01:00.000 -t 00:00:05.000 -autoexit $Src/$f
##-- rpt size
#vidSize=$(du -h $Src/${f%.*}.$etn)
###vidSize=$(du -h $Src/$f)
echo ${f%.*} $vidSize ## >> ~//01_logs/$job.txt
echo $(date) ________________________ >> ~//01_logs/$job.txt
echo -- >> ~//01_logs/$job.txt
echo " -----------------------------------------------------------"
echo " finished ----- $f -----"
##-- make the checksum
### md5sum -b /home/jshupert/Videos/t/Bug_Love_sjp.mp4 >
/home/jshupert/Videos/t/Bug_Love_sjp.mp4.md5
echo "doing CHKSUM for $f"
#md5sum -b $Src/${f%.*} > $Src/${f%.*}_.md5
#md5sum -b $Src/${f%.*} > $Src/$f_.md5
#md5sum -b $Src/${f%.mp4} > $Src/$f.md5
md5sum -b $Src/$f > $Src/$f.md5
echo $f ok checksum >> ~//01_logs/job_log.txt
echo $(date) >> ~//01_logs/$job.txt
echo $f $(date) fin run ALL >> ~//01_logs/$job.txt
echo ------- >> ~//01_logs/$job.txt
echo ------- >> ~//01_logs/$job.txt
echo " -----------------------------------------------------------"
echo " finished $f --------- nnn --------"
#### - end
done
More information about the ffmpeg-user
mailing list