#GitHub - CFC-Servers/gm_addon_optimizati...
1 messages · Page 1 of 1 (latest)
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.
Do mp3 files have any noticable downsides in gmod compared to wav?
the only issue i noticed #developer-talk message
interesting, ty
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
you dont have ffmpeg installed
Thanks
like any github addon, just git clone it to your addons folder
How does it work to reduce the size of materials on the workshop side automatically?
oh sorry wrong addon
just git clone it to your pc and use the cli like described in the readme
yes
i have this error
.
did you do what the readme said
i do this : pip install -r .\requirements.txt
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
run it in the folder of the tool
this is basic stuff man, chatgpt can answer literally all of this
do step two in the 2 step guide
its work but the file crashed