Skip to content
This repository has been archived by the owner on Mar 28, 2019. It is now read-only.

Commit

Permalink
Merge pull request #17 from vladjerca/feature/nuget
Browse files Browse the repository at this point in the history
Feature / nuget
  • Loading branch information
vladjerca authored Sep 19, 2018
2 parents 094b7af + e92f786 commit cc43430
Show file tree
Hide file tree
Showing 5 changed files with 46 additions and 16 deletions.
Binary file added .nuget/nuget.exe
Binary file not shown.
20 changes: 20 additions & 0 deletions FFMpegSharp/FFMpegSharp.nuspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?xml version="1.0"?>
<package >
<metadata>
<id>$id$</id>
<version>$version$</version>
<title>$title$</title>
<authors>Vlad Jerca</authors>
<owners>Vlad Jerca</owners>
<projectUrl>https://github.com/vladjerca/FFMpegSharp</projectUrl>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<description>$description$</description>
<releaseNotes>
Initial Nuget Release:

API Documentation: https://github.com/vladjerca/FFMpegSharp/blob/master/README.md
</releaseNotes>
<copyright>Copyright 2018</copyright>
<tags>ffmpeg video conversion ffmpegsharp mp4 ogv</tags>
</metadata>
</package>
6 changes: 3 additions & 3 deletions FFMpegSharp/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@
// associated with an assembly.

[assembly: AssemblyTitle("FFMpegSharp")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyDescription("FFMpegSharp is a great way to use FFMpeg encoding when writing video applications, client-side and server-side. It has wrapper methods that allow conversion to all web formats: MP4, OGV, TS and methods of capturing screens from the videos.")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("FFMpegSharp")]
[assembly: AssemblyCopyright("Copyright © 2015")]
[assembly: AssemblyCopyright("Copyright © 2018")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]

Expand All @@ -35,5 +35,5 @@
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]

[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyVersion("2.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
35 changes: 22 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,18 @@
# FFMpegSharp
![FFMpeg Sharp](https://media.licdn.com/mpr/mpr/jc/AAEAAQAAAAAAAAL-AAAAJDEyYTdkMjAyLTc2M2ItNDM2YS1iOTc5LTAwZTU1YWM0NjdiNQ.jpg)
![FFMpeg Sharp](https://media.licdn.com/media/gcrc/dms/image/C5612AQFDCKxnyQ3tmw/article-cover_image-shrink_600_2000/0?e=1542844800&v=beta&t=ntfxKUaio7wjO2VFRL4o7gyoIPNKT95SPt94etMFuzw)

FFMpegSharp is a great way to use FFMpeg encoding when writing video applications, client-side and server-side. It has wrapper methods that allow conversion to all web formats: MP4, OGV, TS and methods of capturing screens from the videos.
# FFMpegSharp [![NuGet Badge](https://buildstats.info/nuget/FFMpegSharp)](https://www.nuget.org/packages/FFMpegSharp/)

### Getting started
## Setup

#### NuGet:

```
Install-Package FFMpegSharp
```

FFMpegSharp is a great way to use FFMpeg encoding when writing video applications, client-side and server-side. It has wrapper methods that allow conversion to all web formats: MP4, OGV, TS and methods of capturing screens from the videos.

## Getting started

Setup your app config (ffmpeg files can be found in the 'Resources' folder):

Expand Down Expand Up @@ -64,7 +73,7 @@ static void Main(string[] args)
encoder.Convert(
video,
outputFile,
VideoType.Mp4,
VideoType.Mp4,
Speed.UltraFast,
VideoSize.Original,
AudioQuality.Hd,
Expand Down Expand Up @@ -100,9 +109,9 @@ static void Main(string[] args)

new FFMpeg()
.Snapshot(
video,
output,
new Size(200, 400),
video,
output,
new Size(200, 400),
TimeSpan.FromMinutes(1)
);
}
Expand All @@ -123,7 +132,7 @@ static void Main(string[] args)
}
```

Join image sequences:
Join image sequences:
```csharp
static void Main(string[] args)
{
Expand Down Expand Up @@ -163,7 +172,7 @@ static void Main(string[] args)

new FFMpeg()
.ExtractAudio(
VideoInfo.FromPath(inputVideoFile),
VideoInfo.FromPath(inputVideoFile),
new FileInfo(outputAudioFile)
);
}
Expand All @@ -181,8 +190,8 @@ static void Main(string[] args)

new FFMpeg()
.ReplaceAudio(
VideoInfo.FromPath(inputVideoFile),
new FileInfo(inputAudioFile),
VideoInfo.FromPath(inputVideoFile),
new FileInfo(inputAudioFile),
new FileInfo(outputVideoFile)
);
}
Expand All @@ -200,7 +209,7 @@ static void Main(string[] args)

((Bitmap)Image.FromFile(inputImageFile))
.AddAudio(
new FileInfo(inputAudioFile),
new FileInfo(inputAudioFile),
new FileInfo(outputVideoFile)
);

Expand Down
1 change: 1 addition & 0 deletions pack.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.\.nuget\nuget.exe pack .\FFMpegSharp\ -Prop Configuration=Release

0 comments on commit cc43430

Please sign in to comment.