[MPlayer-users] Using parameters based on file extention or codec used
Krzysztof Duchnowski
amidk75 at gmail.com
Thu Aug 30 18:16:08 CEST 2007
infernix pisze:
> Is there a way to apply certain parameters depending on the file
> extension and/or the codec used?
Inside mplayer? - NO!
> Two examples:
> - DTS audio requires me to supply mplayer the correct channel mapping
> when playing back 6 channels, e.g. -af
> channels=6:6:0:4:1:0:2:1:3:2:4:3:5:5. Seeing as this can be in various
> containers, I'd like to activate this whenever ffdca is used.
> - EVO files with H264 streams need the -psprobe 5000000 parameter to get
> parsed properly, so if a filename ends in evo or EVO I'd like to have it
> activate this.
> If this isn't possible, does anyone have any alternative options?
Download and install MediaInfo_linux_cli (google it against "sourceforge").
First of all make various labeled configuration (profiles) in
"~/.mplayer/confg" for your desired action.
Then make starting script where:
1) make report about file with MediaInfo and write it to /tmp directory
then grep or gawk it for desired parameter;
2) use grep/gawk output to chose desired configuration;
3) run mplayer with "mplayer -profile profile_name $1" where
"profile_name" is chosen on base pt.2).
That's all
--
Krzysztof 'DK75' Duchnowski
GetFirefox - http://www.mozilla.com/firefox/
Konfiguracja UTF-8 dla czytników - http://evil.pl/pip/utf/
More information about the MPlayer-users
mailing list