wtsnz / 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
344 stars 60 forks source link

Reduce video frame queue to 5 packets #64

Closed eric closed 3 years ago

eric commented 3 years ago

This will hopefully prevent video lag. I've been running into many issues with lag over extended uses and I was hoping this would help.

Also, this solves potential memory leaks that happen when packets are dropped.

wtsnz commented 3 years ago

Thanks! Looks great.

What is the profile function code? Is it provided by OBS Studio?

eric commented 3 years ago

Yes, it's provided by OBS and is output to stdout on exit when you run OBS via the command line.

wtsnz commented 3 years ago

Sweet!

Is it something that we can keep in the prod builds, or is it automatically ifdef'd out?

eric commented 3 years ago

It’s fine to keep in production builds. It’s used in the encoder plugins in OBS, etc.

wtsnz commented 3 years ago

Sweet - thanks for the clarification :)