#!/bin/bash
wrst=$(mtr -r -c $1 $2 | grep -v HOST | tail -n 1 | awk '{ print ($8) }');wrst=${wrst:-"-1.0"};echo $wrst;
ffmpeg -ss 00:00:01.01 -i somevideofile -y -f image2 -vcodec mjpeg -vframes 1 /image_dir/screenshot.jpg
#!/bin/bash
for i in `seq 1 1000`; do
for f in ogg mp4 webm; do
ffmpeg -i $(printf "%04d" $i.avi) -f $f $(printf "%04d" $i.$f)
done
done