Filip Stadler
Posts: 20
Joined: Sun Jul 23, 2017 1:33 pm

RaspberryPI 4/ubuntu 19.10 64bit compiled OBS studio

Wed Dec 11, 2019 12:41 am

Just for a test I tried to compile the OBS studio https://obsproject.com/ on my rp4 with 4gb ram.
I did compile but fine on ubuntu but not possible on Rasbian - but I am sure it does its not really optimized using
the rpi4 GPU but it was running but to slow - I did a rtmp stream capture of the desktop also have not
testet using other more small desktop managers

Example
https://www.youtube.com/watch?v=mFT8s6XgGtk (record capture with obs)

Anyway I can do a rtmp fulld stream using just ffmpeg from my video cam in full hd with a Elgato usb3 capture device
but the rpi4 does get very hot :evil: so it needs active cooling.

The goal of making my videocamera wireless portable mobile/phone streamning is working but not using OBS
this is my setup https://www.undergroundnews.dk/index.ph ... ming-setup sorry its in danish
but I can stream to my own rp4 at home and restream to other destinations using rtmp but anybody else playing with
simular projects ?

mattkrebs
Posts: 8
Joined: Wed Dec 11, 2019 7:57 am

Re: RaspberryPI 4/ubuntu 19.10 64bit compiled OBS studio

Wed Dec 11, 2019 9:30 am

I have been trying to get my rpi 4 to stream out a rtmp stream to youtube.

Code: Select all

Cannot open connection tcp://a.rtmp.youtube.com:1935
rtmp://a.rtmp.youtube.com/live2/<stream key>
Have you seen this error before? I think it has something to do with the raspbian verson of ffmpeg does not have openssl compiled in. But that is just a guess.

BTW there is a version of Ubuntu that runs on rpi 4. Thought not sure how stable it is yet.

Filip Stadler
Posts: 20
Joined: Sun Jul 23, 2017 1:33 pm

Re: RaspberryPI 4/ubuntu 19.10 64bit compiled OBS studio

Sat Dec 14, 2019 12:42 pm

Yeps there is a Ubuntu 19.10 64 bit version at https://ubuntu.com/download/raspberry-pi but the ffmpeg in Rasbian/Buster is OK.

The lack of openssl in ffmpeg is not a big problem - I used stunnel to make rtmpS for facebook stream.

The ffmpeg with buster is:

ffmpeg version 4.1.4-1+rpt1~deb10u1 Copyright (c) 2000-2019 the FFmpeg developers
built with gcc 8 (Raspbian 8.3.0-6+rpi1)
configuration: --prefix=/usr --extra-version='1+rpt1~deb10u1' --toolchain=hardened --libdir=/usr/lib/arm-linux-gnueabihf --incdir=/usr/include/arm-linux-gnueabihf --arch=arm --enable-gpl --disable-stripping --enable-avresample --disable-filter=resample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librsvg --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opengl --enable-sdl2 --enable-omx-rpi --enable-mmal --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared
libavutil 56. 22.100 / 56. 22.100
libavcodec 58. 35.100 / 58. 35.100
libavformat 58. 20.100 / 58. 20.100
libavdevice 58. 5.100 / 58. 5.100
libavfilter 7. 40.101 / 7. 40.101
libavresample 4. 0. 0 / 4. 0. 0
libswscale 5. 3.100 / 5. 3.100
libswresample 3. 3.100 / 3. 3.100
libpostproc 55. 3.100 / 55. 3.100

The only thing I am missing is the support for SRT :)

Golly
Posts: 2
Joined: Sat Dec 14, 2019 7:11 pm

Re: RaspberryPI 4/ubuntu 19.10 64bit compiled OBS studio

Sat Dec 14, 2019 8:46 pm

I've been doing some research in SRT, but what would be the "first step" in moving RTMP to SRT?

Filip Stadler
Posts: 20
Joined: Sun Jul 23, 2017 1:33 pm

Re: RaspberryPI 4/ubuntu 19.10 64bit compiled OBS studio

Mon Dec 16, 2019 10:49 pm

Golly wrote:
Sat Dec 14, 2019 8:46 pm
I've been doing some research in SRT, but what would be the "first step" in moving RTMP to SRT?
Well it looks easy - you can do udp to srt like UDP--->SRT====SRT<----UDP they included nice tools to do this at github
sudo git clone https://github.com/Haivision/srt
cd srt

sudo apt-get update
sudo apt-get upgrade
sudo apt-get install tclsh pkg-config cmake libssl-dev build-essential
./configure
make

# We need SRT to be installed in the system also

sudo make install

# To Compile a ffmpeg on Rasberry with OMX enable

git clone https://github.com/FFmpeg/FFmpeg.git
cd FFmpeg

sudo -s

export PKG_CONFIG_PATH="/usr/local/lib/pkgconfig"

./configure --arch=armel --target-os=linux --enable-gpl --enable-omx --enable-omx-rpi --enable-nonfree --enable-mmal --enable-libsrt

make

This maybe not the right way but you get SRT in the ffmpeg but I am missing some - and places where you would to udp multi or unicast you can gain from using SRT - you can make udp on 127.0.0.1:4002 where the SRT is do the transmission to another SRT that make it available as UDP on a local port so you can get input to ffmpeg/vlc as it was regular so its not very hard to replace rtmp with SRT but I dont know if a SRT module is available for nginx but if SRT is compiled in the ffmpeg you can possible more easy to stuff where you would use non reliable udp transmission.

I would like to compile the ffmpeg just like the one included in my rasbian/debian with all the h264/h264 but
git clone https://github.com/FFmpeg/FFmpeg.git does not includ all the stuff to make it simular :(

Return to “Ubuntu”