Skip to content

Commit

Permalink
Prevented FFMPEG from writing metadata
Browse files Browse the repository at this point in the history
This was causing certain tracks to not play in-game.
  • Loading branch information
SilentSys committed Jul 6, 2017
1 parent 8acf0a6 commit f5ad065
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions SLAM/Form1.vb
Original file line number Diff line number Diff line change
Expand Up @@ -157,15 +157,15 @@ Public Class Form1
Dim convert As New FFMpegConverter()
convert.ExtractFFmpeg()

Dim command As String = String.Format("-i ""{0}"" -f wav -flags bitexact -vn -acodec pcm_s16le -ar {1} -ac {2} ""{3}""", Path.GetFullPath(File), Game.samplerate, Game.channels, Path.GetFullPath(outputFile))
Dim command As String = String.Format("-i ""{0}"" -f wav -flags bitexact -map_metadata -1 -vn -acodec pcm_s16le -ar {1} -ac {2} ""{3}""", Path.GetFullPath(File), Game.samplerate, Game.channels, Path.GetFullPath(outputFile))
convert.Invoke(command)
End Sub

Private Sub FFMPEG_ConvertAndTrim(inpath As String, outpath As String, samplerate As Integer, channels As Integer, starttrim As Double, length As Double, volume As Double)
Dim convert As New FFMpegConverter()
convert.ExtractFFmpeg()

Dim command As String = String.Format("-i ""{0}"" -f wav -flags bitexact -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 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))
convert.Invoke(command)
End Sub

Expand Down

0 comments on commit f5ad065

Please sign in to comment.