#Problem with ffmpeg playback

16 messages · Page 1 of 1 (latest)

fleet swan
#

I have been investigating but I can't find where the problem is located, I have made the following checks:

  • Creation of the nixpacks.toml file, to specify ffmpeg installation.
    nixpacks.toml
[phases.setup]
nixPkgs = ['...', 'ffmpeg']
  • Creation of the file railway.toml, to specify nixpacksVersion installation.
    railway.toml
[build]
nixpacksVersion = "1.18.0"
  • Update of all package.json packages
  • Specify engines node and npm
    All this I have tested it starting in local and if it works as it should, when I run in local it plays the music but when I upload it to railway what it does is to jump from song to song in loop because it doesn't seem to play any sound.
sacred pivotBOT
#

To help others find answers, you can mark your question as solved via Right click solution message -> Apps -> ✅ Mark Solution

wind fieldBOT
#

Project ID: 68762214-24b3-43a3-b4ad-b973124293e5

fleet swan
#

68762214-24b3-43a3-b4ad-b973124293e5

fleet swan
# fleet swan I have been investigating but I can't find where the problem is located, I have ...

package.json

{
    "name": "@esp-customs/core",
    "version": "0.5.0b",
    "main": "lib/main.js",
    "scripts": {
        "start": "node --optimize_for_size --max_old_space_size=512 -r ts-node/register src/bot.ts",
    },
    "engines": {
        "node": "18.x",
        "npm": "9.x"
    },
    "keywords": [],
    "author": "SRBOGI",
    "license": "ISC",
    "dependencies": {
        "@discordjs/builders": "^1.7.0",
        "@discordjs/opus": "^0.9.0",
        "@discordjs/rest": "^2.2.0",
        "@discordjs/voice": "^0.16.1",
        "@espcustomss/oauth": "^1.1.1",
        "@types/cors": "^2.8.16",
        "@types/express": "^4.17.21",
        "@types/express-session": "^1.17.10",
        "@types/paypal-rest-sdk": "^1.7.9",
        "@types/ws": "^8.5.9",
        "canvacard": "^5.2.7",
        "compression": "^1.7.4",
        "cors": "^2.8.5",
        "discord-api-types": "^0.37.65",
        "discord.js": "^14.14.1",
        "distube": "^4.1.1",
        "dotenv": "^16.3.1",
        "express": "^4.18.2",
        "ffmpeg-static": "^5.2.0",
        "libsodium-wrappers": "^0.7.13",
        "mongoose": "^7.6.6",
        "paypal-rest-sdk": "^1.8.1",
        "ts-node": "^10.9.1"
    },
    "devDependencies": {
        "autocannon": "^7.12.0",
        "ts-node-dev": "^2.0.0",
        "typescript": "^5.2.2"
    }
}

modest dagger
#

Music bots are against Railway TOS

fleet swan
#

Problem with ffmpeg playback

fleet swan
#

I understand then ffmpeg is banned?

modest dagger
#

It's possible, although I can't say with certainty

#

Nevertheless, best remove this project from railway before you get banned

fleet swan
#

Of course if it is what I use to reproduce sounds, I also think that in my case I make reproductions of public mixes and with freedom of use, then I do not understand very well why it is forbidden something of free use and own creation.

#

Yes, that's what I'll do if they tell me anything, obviously I'm paying and all that's needed.

modest dagger
#

It's forbidden because they don't want people to distribute DMCA content, although that doesn't really apply to you 🤔
Music Bots in general are banned though so I'd still remove it for now and make sure your use-case is allowed before readding it to Railway

fleet swan
#

Ok and how can you investigate my use, I obviously what I do is upload my content to github and then I can play it, I do not know if that is a "music bot".

#

But well nothing happens for now I mount it on another site and stop paying here without problem, until it is solved, if it is solved.

#

I leave it in crasheo mode and that's it, I guess it stays paused here, because I really don't know how to pause it hahaha, I can only remove, rebuild and re-upload.