Closed nektryn closed 3 years ago
You need to install ffmpeg and set the path in ts3audiobot.toml
:
#The path to ffmpeg.
[tools.ffmpeg]
path = "C:\\path\\to\\ffmpeg.exe"
@Flakebi Could you please give me a link directly which versions of ffmpeg should I download because there is a bit of it, thanks a lot for your help.
Just pick the first one that works I’d say, e.g. ffmpeg-4.4-full_build.7z
from here: https://github.com/GyanD/codexffmpeg/releases/tag/4.4
@Flakebi
[tools.ffmpeg] path = "C:\Users\Nektryn\Downloads\ffmpeg-4.4-full_build\ffmpeg-4.4-full_build\bin\ffmpeg.exe"
LOG:
2021-04-16 00:20:38.3884| INFO|Core|Setup.LogHeader [============ TS3AudioBot started =============]
2021-04-16 00:20:38.4254| INFO|Core|Setup.LogHeader [ Date: Friday, 16 April 2021 00:20:38
2021-04-16 00:20:38.5124| INFO|Core|Setup.LogHeader [ Version: 0.12.2/master/4c6be036
2021-04-16 00:20:38.5138| INFO|Core|Setup.LogHeader [ Build: Release
2021-04-16 00:20:38.5138| INFO|Core|Setup.LogHeader [ Platform: Windows 6.2.9200.0 (64bit)
2021-04-16 00:20:38.5138| INFO|Core|Setup.LogHeader [ Runtime: .NET Framework 3.1.13 ServerGC:True GC:SustainedLowLatency
2021-04-16 00:20:38.5138| INFO|Core|Setup.LogHeader [ Opus: libopus 1.2.1-fixed (x64)
2021-04-16 00:20:38.5138| INFO|Core|Setup.LogHeader [==============================================]
2021-04-16 00:20:38.6300|ERROR|Core|ConfRoot.Open Could not load core config.
Nett.Parser.ParseException: Line 151, column 8: String 'C:\Users\Nektryn\Downloads\ffmpeg-4.4-full_build\ffmpeg-4.4-full_build\bin\ffmpeg.exe' contains the invalid escape sequence '\U'.
at Nett.StringExtensions.<>cDisplayClass4_0.
It can’t load the config (ConfRoot.Open Could not load core config.
), you need to escape backslashes, so it should look like "C:\\Users\\…"
.
LOGS NOW: 2021-04-16 00:26:17.6689| INFO|Core|Setup.LogHeader [============ TS3AudioBot started =============] 2021-04-16 00:26:17.7049| INFO|Core|Setup.LogHeader [ Date: Friday, 16 April 2021 00:26:17 2021-04-16 00:26:17.7889| INFO|Core|Setup.LogHeader [ Version: 0.12.2/master/4c6be036 2021-04-16 00:26:17.7889| INFO|Core|Setup.LogHeader [ Build: Release 2021-04-16 00:26:17.7889| INFO|Core|Setup.LogHeader [ Platform: Windows 6.2.9200.0 (64bit) 2021-04-16 00:26:17.7889| INFO|Core|Setup.LogHeader [ Runtime: .NET Framework 3.1.13 ServerGC:True GC:SustainedLowLatency 2021-04-16 00:26:17.7889| INFO|Core|Setup.LogHeader [ Opus: libopus 1.2.1-fixed (x64) 2021-04-16 00:26:17.7942| INFO|Core|Setup.LogHeader [==============================================] 2021-04-16 00:26:18.3257| INFO|Core|WebServer.StartWebServerInternal Starting Webserver on port 58913 2021-04-16 00:26:18.5211| INFO|Core|Bot.Run Bot "default" connecting to "midov.pl" 2021-04-16 00:26:19.0172| WARN|0|Ts3Client.TsFullClient_OnDisconnected Could not connect: parameter_invalid_size: the command failed to execute: invalid parameter size 2021-04-16 00:26:19.0172| INFO|0|Ts3Client.TryReconnect Trying to reconnect because of Error. Delaying reconnect for 30 seconds 2021-04-16 00:26:49.1383| WARN|0|Ts3Client.TsFullClient_OnDisconnected Could not connect: parameter_invalid_size: the command failed to execute: invalid parameter size 2021-04-16 00:26:49.1383| INFO|0|Ts3Client.TryReconnect Trying to reconnect because of Error. Delaying reconnect for 30 seconds
MY TOML:
[bot]
bot_group_id = 0
generate_status_avatar = true
set_status_description = true
language = "en"
run = false
[bot.commands]
matcher = "ic3"
long_message = "Split"
long_message_split_limit = 1
color = true
command_complexity = 64
[bot.commands.alias]
[bot.connect]
server_password = { pw = "", hashed = false, autohash = false }
channel_password = { pw = "", hashed = false, autohash = false }
client_version = { build = "", platform = "", sign = "" }
address = ""
channel = "factoriowanie w factorio"
badges = ""
name = "JM"
[bot.connect.identity]
key = ""
offset = 0
level = -1
[bot.reconnect] ontimeout = ["1s", "2s", "5s", "10s", "30s", "1m", "5m", "repeat last"] onkick = [] onban = [] onerror = ["30s", "repeat last"] onshutdown = ["5m"]
[bot.audio]
volume = { default = 50.0, min = 25.0, max = 75.0 }
max_user_volume = 100.0
bitrate = 48
send_mode = "voice"
[bot.playlists]
[bot.history]
enabled = true
fill_deleted_ids = true
[bot.events]
onconnect = ""
ondisconnect = ""
onidle = ""
idletime = "0s"
onalone = ""
alone_delay = "0s"
onparty = ""
party_delay = "0s"
onsongstart = ""
[configs]
bots_path = "bots"
send_stats = true
[db]
path = "ts3audiobot.db"
[factories]
media = { path = "" }
[factories.youtube]
prefer_resolver = "Internal"
youtube_api_key = ""
[tools]
youtube-dl = { path = "" }
[tools.ffmpeg] path = "C:\Users\Nektryn\Downloads\ffmpeg-4.4-full_build\ffmpeg-4.4-full_build\bin\ffmpeg.exe"
[rights]
path = "rights.toml"
[plugins]
path = "plugins"
[plugins.load]
[web]
hosts = ["*"]
port = 58913
[web.api]
enabled = true
command_complexity = 64
matcher = "exact"
[web.interface]
enabled = true
path = ""
I gave a double and now a new bug
everything is already working, thanks for your help!
Describe the problem after the! play command, nothing plays, and in the queue after! info shows the song
To Reproduce Steps to reproduce the behavior
System Information
Platform: WINDOWS 10
Mono version:
Which commit did you download: mono TS3AudioBot.exe
2021-04-15 10:11:02.0556| INFO|Core|Setup.LogHeader [============ TS3AudioBot started =============] 2021-04-15 10:11:02.1009| INFO|Core|Setup.LogHeader [ Date: Thursday, 15 April 2021 10:11:02 2021-04-15 10:11:02.2011| INFO|Core|Setup.LogHeader [ Version: 0.12.2/master/4c6be036 2021-04-15 10:11:02.2011| INFO|Core|Setup.LogHeader [ Build: Release 2021-04-15 10:11:02.2011| INFO|Core|Setup.LogHeader [ Platform: Windows 6.2.9200.0 (64bit) 2021-04-15 10:11:02.2011| INFO|Core|Setup.LogHeader [ Runtime: .NET Framework 3.1.13 ServerGC:True GC:SustainedLowLatency 2021-04-15 10:11:02.2011| INFO|Core|Setup.LogHeader [ Opus: libopus 1.2.1-fixed (x64) 2021-04-15 10:11:02.2011| INFO|Core|Setup.LogHeader [==============================================] 2021-04-15 10:11:02.8215| INFO|Core|WebServer.StartWebServerInternal Starting Webserver on port 58913 2021-04-15 10:11:03.0394| INFO|Core|Bot.Run Bot "default" connecting to "midov.pl" 2021-04-15 10:11:03.6678| INFO|Core|Ts3Client.ConnectClient Client connected. 2021-04-15 10:11:14.9462| INFO|0|Bot.OnMessageReceived User Nektryn requested: !play [URL]https://www.youtube.com/watch?v=1rTV7DCnF3Y[/URL] 2021-04-15 10:11:18.3667|ERROR|0|FfmpegProducer.StartFfmpegProcessInternal Ffmpeg could not be found (Nie można odnaleźć określonego pliku.) System.ComponentModel.Win32Exception (2): Nie można odnaleźć określonego pliku. at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo) at System.Diagnostics.Process.StartCore(ProcessStartInfo startInfo) at System.Diagnostics.Process.Start() at TS3AudioBot.Audio.FfmpegProducer.StartFfmpegProcessInternal(FfmpegInstance instance, String arguments) in C:\projects\ts3audiobot\TS3AudioBot\Audio\FfmpegProducer.cs:line 282 2021-04-15 10:11:18.4579| WARN|0|Util.UnwrapToLog permissions_client_insufficient: the command failed to execute: insufficient client permissions (missing permission:b_client_modify_own_description) 2021-04-15 10:11:18.7312| WARN|0|Util.UnwrapToLog custom_error: the command failed to execute: Avatar upload failed: permission_invalid_size: the command failed to execute: invalid size 2021-04-15 10:11:22.1155| INFO||Core.ConsoleInterruptHandler Got interrupt signal, trying to soft-exit. 2021-04-15 10:11:22.1155| INFO||Core.StopAsync TS3AudioBot shutting down. 2021-04-15 10:11:22.1255| INFO||Bot.Stop Bot (0) disconnecting. 2021-04-15 10:11:22.1837| INFO||WebServer.Dispose WebServer is closing 2021-04-15 10:11:22.1852| INFO|Core|WebServer.OnShutdown WebServer has closed 2021-04-15 10:11:22.1852| INFO||Core.StopAsync Bye