Kyoo/Kyoo.Common/Controllers/ITranscoder.cs
2020-05-07 03:42:38 +02:00

22 lines
664 B
C#

using Kyoo.Models;
using Kyoo.Models.Watch;
using System.Threading.Tasks;
namespace Kyoo.Controllers
{
public interface ITranscoder
{
// Should transcode to a mp4 container (same video/audio format if possible, no subtitles).
Task<string> Transmux(Episode episode);
// Should transcode to a mp4 container with a h264 video format and a AAC audio format, no subtitles.
Task<string> Transcode(Episode episode);
// Get video and audio tracks infos (codec, name, language...)
Task<Track[]> GetTrackInfo(string path);
// Extract all subtitles of a video and save them in the subtitles sub-folder.
Task<Track[]> ExtractSubtitles(string path);
}
}