![]() Other available arguments could be found in FFMpegCore.Arguments namespace. Image.AddAudio(inputAudioPath, outputPath) Var image = Image.FromFile(inputImagePath) Join images into a video: frameRate: the audio of a video file: FFMpeg.Mute(inputPath, outputPath) Įxtract the audio track from a video file: FFMpeg.ExtractAudio(inputPath, outputPath) Īdd or replace the audio track of a video file: FFMpeg.ReplaceAudio(inputPath, inputAudioPath, outputPath) Ĭombine an image with audio file, for youtube or similar platforms FFMpeg.PosterWithAudio(inputPath, inputAudioPath, outputPath) Join video parts into one single file: a sub video FFMpeg.SubVideo(inputPath, you can also supply -1 to either one of Width/Height Size properties if you'd like FFMPEG to resize while maintaining the aspect ratioĪwait FFMpeg.GifSnapshotAsync(inputPath, outputPath, new Size(480, -1), TimeSpan.FromSeconds(10)) You can also capture GIF snapshots from a video file: FFMpeg.GifSnapshot(inputPath, outputPath, new Size(200, 400), TimeSpan.FromSeconds(10)) Īwait FFMpeg.GifSnapshotAsync(inputPath, outputPath, new Size(200, 400), TimeSpan.FromSeconds(10)) Var bitmap = FFMpeg.Snapshot(inputPath, new Size(200, 400), TimeSpan.FromMinutes(1)) įFMpeg.Snapshot(inputPath, outputPath, new Size(200, 400), TimeSpan.FromMinutes(1)) Easily capture snapshots from a video file: // process the snapshot in-memory and use the Bitmap directly The provided helper methods makes it simple to perform common operations. OutputToPipe(new StreamPipeSink(outputStream), options => options ![]() ![]() ![]() WithVideoFilters(filterOptions => filterOptionsĬonvert to and/or from streams await FFMpegArguments OutputToFile(outputPath, false, options => options Or var mediaInfo = FFProbe.Analyse(inputPath) Įasily build your FFMpeg arguments using the fluent argument builder:Ĭonvert input file to h264/aac scaled to 720p w/ faststart, for web playback FFMpegArguments Use FFProbe to analyze media files: var mediaInfo = await FFProbe.AnalyseAsync(inputPath) Supports both synchronous and asynchronous calls API FFProbe NET Standard FFMpeg/FFProbe wrapper for easily integrating media analysis and conversion into your. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |