Question / Help OBS-FTL from source: still 10 second delay

keybounce

Member
First, I want to thank Narcogen for the work and help done getting OBS-FTL to compile.

Second, I want to know why it works for you, and not for me.

I am now able to compile OBS-FTL, and it runs. But I still get a 10 second delay.

I did have to make changes to the OBS build script that was there. Here's my current build script:

Code:
build(){
  export FFmpegPath=/opt/local/bin
  export QTDIR=/opt/local/libexec/qt5
  pushd .
  cd ..
  mkdir -p build
  cd build
  cmake -DOBS_VERSION_OVERRIDE='17.0.0-ftl.28' ..
  make
  sudo python2.7 ../build_script/build_app.py
  # sudo chown -R :staff OBS.app
  popd
}

archive(){
  pushd .
  cd ../build
  echo "@@ Archiving build to DMG..."
  hdiutil create -ov -fs HFS+ -type SPARSE -volname 'OBS-FTL Install' OBS-FTL.sparseimage
  hdiutil mount OBS-FTL.sparseimage
  cp -r ./OBS.app "/Volumes/OBS-FTL Install/OBS-FTL.app"
  hdiutil detach "/Volumes/OBS-FTL Install"
  mkdir -p dmg
  hdiutil convert -ov OBS-FTL.sparseimage -format UDBZ -o dmg/OBS_Studio-FTL.17.0.0.ftl.28.dmg
  popd
}

build
archive

For comparison, here's the diff from the original:

Code:
diff --git a/build_script/build_osx b/build_script/build_osx
index dcf7abb0..80cb2521 100755
--- a/build_script/build_osx
+++ b/build_script/build_osx
@@ -1,15 +1,15 @@
 build(){
-  export FFmpegPath=/usr/local/ffmpeg-tachyon/include
-  export QTDIR=/usr/local/Cellar/qt5/5.5.0_1/
+  export FFmpegPath=/opt/local/bin
+  export QTDIR=/opt/local/libexec/qt5
  pushd .
  cd ..
-  mkdir build
+  mkdir -p build
  cd build
  cmake -DOBS_VERSION_OVERRIDE='17.0.0-ftl.28' ..
  make
  sudo python2.7 ../build_script/build_app.py
-  sudo chown -R :staff OBS.app
+  # sudo chown -R :staff OBS.app
  popd
 }
@@ -17,12 +17,12 @@ archive(){
  pushd .
  cd ../build
  echo "@@ Archiving build to DMG..."
-  hdiutil create -fs HFS+ -megabytes 80 -volname 'OBS-FTL Install' OBS-FTL.dmg
-  hdiutil mount OBS-FTL.dmg
+  hdiutil create -ov -fs HFS+ -type SPARSE -volname 'OBS-FTL Install' OBS-FTL.sparseimage
+  hdiutil mount OBS-FTL.sparseimage
  cp -r ./OBS.app "/Volumes/OBS-FTL Install/OBS-FTL.app"
-  hdiutil unmount "/Volumes/OBS-FTL Install"
-  mkdir dmg
-  cp OBS-FTL.dmg dmg/OBS_Studio-FTL.17.0.0.ftl.28.dmg
+  hdiutil detach "/Volumes/OBS-FTL Install"
+  mkdir -p dmg
+  hdiutil convert -ov OBS-FTL.sparseimage -format UDBZ -o dmg/OBS_Studio-FTL.17.0.0.ftl.28.dmg
  popd
 }

The hdiutil commands needed a significant re-work, the old script would not run twice without manual cleanup, and the old "80 MB image limit" was exceeded during the preparation (hence the sparse image intermediate and the compressed final image).

BUT:

1. During compilation, OBS cannot find VLC. No VLC source
2. Docs say to use
  1. Stream Type: Beam FTL Service
But that is not found. Only "beam.pro" is found.
3. Even with zero latency, high profile, very fast (settings from the beam site), it still gives me a 10 second delay.

I am stuck. I cannot quite get this to work.

Help me Narcogen, you are my only hope. Just 14 steps to the light side and we'll be done.
 

Narcogen

Active Member
Screen%20Shot%202017-04-23%20at%206.12.31%20AM%20%282%29.jpg
You're looking in the wrong place.

Under settings, you need to change "streaming services" to "Beam FTL Service", then change the desired ingest server.

If you just choose Beam.pro from the list of ingest servers, you're still using RTMP.
 

keybounce

Member
Darn!

Well, it works. For a short period. I was able to stream, and move my browser window, and saw the "infinite zoom" move in real time.

Then ...

Code:
Process:  obs [42389]
Path:  /Volumes/VOLUME/OBS-FTL.app/Contents/Resources/bin/obs
Identifier:  com.obsproject.obs-studio
Version:  18.0.0-0.9.4.0 (0)
Code Type:  X86-64 (Native)
Parent Process:  launchd [223]
Responsible:  obs [42389]
User ID:  502

Date/Time:  2017-04-22 20:55:27.488 -0700
OS Version:  Mac OS X 10.9.5 (13F1911)
Report Version:  11
Anonymous UUID:  322D0FA5-7F98-C78B-7DAB-9D4440433719


Crashed Thread:  0  Dispatch queue: com.apple.main-thread

Exception Type:  EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x000000011ac2c468

VM Regions Near 0x11ac2c468:
  MALLOC_LARGE  000000011abac000-000000011ac2c000 [  512K] rw-/rwx SM=PRV  
-->
  STACK GUARD  000000011ac2f000-000000011ac30000 [  4K] ---/rwx SM=NUL  stack guard for thread 37

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0  libcurl.4.dylib  0x0000000108e8e683 Curl_resolv_timeout + 194

Thread 1:: Dispatch queue: com.apple.libdispatch-manager
0  libsystem_kernel.dylib  0x00007fff94c29662 kevent64 + 10
1  libdispatch.dylib  0x00007fff8c7b0421 _dispatch_mgr_invoke + 239
2  libdispatch.dylib  0x00007fff8c7b0136 _dispatch_mgr_thread + 52
...

Overflowing a large malloc???

Needless to say, the crash was ... too fast :-)

But I have low latency, now to figure out how to make it work.
 
Top