0
0
mirror of https://github.com/obsproject/obs-studio.git synced 2024-09-20 13:08:50 +02:00
obs-studio/cmake/Modules
pkv e7d097cab8
obs-ffmpeg: Native SRT/RIST for mpegts output
Currently the ffmpeg_mpegts_muxer output is integrated with ffmpeg-mux.
Both use obs native encoders in contrast with obs-ffmpeg-output which
relies on avcodec library.
This allowed easy implementation of SRT, RIST & HLS protocols through
avformat library.
The main drawback is that obs-ffmpeg-mux exe doesn't allow for easy
debugging nor logging of the protocols.
It was written initially as a separate binary designed for recording so
that if obs fails for some reason, the recording can still terminate
gracefully.

In this commit the ffmpeg_mpegts_muxer is rewritten so that a pipe to
the ffmpeg-mux binary is not used any more.
The muxing to mpegts is still delegated to avformat.
But it can be traced more easily in all its steps.
Also the protocol part for SRT & RIST is implemented natively.
Custom avio_contexts for SRT & RIST are used to that end.
This allows to pass our own implementation of librist and libsrt
libraries instead of relying on avformat. This is very advantageous :
- this allows better logging.
- this allows better bug fixing and maintainance without having to rely
on hypothetical upstream fixes.

One immediate bonus of native implementation is that fixes bugs which
were not previously fixable.

Fixes: SRT & RIST auto-reconnect partly broken  #6749
Fixes: SRT: OBS unusable and uncloseable after starting stream to
invalid srt server #5791

Signed-off-by: pkv <pkv@obsproject.com>
2022-07-30 17:03:10 +02:00
..
CompilerConfig.cmake cmake: Treat warnings as errors on MSVC 2022-07-18 03:52:04 -07:00
CopyMSVCBins.cmake cmake,UI: Refactor find_qt macro 2022-07-26 17:34:26 +02:00
DeprecationHelpers.cmake cmake: Fix diverging prefix padding for OBS status outputs 2022-03-26 09:44:23 -04:00
FindCEF.cmake cmake: Fix handling of optional debug wrapper libraries for obs-browser 2022-06-20 14:24:52 -04:00
FindDetours.cmake cmake: Update CMake finders and helper modules 2022-03-16 23:11:06 +01:00
FindFFmpeg.cmake cmake: Update CMake finders and helper modules 2022-03-16 23:11:06 +01:00
FindGio.cmake cmake: Update CMake finders and helper modules 2022-03-16 23:11:06 +01:00
FindJack.cmake cmake: Update CMake finders and helper modules 2022-03-16 23:11:06 +01:00
FindJansson.cmake cmake: Update CMake finders and helper modules 2022-03-16 23:11:06 +01:00
FindLibAJANTV2.cmake cmake: Update CMake finders and helper modules 2022-03-16 23:11:06 +01:00
FindLibdrm.cmake cmake: Update CMake finders and helper modules 2022-03-16 23:11:06 +01:00
FindLibfdk.cmake cmake: Update CMake finders and helper modules 2022-03-16 23:11:06 +01:00
FindLibpci.cmake cmake: Update CMake finders and helper modules 2022-03-16 23:11:06 +01:00
FindLibrist.cmake obs-ffmpeg: Native SRT/RIST for mpegts output 2022-07-30 17:03:10 +02:00
FindLibrnnoise.cmake cmake: Update CMake finders and helper modules 2022-03-16 23:11:06 +01:00
FindLibspeexdsp.cmake cmake: Update CMake finders and helper modules 2022-03-16 23:11:06 +01:00
FindLibsrt.cmake obs-ffmpeg: Native SRT/RIST for mpegts output 2022-07-30 17:03:10 +02:00
FindLibv4l2.cmake cmake: Update CMake finders and helper modules 2022-03-16 23:11:06 +01:00
FindLibVLC.cmake cmake: Update CMake finders and helper modules 2022-03-16 23:11:06 +01:00
FindLibx264.cmake cmake: Update CMake finders and helper modules 2022-03-16 23:11:06 +01:00
FindLuajit.cmake cmake: Update CMake finders and helper modules 2022-03-16 23:11:06 +01:00
FindMbedTLS.cmake cmake: Update CMake finders and helper modules 2022-03-16 23:11:06 +01:00
FindOSS.cmake cmake: Update CMake finders and helper modules 2022-03-16 23:11:06 +01:00
FindPipeWire.cmake cmake: Rename variable in FindPipeWire for clarity 2022-04-14 18:01:23 -04:00
FindPythonWindows.cmake cmake: Change desired Python3 DLL name to stable ABI variant 2022-07-21 12:16:36 -04:00
FindRSSDK.cmake cmake: Update CMake finders and helper modules 2022-03-16 23:11:06 +01:00
FindSndio.cmake cmake: Update CMake finders and helper modules 2022-03-16 23:11:06 +01:00
FindSwigWindows.cmake cmake: Update CMake finders and helper modules 2022-03-16 23:11:06 +01:00
FindSysinfo.cmake cmake: Update CMake finders and helper modules 2022-03-16 23:11:06 +01:00
FindUdev.cmake cmake: Update CMake finders and helper modules 2022-03-16 23:11:06 +01:00
FindWayland.cmake cmake: Fix compilation of targets using FindWayland 2022-04-14 18:01:23 -04:00
FindX11_XCB.cmake cmake: Update CMake finders and helper modules 2022-03-16 23:11:06 +01:00
FindXCB.cmake cmake: Update CMake finders and helper modules 2022-03-16 23:11:06 +01:00
FindXkbcommon.cmake cmake: Update CMake finders and helper modules 2022-03-16 23:11:06 +01:00
IDLFileHelper.cmake cmake: Update CMake finders and helper modules 2022-03-16 23:11:06 +01:00
ObsDefaults_Linux.cmake cmake: Fix RPATH on Linux for frontend-tools to find obs-scripting 2022-07-21 12:16:36 -04:00
ObsDefaults_macOS.cmake cmake: Fix build architectures and deployment target not set to defaults 2022-07-06 19:19:43 +02:00
ObsDefaults_Windows.cmake cmake: Fix libraries and header files being installed for packages 2022-07-13 15:52:13 -04:00
ObsHelpers_Linux.cmake cmake: Add EXCLUDE_FROM_ALL to Linux install_headers 2022-07-20 15:08:30 -04:00
ObsHelpers_macOS.cmake cmake: Fix headers installation 2022-05-07 16:13:21 -07:00
ObsHelpers_Windows.cmake cmake: Fix libraries and header files being installed for packages 2022-07-13 15:52:13 -04:00
ObsHelpers.cmake cmake,UI: Refactor find_qt macro 2022-07-26 17:34:26 +02:00
VersionConfig.cmake cmake: Fix diverging prefix padding for OBS status outputs 2022-03-26 09:44:23 -04:00