blob: 6e10dcd202de7461eafbafcc6b7303ddb8fbdacf [file] [log] [blame]
Talustus3019a912013-04-06 11:50:07 +02001#!/bin/sh
2#
3# view argb8888
4#
5# Modified:
6# Kyan He <kyan.ql.he@gmail.com> @ Tue Feb 15 01:45:54 CST 2011
7#
8# Initial version
9# Kyan He <kyan.ql.he@gmail.com> @ Mon Sep 20 11:45:54 CST 2010
10#
11
12if ! which ffmpeg >/dev/null;
13then
14 echo "no ffmpeg found"
15elif [[ ! $# -eq 2 ]];
16then
17 echo "Usage: `basename $0` <data.argb8888> <width>x<height>"
18else
19 ffmpeg -vcodec rawvideo -f rawvideo -pix_fmt rgb24 -s $2 -i $1 -f image2 -vcodec png $1.png
20fi
21