OBS Studio stream videos to a media source with srt and stream copy

Streaming local and remote videos with ffmpeg srt and stream copy to a OBS Studio media source.


Note your local videos need to be h264/aac 1080p or less for streaming into an OBS Studio media source.

The advantage of using stream copy instead of re-encoding the video as you stream is the cpu usage,
using stream copy the ffmpeg cpu usage will be about 1.5% as opposed to 350% re-encoding the videos as you stream them

One disadvantage with using stream copy is the start and end times can sometimes land between keyframes,
which can cause the audio to go out of sync as can be seen with the video with the llama in it.

So you do need to check the start and end time you use with the scripts before hand to ensure they dont land between keyframes.

The mux-local script allows you to stream a local h264/aac 1080p video optionally with a start and end time into a media source.

The mux-remote script allows you stream any video site supported by yt-dlp optionally with a start and end time into a media source,
and it will automatical select h264/aac 1080p stream.

The mux-play script act as a srt listener and pipes a srt stream into mpv player.

Notes:


Scripts:



 
Back
Top