obs-studio/plugins/obs-ffmpeg
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
..
data/locale Use property suffixes for units everywhere 2022-07-22 08:24:51 -04:00
external obs-ffmpeg: Add texture-based hardware AMD encoder 2022-07-21 15:29:25 -07:00
ffmpeg-mux obs-ffmpeg: Fix type mismatch 2022-07-18 03:52:04 -07:00
obs-amf-test obs-ffmpeg: Add texture-based hardware AMD encoder 2022-07-21 15:29:25 -07:00
CMakeLists.txt obs-ffmpeg: Native SRT/RIST for mpegts output 2022-07-30 17:03:10 +02:00
jim-nvenc-helpers.c obs-ffmpeg: Improve dialog text for NVENC errors 2022-05-28 06:48:27 -07:00
jim-nvenc.c obs-ffmpeg: Suppress NVENC preset warnings for now 2022-07-18 03:52:04 -07:00
jim-nvenc.h obs-ffmpeg: Improve dialog text for NVENC errors 2022-05-28 06:48:27 -07:00
obs-ffmpeg-audio-encoders.c deps,libobs,plugins: Fix discarded-qualifiers warnings with FFmpeg 5 2022-07-22 08:50:36 -04:00
obs-ffmpeg-av1.c Use property suffixes for units everywhere 2022-07-22 08:24:51 -04:00
obs-ffmpeg-compat.h clang-format: Apply formatting 2019-06-23 23:49:10 -07:00
obs-ffmpeg-config.h.in obs-ffmpeg: Add HEVC support to NVENC 2022-04-28 08:59:53 -07:00
obs-ffmpeg-formats.h obs-ffmpeg: Use YVYU for FFmpeg pix fmt YVYU422 2022-04-19 19:39:22 +02:00
obs-ffmpeg-hls-mux.c obs-ffmpeg: Add HEVC to supported HLS codecs 2022-07-26 09:23:35 -07:00
obs-ffmpeg-logging.c obs-ffmpeg: Separate logging code 2019-07-09 10:07:24 -07:00
obs-ffmpeg-mpegts.c obs-ffmpeg: Native SRT/RIST for mpegts output 2022-07-30 17:03:10 +02:00
obs-ffmpeg-mux.c obs-ffmpeg: Native SRT/RIST for mpegts output 2022-07-30 17:03:10 +02:00
obs-ffmpeg-mux.h obs-ffmpeg: Add proc handler for manual file splitting 2022-07-30 18:50:13 +10:00
obs-ffmpeg-nvenc.c Use property suffixes for units everywhere 2022-07-22 08:24:51 -04:00
obs-ffmpeg-output.c obs-ffmpeg: Native SRT/RIST for mpegts output 2022-07-30 17:03:10 +02:00
obs-ffmpeg-output.h obs-ffmpeg: Native SRT/RIST for mpegts output 2022-07-30 17:03:10 +02:00
obs-ffmpeg-rist.h obs-ffmpeg: Native SRT/RIST for mpegts output 2022-07-30 17:03:10 +02:00
obs-ffmpeg-source.c obs-ffmpeg: Fix frame remain after changing file 2022-07-28 11:33:02 -07:00
obs-ffmpeg-srt.h obs-ffmpeg: Native SRT/RIST for mpegts output 2022-07-30 17:03:10 +02:00
obs-ffmpeg-url.h obs-ffmpeg: Native SRT/RIST for mpegts output 2022-07-30 17:03:10 +02:00
obs-ffmpeg-vaapi.c deps,libobs,plugins: Fix discarded-qualifiers warnings with FFmpeg 5 2022-07-22 08:50:36 -04:00
obs-ffmpeg-video-encoders.c obs-ffmpeg: Remove unused parameter 2022-07-20 08:22:04 +02:00
obs-ffmpeg-video-encoders.h deps,libobs,plugins: Fix discarded-qualifiers warnings with FFmpeg 5 2022-07-22 08:50:36 -04:00
obs-ffmpeg.c deps,libobs,plugins: Fix discarded-qualifiers warnings with FFmpeg 5 2022-07-22 08:50:36 -04:00
texture-amf-opts.hpp obs-ffmpeg: Add texture-based hardware AMD encoder 2022-07-21 15:29:25 -07:00
texture-amf.cpp obs-ffmpeg: Set MaxCLL/MaxFALL for AMF 2022-07-29 23:23:25 -07:00