-
-
Notifications
You must be signed in to change notification settings - Fork 3
ConvertTo Gif
Converts an input video into an animated GIF
Converts an input video into a high-quality animated GIF
dir "$env:UserProfile\Videos\Too Many Cooks.mp4" |
ConvertTo-Gif -Start "00:00:04.65" -End "00:00:06" -OutputPath "$env:UserProfile\Videos\Too Many Cooks.gif"The input path
| Type | Requried | Postion | PipelineInput |
|---|---|---|---|
[String] |
true | 1 | true (ByValue, ByPropertyName) |
The output path
| Type | Requried | Postion | PipelineInput |
|---|---|---|---|
[String] |
true | 2 | true (ByPropertyName) |
The path to FFMpeg.exe. Download it from http://ffmpeg.org/
| Type | Requried | Postion | PipelineInput |
|---|---|---|---|
[String] |
false | named | true (ByPropertyName) |
The timespan to start splitting the video
| Type | Requried | Postion | PipelineInput |
|---|---|---|---|
[TimeSpan] |
false | 3 | true (ByPropertyName) |
The time span to end splitting the video
| Type | Requried | Postion | PipelineInput |
|---|---|---|---|
[TimeSpan] |
false | 4 | true (ByPropertyName) |
If set, will run this in a background job
| Type | Requried | Postion | PipelineInput |
|---|---|---|---|
[Switch] |
false | named | false |
The number of frames per second. If not specified, this will match the existing framerate.
| Type | Requried | Postion | PipelineInput |
|---|---|---|---|
[UInt32] |
false | named | false |
The new width of the .gif
| Type | Requried | Postion | PipelineInput |
|---|---|---|---|
[UInt32] |
false | named | false |
If set, will use a difference-based palette. These put more focus on the motion than the background.
| Type | Requried | Postion | PipelineInput |
|---|---|---|---|
[Switch] |
false | named | false |
System.IO.FileInfo
System.Management.Automation.Job
ConvertTo-Gif [-InputPath] <String> [-OutputPath] <String> [-FFMpegPath <String>] [[-Start] <TimeSpan>] [[-End] <TimeSpan>] [-AsJob] [-FrameRate <UInt32>] [-NewWidth <UInt32>] [-DifferenceBasedPalette] [<CommonParameters>]This really wouldn't have been possible without the great programmers who make ffmpeg. It was also greatly helped by a very diligent blogger who took the time to write down a detailed explanation of how FFMpeg works with animated GIFs. You can find that explanation here - http://blog.pkh.me/p/21-high-quality-gif-with-ffmpeg.html.