Hello! Been trying to send a video feed from my computer to my partner's computer, so we can stream two gameplay feeds in one stream. I recently realized that i could start the OBS virtual camera, capture->encode->stream it with ffmpeg, like so:
And it actually works great! The only downside is that there's no sound, which makes sense, it's just a "camera".
Later i found the advanced recording options in OBS, and there's a built-in FFmpeg, seems handy! Set it up to stream and... well, it works... but the latency is sky-high now. Streaming the virtual camera with standalone FFmpeg had a latency of 0.5s or so, but streaming with OBS's FFmpeg settings is anything between 4-10 seconds!
Why is it like that? Is there some parameter i can add or change to get closer to the virtual camera mode's latency?
./ffmpeg.exe -f dshow -i video="OBS Virtual Camera" -vcodec libx264 -preset faster -crf 19 -tune zerolatency -f mpegts udp://192.168.COMPUTER.IP:SOME_PORT
And it actually works great! The only downside is that there's no sound, which makes sense, it's just a "camera".
Later i found the advanced recording options in OBS, and there's a built-in FFmpeg, seems handy! Set it up to stream and... well, it works... but the latency is sky-high now. Streaming the virtual camera with standalone FFmpeg had a latency of 0.5s or so, but streaming with OBS's FFmpeg settings is anything between 4-10 seconds!
Why is it like that? Is there some parameter i can add or change to get closer to the virtual camera mode's latency?