Skip to content

Commit

Permalink
Fixed #84
Browse files Browse the repository at this point in the history
Length of track was being set to 0.
  • Loading branch information
SilentSys committed Jul 6, 2017
1 parent 444d2a4 commit edbd883
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion SLAM/Form1.vb
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,12 @@ Public Class Form1
Dim convert As New FFMpegConverter()
convert.ExtractFFmpeg()

Dim command As String = String.Format("-i ""{0}"" -f wav -flags bitexact -map_metadata -1 -vn -acodec pcm_s16le -ar {1} -ac {2} -ss {3} -t {4} -af ""volume={5}"" ""{6}""", Path.GetFullPath(inpath), samplerate, channels, starttrim, length, volume, Path.GetFullPath(outpath))
Dim trimstring As String
If length > 0 Then
trimstring = String.Format("-ss {0} -t {1} ", starttrim, length)
End If

Dim command As String = String.Format("-i ""{0}"" -f wav -flags bitexact -map_metadata -1 -vn -acodec pcm_s16le -ar {1} -ac {2} {3}-af ""volume={4}"" ""{5}""", Path.GetFullPath(inpath), samplerate, channels, trimstring, volume, Path.GetFullPath(outpath))
convert.Invoke(command)
End Sub

Expand Down

0 comments on commit edbd883

Please sign in to comment.