summaryrefslogtreecommitdiff
path: root/src/mplayeroptions.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mplayeroptions.cpp')
-rw-r--r--src/mplayeroptions.cpp21
1 files changed, 19 insertions, 2 deletions
diff --git a/src/mplayeroptions.cpp b/src/mplayeroptions.cpp
index 8e78f6d..1676da4 100644
--- a/src/mplayeroptions.cpp
+++ b/src/mplayeroptions.cpp
@@ -223,6 +223,11 @@ void MplayerProcess::addVF(const QString & filter_name, const QVariant & value)
arg << "-vf-add" << "harddup,flip";
}
else
+ if (filter_name == "letterbox") {
+ arg << "-vf-add" << "expand=aspect=" + option;
+ }
+ /*
+ else
if (filter_name == "expand") {
arg << "-vf-add" << "expand=" + option + ",harddup";
// Note: on some videos (h264 for instance) the subtitles doesn't disappear,
@@ -230,6 +235,7 @@ void MplayerProcess::addVF(const QString & filter_name, const QVariant & value)
// filter after expand fixes the problem. I chose harddup 'cos I think
// it will be harmless in mplayer.
}
+ */
else {
QString s = filter_name;
QString option = value.toString();
@@ -250,9 +256,20 @@ void MplayerProcess::addAF(const QString & filter_name, const QVariant & value)
// Not supported
}
else
+ if (filter_name == "stereo-mode") {
+ QString o = value.toString();
+ if (o == "left") arg << "-af-add" << "channels=2:2:0:1:0:0";
+ else
+ if (o == "right") arg << "-af-add" << "channels=2:2:1:0:1:1";
+ else
+ if (o == "reverse") arg << "-af-add" << "channels=2:2:0:1:1:0";
+ else
+ if (o == "mono") arg << "-af-add" << "pan=1:0.5:0.5";
+ }
+ else
if (filter_name == "equalizer") {
AudioEqualizerList l = value.toList();
- QString o = Helper::equalizerListToString(l);
+ QString o = AudioEqualizerHelper::equalizerListToString(l);
arg << "-af-add" << "equalizer=" + o;
} else {
if (!value.isNull()) s += "=" + value.toString();
@@ -423,7 +440,7 @@ void MplayerProcess::enableVolnorm(bool b, const QString & option) {
}
void MplayerProcess::setAudioEqualizer(AudioEqualizerList l) {
- QString values = Helper::equalizerListToString(l);
+ QString values = AudioEqualizerHelper::equalizerListToString(l);
writeToStdin("af_cmdline equalizer " + values);
}