Deploying FFMPEG/ GStreamer based python applications on Railways

Has anyone deployed applications that use FFMPEG and Gstreamer on Railway? I like to use GStreamer for live streaming to Facebook and stream start/stop controlled by posting a RESTFul request on FASTAPI. Is Railway.dev a good choice as hosting for this scenario?
6 Replies
Percy
Percy13mo ago
Project ID: N/A
Brody
Brody13mo ago
i dont know what "GStreamer" is but you can certainly install ffmpeg onto a railway deployment
meera_datey
meera_datey13mo ago
https://gstreamer.freedesktop.org/ It has python bindings
Brody
Brody13mo ago
what is the apt package you need to install?
meera_datey
meera_datey13mo ago
It seems it is prebuilt for most linux distribution. https://gstreamer.freedesktop.org/documentation/installing/on-linux.html?gi-language=c for Ubuntu/Debian
apt-get install libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev libgstreamer-plugins-bad1.0-dev gstreamer1.0-plugins-base gstreamer1.0-plugins-good gstreamer1.0-plugins-bad gstreamer1.0-plugins-ugly gstreamer1.0-libav gstreamer1.0-tools gstreamer1.0-x gstreamer1.0-alsa gstreamer1.0-gl gstreamer1.0-gtk3 gstreamer1.0-qt5 gstreamer1.0-pulseaudio
Brody
Brody13mo ago
try adding this nixpacks.toml file to your project
[phases.setup]
aptPkgs = [
'...',
'ffmpeg',
'libgstreamer1.0-dev',
'libgstreamer-plugins-base1.0-dev',
'libgstreamer-plugins-bad1.0-dev',
'gstreamer1.0-plugins-base',
'gstreamer1.0-plugins-good',
'gstreamer1.0-plugins-bad',
'gstreamer1.0-plugins-ugly',
'gstreamer1.0-libav',
'gstreamer1.0-tools',
'gstreamer1.0-x',
'gstreamer1.0-alsa',
'gstreamer1.0-gl',
'gstreamer1.0-gtk3',
'gstreamer1.0-qt5',
'gstreamer1.0-pulseaudio'
]
[phases.setup]
aptPkgs = [
'...',
'ffmpeg',
'libgstreamer1.0-dev',
'libgstreamer-plugins-base1.0-dev',
'libgstreamer-plugins-bad1.0-dev',
'gstreamer1.0-plugins-base',
'gstreamer1.0-plugins-good',
'gstreamer1.0-plugins-bad',
'gstreamer1.0-plugins-ugly',
'gstreamer1.0-libav',
'gstreamer1.0-tools',
'gstreamer1.0-x',
'gstreamer1.0-alsa',
'gstreamer1.0-gl',
'gstreamer1.0-gtk3',
'gstreamer1.0-qt5',
'gstreamer1.0-pulseaudio'
]
Want results from more Discord servers?
Add your server