mirror of
https://github.com/revenz/FileFlowsPlugins.git
synced 2025-12-30 19:00:20 -06:00
FF-1739: Add Audio Track falling back to best audio when using custom source selection
This commit is contained in:
Binary file not shown.
Binary file not shown.
@@ -16,9 +16,11 @@ public class FfmpegBuilderAudioAddTrack : TrackSelectorFlowElement<FfmpegBuilder
|
||||
/// Gets the help URL for this flow element
|
||||
/// </summary>
|
||||
public override string HelpUrl => "https://fileflows.com/docs/plugins/video-nodes/ffmpeg-builder/audio-add-track";
|
||||
|
||||
|
||||
|
||||
|
||||
/// <inheritdoc />
|
||||
public override int Outputs => 2;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the index to insert this track
|
||||
/// </summary>
|
||||
@@ -190,9 +192,8 @@ public class FfmpegBuilderAudioAddTrack : TrackSelectorFlowElement<FfmpegBuilder
|
||||
var sourceAudio = CustomTrackSelection ? GetSourceTrack<AudioStream>() : GetBestAudioTrack(args, Model.AudioStreams.Select(x => x.Stream));
|
||||
if (sourceAudio == null)
|
||||
{
|
||||
args.Logger.ELog("No source audio track found");
|
||||
args.FailureReason = "No source audio track found";
|
||||
return -1;
|
||||
args.Logger.WLog("No source audio track found");
|
||||
return 2;
|
||||
}
|
||||
|
||||
audio.Stream = sourceAudio;
|
||||
|
||||
Reference in New Issue
Block a user