Mercurial > mplayer.hg
view TOOLS/aconvert @ 20276:f0f6217f58e2
r20257: Disable loading of file-specific configuration file from the same
directory as the played file. Add a command-line switch to enable it.
r20260: Update x264 option names that changed with r20060
r20264: small grammar fix
r20265: Use American spelling of "gray" instead for British's "grey" for XviD option
r20277: Update x264 option names that changed with r20060
r20279: mention new -use-filedir-conf option in general config description
r20280: remove me=3 leftover (x264)
author | kraymer |
---|---|
date | Tue, 17 Oct 2006 11:21:11 +0000 |
parents | 86d341ecb3bc |
children | 37feaaf7b7b4 |
line wrap: on
line source
#!/bin/sh # Author: Jonas Jermann # Description: A hack to allow mencoder to encode from an audio only file if [[ $1 == "" ]]; then echo "Usage: $0 <\"input file\"> <\"output file\"> <\"options\">" exit 0 fi options=${3:-"-oac mp3lame"} 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