source: titan/oealliance/sbin/create_jpg.sh @ 40393

Last change on this file since 40393 was 40393, checked in by obi, 7 years ago

add oealliance start scripts

  • Property svn:executable set to *
File size: 459 bytes
Line 
1#!/bin/sh
2
3DIR="$1"
4
5if [ -z "$1" ];then
6        echo "[create_jpg] use: create_mvi /path"
7        exit
8fi
9
10LIST=`ls -1 $DIR | grep .mvi`
11
12count=0
13for ROUND in $LIST; do
14        count=`expr $count + 1`
15        TMPFILE=".tmpfile_$count.jpg"
16        JPG=`echo $ROUND | sed 's/.mvi/.jpg/'`
17        echo "[create_mvi] ($count) ffmpeg -i $DIR/$ROUND -vframes 1 -s 1280x720 $DIR/$JPG"
18        ffmpeg -i $DIR/$ROUND -vframes 1 -s 1280x720 $DIR/$JPG
19done
20
21echo "[create_jpg] create ($count) mvi files, done !"
22exit
23
Note: See TracBrowser for help on using the repository browser.