20

Current status: i should have gone to bed hours ago and there are other things i need to do, but right now i'm compiling ffmpeg in a docker container

Comments
  • 0
    Why 🤔
  • 1
    @rookiemaverick i'm trying to use the voicechat-section of discord.js, but that requires ffmpeg. And because the code is running in a docker container the package manager doesn't want to help me. Oh, and i'm only using the docker container as a sandbox for now, just to have a clean system for testing.
  • 0
    @YouAreAPIRate usually when I want to run something I used custom image. Means I pull an image and customize it as my base image.
  • 1
    or add the ffmpeg binary. compiling from source... kinda dumb using docker
  • 1
    @magicMirror i learned that the hard way. But i didn't know it would take that long nor that there was an npm module that could do this.
  • 1
    @magicMirror i just figured out the npm-package wont install arm-binaries and that'll propably be the same for official downloads. My next approach will be building a base-image with ffmpeg and opus compiled myself. Software/container not being available for arm-arch is a common PIroblem.
  • 0
    @YouAreAPIRate there is no way a static ffmpeg bonary for arm64 (aarch64) or arm32 (armhf) does not exists already. Even if it didn't, you should use a docker image to build, then take out the binary, and use it on a clean docker image. will save you a lot of time rebuilding it, and lot of layer space.
  • 1
  • 0
  • 1
    @magicMirror first of all, i said i used docker with --rm -it to create a sandbox. What i did didn't have to be perfect.
    Second, i don't want to rely on precompiled binaries from somewhere, they're not always on the latest version. And i thought it'll only take 5min or so, but i didn't compile something larger for a long time.
    But in the meantime i got some work done ^^"

    For the docker image i'll definitely create a base image that'll use a docker build stage. That way i'll only have to compile ffmpeg once. I'm currently in the process of setting up my docker registry but i have fucking dhcp problems thanks to this low grade no good router.
Add Comment