annotate TOOLS/aconvert.sh @ 36920:40ad45360c8a

Replace old item 'potmeter' by new item 'pimage'. Recent versions of the X11/GTK GUI didn't allow to control a potmeter, because that didn't seem to make any sense. In order to get rid of the confusing potmeter that doesn't distinguish from a hpotmeter and in order to allow the more useful behaviour recent versions of the X11/GTK GUI have been utilized (and because we're still supporting item 'potmeter' for reasons of compatibility with old skins), introduce new item 'pimage' that reuses most of the current potmeter code. Additionally, remove remaining code and documentation of 'potmeter'.
author ib
date Mon, 17 Mar 2014 12:29:46 +0000
parents 0f1b5b68af32
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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
27197
88fc90468b89 Replace bash-specific [[]] construct by a proper [] test.
diego
parents: 27196
diff changeset
6 if [ "$1" = "" ]; then
16267
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
17912
86d341ecb3bc use mencoder directly for mp3lame encoding instead of lavc
jonas
parents: 17905
diff changeset
11 options=${3:-"-oac mp3lame"}
29263
0f1b5b68af32 whitespace cosmetics: Remove all trailing whitespace.
diego
parents: 27198
diff changeset
12
17905
433494f162a9 -rawvideo on => -demuxer rawvideo
ods15
parents: 16267
diff changeset
13 mencoder -demuxer rawvideo -rawvideo 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