set -e gst-launch-0.10 filesrc location=$1.png ! pngdec ! ffmpegcolorspace ! video/x-raw-yuv ! jpegenc ! filesink location=$1.jpg rm $1.png