#GitHub - CFC-Servers/gm_addon_optimizati...

1 messages · Page 1 of 1 (latest)

boreal crater
#

The wav to mp3 would be great for vehicle packs. It'll be cool if a tool was created to update the vehicle scripts txt files sound paths.

smoky jackal
#

can be easily added in here if needed

warm saddle
#

Do mp3 files have any noticable downsides in gmod compared to wav?

smoky jackal
warm saddle
#

interesting, ty

oblique briar
#

I'm having trouble using wav>mp3, I tried to run the script as user and as admin but I got this error

#
? What do you want to do? .wav to .mp3 (lowers filesize) (skips looped/cued files)
Traceback (most recent call last):
  File "C:\Users\me\Downloads\gm_addon_optimization_tricks-main\main.py", line 72, in <module>
    main()
    ~~~~^^
  File "C:\Users\me\Downloads\gm_addon_optimization_tricks-main\main.py", line 67, in main
    wav_to_mp3(FOLDER)
    ~~~~~~~~~~^^^^^^^^
  File "C:\Users\me\Downloads\gm_addon_optimization_tricks-main\sound_compression\wav_to_mp3.py", line 66, in wav_to_mp3
    sound.export(new_filepath, format="mp3")
    ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\me\AppData\Local\Programs\Python\Python313\Lib\site-packages\pydub\audio_segment.py", line 963, in export
    p = subprocess.Popen(conversion_command, stdin=devnull, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
  File "C:\Users\me\AppData\Local\Programs\Python\Python313\Lib\subprocess.py", line 1036, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
    ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                        pass_fds, cwd, env,
                        ^^^^^^^^^^^^^^^^^^^
    ...<5 lines>...
                        gid, gids, uid, umask,
                        ^^^^^^^^^^^^^^^^^^^^^^
                        start_new_session, process_group)
                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\me\AppData\Local\Programs\Python\Python313\Lib\subprocess.py", line 1548, in _execute_child
    hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
                       ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^
                             # no special security
                             ^^^^^^^^^^^^^^^^^^^^^
    ...<4 lines>...
                             cwd,
                             ^^^^
                             startupinfo)
                             ^^^^^^^^^^^^
FileNotFoundError: [WinError 2] The system cannot find the file specified
smoky jackal
#

you dont have ffmpeg installed

oblique briar
#

Thanks

plush vapor
#

Hi @smoky jackal how we can install this ?

#

to my server

smoky jackal
plush vapor
smoky jackal
#

oh sorry wrong addon

#

just git clone it to your pc and use the cli like described in the readme

plush vapor
#

i need to install python ?

#

@smoky jackal

smoky jackal
#

yes

plush vapor
plush vapor
smoky jackal
#

did you do what the readme said

plush vapor
#

i do this : pip install -r .\requirements.txt

smoky jackal
#

you're running it in python, run it in cmd as described

#

just run it in the regular console

#

or just double click the bat file

plush vapor
#

this error in the bat file @smoky jackal

smoky jackal
#

run it in the folder of the tool

#

this is basic stuff man, chatgpt can answer literally all of this

plush vapor
#

successfully installed

#

how can i do now

#

xd

smoky jackal
#

do step two in the 2 step guide

plush vapor