~ubuntu-branches/ubuntu/dapper/kinoplus/dapper

« back to all changes in this revision

Viewing changes to src/kinoplusimport

  • Committer: Bazaar Package Importer
  • Author(s): Jens Gecius
  • Date: 2004-05-28 23:37:58 UTC
  • Revision ID: james.westby@ubuntu.com-20040528233758-0mn00hyvpz6dp7vp
Tags: upstream-0.3.2
ImportĀ upstreamĀ versionĀ 0.3.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
 
 
3
method="-raw"
 
4
file="$1"
 
5
in="$2"
 
6
out="$3"
 
7
rate="$4"
 
8
video="$5"
 
9
audio="$6"
 
10
ntsc="$7"
 
11
 
 
12
if [ "$audio" != "-1" ]
 
13
then
 
14
        if [ "$rate" != 0 ]
 
15
        then    rate="-r $rate"
 
16
        else    rate=""
 
17
        fi
 
18
 
 
19
        exec ffmpeg2raw $method $ntsc $rate -o $in -e $out -vt $video -at $audio "$file"
 
20
else
 
21
        normalisation=pal
 
22
 
 
23
        [ "$ntsc" = "-n" ] && normalisation=ntsc
 
24
 
 
25
        exec ffmpeg -ss $in -i "$file" -f imagepipe -img ppm -r $normalisation -
 
26
fi