Skip to content

Commit

Permalink
audio filter
Browse files Browse the repository at this point in the history
  • Loading branch information
Anime4000 committed May 1, 2020
1 parent 37a321a commit 9eff27c
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 15 deletions.
8 changes: 4 additions & 4 deletions IFME.OSManager/InputBox.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions IFME.OSManager/InputBox2.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 9 additions & 2 deletions IFME/MediaEncoding.cs
Original file line number Diff line number Diff line change
Expand Up @@ -92,13 +92,20 @@ internal static void Audio(MediaQueue queue, string tempDir)

var outfile = $"audio{i:D4}_{item.Lang}.{ac.Extension}";

var af = string.Empty;

if (!item.CommandFilter.IsDisable())
{
af = $"-af {item.CommandFilter}";
}

if (ac.Args.Pipe)
{
ProcessManager.Start(tempDir, $"\"{FFmpeg}\" -hide_banner -v error -i \"{item.File}\" {trim} -map 0:{item.Id} -acodec pcm_s16le {hz} {ch} -f wav {item.Command} - | \"{Path.Combine(codec.FilePath, ac.Encoder)}\" {qu} {ac.Args.Command} {ac.Args.Input} {item.Encoder.Command} {ac.Args.Output} \"{outfile}\"");
ProcessManager.Start(tempDir, $"\"{FFmpeg}\" -hide_banner -v error -i \"{item.File}\" {trim} -map 0:{item.Id} -acodec pcm_s16le {hz} {ch} {af} -f wav {item.Command} - | \"{Path.Combine(codec.FilePath, ac.Encoder)}\" {qu} {ac.Args.Command} {ac.Args.Input} {item.Encoder.Command} {ac.Args.Output} \"{outfile}\"");
}
else
{
ProcessManager.Start(tempDir, $"\"{en}\" {ac.Args.Input} \"{item.File}\" {trim} -map 0:{item.Id} {ac.Args.Command} {qu} {hz} {ch} {item.Encoder.Command} {ac.Args.Output} \"{outfile}\"");
ProcessManager.Start(tempDir, $"\"{en}\" {ac.Args.Input} \"{item.File}\" {trim} -map 0:{item.Id} {ac.Args.Command} {qu} {hz} {ch} {af} {item.Encoder.Command} {ac.Args.Output} \"{outfile}\"");
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion IFME/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
[assembly: AssemblyDescription("Allow user to compress raw media")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("Anime4000")]
[assembly: AssemblyProduct("The Quintessence Inside You")]
[assembly: AssemblyProduct("Darkness to Light")]
[assembly: AssemblyCopyright("© 2017 Anime4000")]
[assembly: AssemblyTrademark("Anime4000, MulticoreWare, VideoLAN, FFmpeg, Xiph.Org Foundation, Google Inc., Nero AG, GPAC, AMD, Intel, et al.")]
[assembly: AssemblyCulture("")]
Expand Down
6 changes: 5 additions & 1 deletion changelog.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
Version 20.04.2 Alpha (The Quintessence Inside You)
Version 20.04.2 Alpha (Darkness to Light)
---------------------------------------------------
[new] Advance Decoding/Encoding CLI button is functional
[new] Profile is functional as well
[new] New check box for Shutdown
[new] HDR to SDR profiles, allow you to high quality downscale
[fixed] High quality downscale resolution
[fixed] Various GUI bug
[fixed] Null Language in FFmpeg Media Info (default to "und")
[mistake] x265 in previous version was 3.2, now with 3.3 stable

Version 20.04.1 Alpha (The Quintessence Inside You)
Expand Down
2 changes: 1 addition & 1 deletion version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
20.04
20.04.2

0 comments on commit 9eff27c

Please sign in to comment.