diff options
author | Mateusz Łukasik <mati75@linuxmint.pl> | 2017-10-08 22:17:31 +0200 |
---|---|---|
committer | Mateusz Łukasik <mati75@linuxmint.pl> | 2017-10-08 22:17:31 +0200 |
commit | 867f979d517190a0aaab06f4180cdd964a48677e (patch) | |
tree | c4367ae381f38a39e36b574513229be318e20556 /src/mplayeroptions.cpp | |
parent | f6d0340806ec11f417006a3704eca7ec7d537eab (diff) |
New upstream version 17.10.0~ds0
Diffstat (limited to 'src/mplayeroptions.cpp')
-rw-r--r-- | src/mplayeroptions.cpp | 21 |
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); } |