-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathIMediaEncoderSettings.cs
46 lines (41 loc) · 1.61 KB
/
IMediaEncoderSettings.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
using System;
namespace GalleryServerPro.Business.Interfaces
{
/// <summary>
/// Represents the settings used to control the encoding of one media type to another. For example, an
/// instance might store the FFmpeg command line arguments to use when converting .AVI files to .MP4.
/// </summary>
public interface IMediaEncoderSettings : IComparable<IMediaEncoderSettings>
{
/// <summary>
/// Gets or sets the file extension of the media file used as the source for an encoding.
/// Example: .avi, .dv
/// </summary>
/// <value>A string.</value>
string SourceFileExtension { get; set; }
/// <summary>
/// Gets or sets the file extension of the media file created as a result of the encoding.
/// Example: .mp4, .flv
/// </summary>
/// <value>A string.</value>
string DestinationFileExtension { get; set; }
/// <summary>
/// Gets or sets the arguments to pass to the encoder utility. May contain the following
/// replacement tokens: {SourceFilePath}, {DestinationFilePath}, {GalleryResourcesPath},
/// {BinPath}, {AspectRatio}, {Width}, {Height}
/// </summary>
/// <value>A string.</value>
string EncoderArguments { get; set; }
/// <summary>
/// Gets or sets the order of this item in relation to other items.
/// </summary>
/// <value>The order this item in relation to other items.</value>
int Sequence { get; set; }
/// <summary>
/// Verifies the item contains valid data.
/// </summary>
/// <exception cref="UnsupportedMediaObjectTypeException">Thrown when the instance references
/// a file type not recognized by the application.</exception>
void Validate();
}
}