Mercurial > mplayer.hg
annotate TOOLS/aconvert @ 24164:7fd3fe2b7ab7
Fix warnings:
mplayer.c:316: warning: redundant redeclaration of 'vo_subdevice'
libvo/video_out.h:237: warning: previous declaration of 'vo_subdevice' was here
mplayer.c:317: warning: redundant redeclaration of 'ao_subdevice'
libao2/audio_out.h:44: warning: previous declaration of 'ao_subdevice' was here
mplayer.c:320: warning: redundant redeclaration of 'vo_flags'
libvo/video_out.h:189: warning: previous declaration of 'vo_flags' was here
author | diego |
---|---|
date | Sat, 25 Aug 2007 16:19:42 +0000 |
parents | 86d341ecb3bc |
children | 37feaaf7b7b4 |
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 |
17912
86d341ecb3bc
use mencoder directly for mp3lame encoding instead of lavc
jonas
parents:
17905
diff
changeset
|
11 options=${3:-"-oac mp3lame"} |
16267
c2e581684e17
Aconvert allows mencoder to (easily) encode from an audio only file (hack).
jonas
parents:
diff
changeset
|
12 |
17905 | 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 |