From f5ad065842fd67c375f87a95fd796042c8ed43dc Mon Sep 17 00:00:00 2001 From: SilentSys Date: Wed, 5 Jul 2017 20:02:51 -0700 Subject: [PATCH] Prevented FFMPEG from writing metadata This was causing certain tracks to not play in-game. --- SLAM/Form1.vb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SLAM/Form1.vb b/SLAM/Form1.vb index 99c52ce..bb18534 100644 --- a/SLAM/Form1.vb +++ b/SLAM/Form1.vb @@ -157,7 +157,7 @@ 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 @@ -165,7 +165,7 @@ 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} -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