Ticket #9274: convert_dxa.sh

File convert_dxa.sh, 737 bytes (added by SF/*anonymous, 10 years ago)
Line 
1#! /bin/bash
2# Script for converting Feeble Files video to ScummVM format
3#
4# modify the paths below
5#
6# (c) 2006 ScummVM Team
7# (c) 2006 crowley
8#
9# $URL: https://scummvm.svn.sourceforge.net/svnroot/scummvm/tools/tags/release-1-2-0/convert_dxa.sh $
10#
11# $Id: convert_dxa.sh 24943 2006-12-28 18:01:33Z sev $
12
13FFMPEG=ffmpeg
14VIDEO_PATH=~/games/Feeble/video
15ENCODE_DXA=~/scummvm/tools/encode_dxa
16FORMAT=vorbis
17
18cd "$VIDEO_PATH"
19
20for i in *.SMK
21do
22 in=`basename "$i" .SMK`;
23 mv "$i" "$in.smk";
24done
25
26for i in *.smk
27do
28 in=`basename "$i" .smk`;
29 if [ ! -f "$in.dxa" ]
30 then
31 $FFMPEG -i "$i" -f image2 "$in%4d.png";
32 $FFMPEG -i "$i" -acodec adpcm_ima_wav "$in.wav";
33 $ENCODE_DXA --$FORMAT "$in.smk";
34 rm *.png *.wav;
35 fi
36done