public static async Task MuxOutputVideo(string inputPath, string outVideo) { if (!Config.GetBool("keepAudio") && !Config.GetBool("keepAudio")) { return; } Program.mainForm.SetStatus("Muxing audio/subtitles into video..."); bool muxFromInput = Config.GetInt("audioSubTransferMode") == 0; try { if (muxFromInput) { await FfmpegAudioAndMetadata.MergeStreamsFromInput(inputPath, outVideo, I.current.tempFolder); } else { await FfmpegAudioAndMetadata.MergeAudioAndSubs(outVideo, I.current.tempFolder); // Merge from audioFile into outVideo } } catch (Exception e) { Logger.Log("Failed to merge audio/subtitles with output video!"); Logger.Log("MergeAudio() Exception: " + e.Message, true); } }
public static async Task MergeAudio(string inputPath, string outVideo) { try { await FfmpegAudioAndMetadata.MergeAudioAndSubs(outVideo, I.current.tempFolder); // Merge from audioFile into outVideo } catch (Exception e) { Logger.Log("Failed to merge audio/subtitles with output video!"); Logger.Log("MergeAudio() Exception: " + e.Message, true); } }