Skip to content

Commit

Permalink
Audio dumping is in (fixes #4)
Browse files Browse the repository at this point in the history
Please note that audio dumping seems to be broken in upstream ffms2.
It works if you use the 2.17 dll.
  • Loading branch information
nixxquality committed May 20, 2014
1 parent 310030c commit d51d5dc
Show file tree
Hide file tree
Showing 6 changed files with 104 additions and 89 deletions.
3 changes: 0 additions & 3 deletions FFMSsharp.Tests/FFMSsharp.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,6 @@
<Content Include="h264_720p_hp_5.1_3mbps_vorbis_styled_and_unstyled_subs_suzumiya.mkv">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
<Content Include="samples.dat, how to verify.jpg">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
<Content Include="おはよう.mkv">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
Expand Down
11 changes: 11 additions & 0 deletions FFMSsharp.Tests/UnitTest1.cs
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,17 @@ public void IndexAudioIndex()
Assert.AreEqual(2, index.GetFirstIndexedTrackOfType(TrackType.Audio));
}

[TestMethod]
public void IndexAudioDump()
{
Indexer indexer = new Indexer("h264_720p_hp_5.1_3mbps_vorbis_styled_and_unstyled_subs_suzumiya.mkv");

List<int> AudioDumpList = new List<int>();
AudioDumpList.Add(1);

indexer.Index(audioDump: AudioDumpList, audioDumpFileName: @"%sourcefile%_track%trackzn%.w64");
}

[TestMethod]
public void ReadIndex()
{
Expand Down
Binary file removed FFMSsharp.Tests/samples.dat, how to verify.jpg
Binary file not shown.
Loading

0 comments on commit d51d5dc

Please sign in to comment.