This commit is contained in:
Nemo 2017-12-30 22:55:25 +05:30
parent 03b51164c7
commit ce30098bad
2 changed files with 15 additions and 0 deletions

6
avi2gif Executable file
View File

@ -0,0 +1,6 @@
#!/bin/sh
mkdir -p /tmp/frames
rm -fr /tmp/frames/*
ffmpeg -i $1 -vf scale=320:-1:flags=lanczos,fps=10 /tmp/frames/ffout%03d.png
convert -loop 0 /tmp/frames/ffout*.png $1.gif

9
whoisplaying Executable file
View File

@ -0,0 +1,9 @@
#!/bin/sh
for i in /proc/[0-9]*/fd/*
do
var="$(readlink $i)"
if test x"$var" != x"${var#/dev/snd/pcm}"
then
echo $i
fi
done