diff --git a/FFMpegCore/FFMpeg/Arguments/OutputStreamArgument.cs b/FFMpegCore/FFMpeg/Arguments/OutputUrlArgument.cs
similarity index 51%
rename from FFMpegCore/FFMpeg/Arguments/OutputStreamArgument.cs
rename to FFMpegCore/FFMpeg/Arguments/OutputUrlArgument.cs
index 5581929..15cbef9 100644
--- a/FFMpegCore/FFMpeg/Arguments/OutputStreamArgument.cs
+++ b/FFMpegCore/FFMpeg/Arguments/OutputUrlArgument.cs
@@ -4,15 +4,16 @@
namespace FFMpegCore.Arguments
{
///
- /// Represents output stream parameter
+ /// Represents outputting to url using supported protocols
+ /// See http://ffmpeg.org/ffmpeg-protocols.html
///
- public class OutputStreamArgument : IOutputArgument
+ public class OutputUrlArgument : IOutputArgument
{
- public readonly string Stream;
+ public readonly string Url;
- public OutputStreamArgument(string stream)
+ public OutputUrlArgument(string url)
{
- Stream = stream;
+ Url = url;
}
public void Post() { }
@@ -21,6 +22,6 @@ public void Post() { }
public void Pre() { }
- public string Text => Stream;
+ public string Text => Url;
}
}
diff --git a/FFMpegCore/FFMpeg/FFMpegArguments.cs b/FFMpegCore/FFMpeg/FFMpegArguments.cs
index cdce6be..847e68c 100644
--- a/FFMpegCore/FFMpeg/FFMpegArguments.cs
+++ b/FFMpegCore/FFMpeg/FFMpegArguments.cs
@@ -49,9 +49,8 @@ private FFMpegArguments WithInput(IInputArgument inputArgument, Action? addArguments = null) => ToProcessor(new OutputArgument(file, overwrite), addArguments);
- public FFMpegArgumentProcessor OutputToFile(Uri uri, bool overwrite = true, Action? addArguments = null) => ToProcessor(new OutputArgument(uri.AbsolutePath, overwrite), addArguments);
- public FFMpegArgumentProcessor OutputToStream(string uri, Action? addArguments = null) => ToProcessor(new OutputStreamArgument(uri), addArguments);
- public FFMpegArgumentProcessor OutputToStream(Uri uri, Action? addArguments = null) => ToProcessor(new OutputStreamArgument(uri.ToString()), addArguments);
+ public FFMpegArgumentProcessor OutputToUrl(string uri, Action? addArguments = null) => ToProcessor(new OutputUrlArgument(uri), addArguments);
+ public FFMpegArgumentProcessor OutputToUrl(Uri uri, Action? addArguments = null) => ToProcessor(new OutputUrlArgument(uri.ToString()), addArguments);
public FFMpegArgumentProcessor OutputToPipe(IPipeSink reader, Action? addArguments = null) => ToProcessor(new OutputPipeArgument(reader), addArguments);
private FFMpegArgumentProcessor ToProcessor(IOutputArgument argument, Action? addArguments)