Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Nov 16 2018 09:02

    ccoors on master

    Update names and URLs (compare)

  • Nov 16 2018 08:56

    ccoors on master

    Update Travis link (compare)

Michael Steenbeek
@Gymnasiast
@Mikroscopic You're not using Linux, I assume?
Mikroscopic
@Mikroscopic
nope, win10
Michael Steenbeek
@Gymnasiast
Not going to work on Windows, unfortunately.
Mikroscopic
@Mikroscopic
can I run it in an ubuntu shell?
Cody Brittain
@Generalcamo
If you have RCTC, that has (most of) the sounds decompiled into FLC I believe
Michael Steenbeek
@Gymnasiast
OGG.
Cody Brittain
@Generalcamo
Ahh
Michael Steenbeek
@Gymnasiast
@Mikroscopic Probably. You will need to install gstreamer via apt-get as well. However, this script was written for gstreamer 0.10, which is quite old.
I plan to replace the script with a better one.
For example, the current script has all offsets hard coded. I want a script that can extract and import using values it computes itself.
Cody Brittain
@Generalcamo
For now until OpenRCT2 has better support, raw WAVs will need to be used
But, I know there was discussion done on what file format to eventually move to
FLAC or Ogg is basically the two options honestly
Michael Steenbeek
@Gymnasiast
I expect at least OGG to be added at some point, as RCTC has opted for that. It would make it easier to use its assets.
Cody Brittain
@Generalcamo
Indeed
There are a few extra sounds that RCTC has too that would be nice to have
though definitely not mandatory
Michael Steenbeek
@Gymnasiast
Right, I'm off to bed. If you want to add information to the readme or something, go ahead and create a PR. I will look into it tomorrow.
Cody Brittain
@Generalcamo
Got it
Key part of this project: Keep track of sources
Something like this
Mikroscopic
@Mikroscopic
Cody Brittain
@Generalcamo
Failing to do so is what killed the original Sound Replacement Project for OpenTTD. I do not want all this work marred by unclear licensing
Michael Steenbeek
@Gymnasiast
@Mikroscopic Yes, but you will also need to change the executable names in the script.
Cody Brittain
@Generalcamo
I'll begin my contributions then
Good night
Mikroscopic
@Mikroscopic
ahhh that's a little outside of my scope of knowledge
Michael Steenbeek
@Gymnasiast
@Generalcamo Indeed. I expect the sound effects to all have different licences. I will also credit all creators, even if the licence does not require it specifically.
@Mikroscopic Might just be a matter of replacing gst-launch with gst-launch-1.0.
I can give more instructions tomorrow if you like. Haven't run that script myself since 2014/2015.
Mikroscopic
@Mikroscopic
I meant, can I install 0.1 instead of 1.0?
Michael Steenbeek
@Gymnasiast
No, just install 1.0. Ubuntu 16.04 and 18.04 only have 1.0.
Mikroscopic
@Mikroscopic
oh
Michael Steenbeek
@Gymnasiast
I can look into the script tomorrow and modify it accordingly if needed.
Mikroscopic
@Mikroscopic
I'll see if your suggestion works
Cody Brittain
@Generalcamo
Hmm
I can't modify the wiki..
Mikroscopic
@Mikroscopic
Where do I save this script?
Mikroscopic
@Mikroscopic
@Gymnasiast (gst-launch-1.0:20087): GStreamer-WARNING **: 17:54:10.483: 0.10-style raw audio caps are being created. Should be audio/x-raw,format=(string).. now. WARNING: erroneous pipeline: could not link filesrc0 to audioconvert0, audioconvert0 can't handle caps audio/x-raw-int, rate=(int)22050, channels=(int)1, endianness=(int)1234, width=(int)16, depth=(int)16, signed=(boolean)true
after doing find and replace gst-launch with gst-launch-1.0
Mikroscopic
@Mikroscopic
So I changed all the audio/x-raw-ints to audio/x-raw and now it gives me
Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
ERROR: from element /GstPipeline:pipeline0/GstCapsFilter:capsfilter0: Filter caps do not completely specify the output format
Additional debug info:
gstcapsfilter.c(455): gst_capsfilter_prepare_buf (): /GstPipeline:pipeline0/GstCapsFilter:capsfilter0:
Output caps are unfixed: audio/x-raw, rate=(int)22050, channels=(int)1, endianness=(int)1234, width=(int)16, depth=(int)16, signed=(boolean)true, layout=(string)interleaved, format=(string){ S8, S16BE, U16LE, U16BE, S24_32LE, S24_32BE, U24_32LE, U24_32BE, S32BE, U32LE, U32BE, S24BE, U24LE, U24BE, S20LE, S20BE, U20LE, U20BE, S18LE, S18BE, U18LE, U18BE, F32BE, F64BE, U8, S16LE, S32LE, S24LE, F32LE, F64LE }
ERROR: pipeline doesn't want to preroll.
Setting pipeline to NULL ...
Freeing pipeline ...
So... I added a format=S8 to the end of each line and now it says
WARNING: erroneous pipeline: could not link audioconvert0 to wavenc0, wavenc0 can't handle caps audio/x-raw, rate=(int)22050, channels=(int)1, endianness=(int)1234, width=(int)16, depth=(int)16, signed=(boolean)true, format=(string)S8
I'm gonna assume the errors getting smaller is better
I should specify I have no idea how to use gstreamer
Mikroscopic
@Mikroscopic
OH I got it
just had to put the format directly after audio/x-raw
Here's the new enum names for the sounds I will be proposing