

It already reached end-of-life and it's not updated anymore.

Full - Full release version made by Zenaroe.Official - Official releases from ffbinaries.Next run will get version from file and check if new version is available. Above method create for version.json file in specified directory and if don't find it, downloadĮverything and save information about version. This can be changed by FFmpeg.ExecutablesPath. Default directory is where yourĪssemblies are.

This will acquire latest version for your operating system and saves it on your computer. After installing package, just run this method:įFmpegDownloader.GetLatestVersion(FFmpegVersion.Official) Currently there are lack support of Tizen and RaspberryPi. Getting latest FFmpeg executables is possible on most common operating system or architectures. That is sample use: public IConversion SetSeek(TimeSpan? seek) Return new TimeSpan(0, hours, minutes, seconds, milliseconds) īut honestly, you do not have to know what underneath those methods. Public static TimeSpan ParseFFmpegTime(this string text) OnProgress events allow redirect FFmpeg output to user and inform him about progress.Ĭonversion.OnProgress += (sender, args) => IConversion provides events to handle FFmpeg output. All parameters passed to it are overrided by default values. Method IConversions.Clear() sets IConversion to untouched state. string outputPath = Path.ChangeExtension(Path.GetTempFileName(), ".mp4") Stream object could be use more than once. IStream audioStream = ()Īlmost all methods in streams return specific stream (IAudioStream, IVideoStream etc.). IMediaInfo mediaInfo = await FFmpeg.GetMediaInfo(Resources.MkvWithAudio) This could be done also by: string outputPath = Path.ChangeExtension(Path.GetTempFileName(), ".mp4") IConversionResult result = await snippet.Start() Var snippet = (Resources.MkvWithAudio, output) Sample below shows basic conversion video file from mkv to mp4 format: string output = Path.Combine(Path.GetTempPath(), Guid.NewGuid() + ".mp4") is the main class to handle FFmpeg conversions.
