Skip to content

Commit

Permalink
Fix rotation mirrored when selecting 270 degrees
Browse files Browse the repository at this point in the history
  • Loading branch information
daniznf committed Sep 27, 2022
1 parent 1102dc1 commit 3803642
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions DTConverter/FFmpegWrapper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -691,15 +691,15 @@ public static Process ConvertVideoAudio(string srcVideoPath, string dstVideoPath
// Rotation
if (rotation == 90)
{
vFilters.Add($"transpose=1 [rotated]");
vFilters.Add($"transpose=clock [rotated]");
}
else if (rotation == 180)
{
vFilters.Add($"transpose=2, transpose=2 [rotated]");
vFilters.Add($"transpose=clock, transpose=clock [rotated]");
}
else if (rotation == 270)
{
vFilters.Add($"transpose=0 [rotated]");
vFilters.Add($"transpose=cclock [rotated]");
}
}
#endregion
Expand Down
4 changes: 2 additions & 2 deletions DTConverter/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -54,5 +54,5 @@
[assembly: NeutralResourcesLanguage("en")]

// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("0.35.16.0")]
[assembly: AssemblyFileVersion("0.35.16.0")]
[assembly: AssemblyVersion("0.35.19.0")]
[assembly: AssemblyFileVersion("0.35.19.0")]

0 comments on commit 3803642

Please sign in to comment.