Mercurial > mplayer.hg
annotate TOOLS/aconvert @ 17514:95c1432f4312
1.218: typo, consistency
1.217: Try to only use a linebreak without hyphenation (\:) where it makes sense.
1.216: Unify the handling of escaped spaces.
+ some wording
author | kraymer |
---|---|
date | Mon, 30 Jan 2006 12:54:11 +0000 |
parents | c2e581684e17 |
children | 433494f162a9 |
rev | line source |
---|---|
16267
c2e581684e17
Aconvert allows mencoder to (easily) encode from an audio only file (hack).
jonas
parents:
diff
changeset
|
1 #!/bin/sh |
c2e581684e17
Aconvert allows mencoder to (easily) encode from an audio only file (hack).
jonas
parents:
diff
changeset
|
2 |
c2e581684e17
Aconvert allows mencoder to (easily) encode from an audio only file (hack).
jonas
parents:
diff
changeset
|
3 # Author: Jonas Jermann |
c2e581684e17
Aconvert allows mencoder to (easily) encode from an audio only file (hack).
jonas
parents:
diff
changeset
|
4 # Description: A hack to allow mencoder to encode from an audio only file |
c2e581684e17
Aconvert allows mencoder to (easily) encode from an audio only file (hack).
jonas
parents:
diff
changeset
|
5 |
c2e581684e17
Aconvert allows mencoder to (easily) encode from an audio only file (hack).
jonas
parents:
diff
changeset
|
6 if [[ $1 == "" ]]; then |
c2e581684e17
Aconvert allows mencoder to (easily) encode from an audio only file (hack).
jonas
parents:
diff
changeset
|
7 echo "Usage: $0 <\"input file\"> <\"output file\"> <\"options\">" |
c2e581684e17
Aconvert allows mencoder to (easily) encode from an audio only file (hack).
jonas
parents:
diff
changeset
|
8 exit 0 |
c2e581684e17
Aconvert allows mencoder to (easily) encode from an audio only file (hack).
jonas
parents:
diff
changeset
|
9 fi |
c2e581684e17
Aconvert allows mencoder to (easily) encode from an audio only file (hack).
jonas
parents:
diff
changeset
|
10 |
c2e581684e17
Aconvert allows mencoder to (easily) encode from an audio only file (hack).
jonas
parents:
diff
changeset
|
11 if [[ $3 == "" ]]; then |
c2e581684e17
Aconvert allows mencoder to (easily) encode from an audio only file (hack).
jonas
parents:
diff
changeset
|
12 options="-oac lavc -lavcopts acodec=mp3:abitrate=192" |
c2e581684e17
Aconvert allows mencoder to (easily) encode from an audio only file (hack).
jonas
parents:
diff
changeset
|
13 else |
c2e581684e17
Aconvert allows mencoder to (easily) encode from an audio only file (hack).
jonas
parents:
diff
changeset
|
14 options=$3 |
c2e581684e17
Aconvert allows mencoder to (easily) encode from an audio only file (hack).
jonas
parents:
diff
changeset
|
15 fi |
c2e581684e17
Aconvert allows mencoder to (easily) encode from an audio only file (hack).
jonas
parents:
diff
changeset
|
16 |
c2e581684e17
Aconvert allows mencoder to (easily) encode from an audio only file (hack).
jonas
parents:
diff
changeset
|
17 mencoder -rawvideo on:w=1:h=1 -ovc copy -of rawaudio -endpos `mplayer -identify $1 -frames 0 2>&1 | grep ID_LENGTH | cut -d "=" -f 2` -audiofile $1 -o $2 $options $1 |