dougg3 / obs-ios-camera-source

Use your iPhone camera as a video source in OBS Studio and stream high quality video from your iPhone's camera over USB
https://obs.camera/
GNU General Public License v2.0
49 stars 18 forks source link

Fix build with newer FFmpeg, sync up with latest upstream #21

Closed dougg3 closed 1 year ago

dougg3 commented 1 year ago

CODEC_FLAG_TRUNC and CODEC_CAP_TRUNC were removed from newer versions of FFmpeg. This fixes the build on Fedora 38 for example.

I also noticed that GitHub Actions no longer supports Ubuntu 18.04 so I removed that config.

Finally, I synced up with the upstream version, which seems to just be tweaks to the version number.

dougg3 commented 1 year ago

This should fix #20

dikkedimi commented 2 weeks ago

Currently trying to build on Kubuntu 24.04, because the last release does not seem to show up in OBS.

I'm not sure if this is related although it seems to be.


98% building CXX object CMakeFiles/obs-ios-camera-source.dir/src/FFMpegVideoDecoder.cpp.o
/home/user/Downloads/obs-ios-camera-source/src/ffmpeg-decode.c:19:10: fatal error: obs-ffmpeg-compat.h: No such file or directory
   19 | #include "obs-ffmpeg-compat.h"
      |          ^~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [CMakeFiles/obs-ios-camera-source.dir/build.make:104: CMakeFiles/obs-ios-camera-source.dir/src/ffmpeg-decode.c.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [CMakeFiles/Makefile2:112: CMakeFiles/obs-ios-camera-source.dir/all] Error 2

make: *** [Makefile:136: all] Error 2
dougg3 commented 2 weeks ago

Hi @dikkedimi, I am seeing the same problem in Ubuntu MATE 24.04. I'll see if I can figure out what's wrong. I'm guessing something changed in a newer OBS.

dougg3 commented 2 weeks ago

Thanks for your report! New builds are available here, and the plugin should now compile successfully for you if you want to install it that way instead.