mirror of
https://github.com/revenz/FileFlowsPlugins.git
synced 2026-02-17 15:18:36 -06:00
fixing converting to mp3
This commit is contained in:
@@ -29,8 +29,11 @@ namespace FileFlows.AudioNodes
|
||||
extension = null;
|
||||
string codecKey = Codec + "_codec";
|
||||
string codec = args.GetToolPathActual(codecKey)?.EmptyAsNull() ?? Codec;
|
||||
if (codec == "mp3")
|
||||
if (codec.ToLowerInvariant() == "mp3")
|
||||
{
|
||||
extension = "mp3";
|
||||
codec = "mp3";
|
||||
}
|
||||
else if (codec == "libopus")
|
||||
extension = "ogg";
|
||||
else if (codec == "libvorbis" || codec == "ogg")
|
||||
|
||||
@@ -363,8 +363,6 @@ public class FfmpegBuilderAudioAddTrack : FfmpegBuilderNode
|
||||
bool opus = codec == "opus";
|
||||
if (opus)
|
||||
codec = "libopus";
|
||||
if (codec.ToLowerInvariant() == "mp3")
|
||||
codec = "libmp3lame";
|
||||
bool eac3 = codec.ToLowerInvariant() == "eac3";
|
||||
bool dts = codec.ToLowerInvariant().Contains("dts");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user