Comments (15)
It may have something to do with whatever is telling OBS (here shown on macOS 10.15.6) that the only valid FPS selection is 2
from showmewebcam.
I think it's because the webcam only supports MJPEG for now. We need to get H264 support in for better performance. We need someone who can figure out how to make uvc-camera
output H264 from the HQ camera.
$ ffmpeg -hide_banner -f v4l2 -list_formats all -i /dev/video0
[video4linux2,v4l2 @ 0x55b219f916c0] Compressed: mjpeg : Motion-JPEG : 1920x1080
Here, I think webex doesn't have an accelerated H264 encoding pipeline or its software encoding pipeline is horribly inefficient.
from showmewebcam.
Thanks for the cursor. Let me see what can be done about this.
from showmewebcam.
Found it
Frame interval in was set to 5000000 microseconds, which is 2 frames per second.
Setting it instead to 333333 microseconds [ (1/30) x 10^7) ]
makes it 30 frames per second.
Previous to this change, it did definitely appear to be running faster than 2 frames per second in Quicktime Player movie recording and in OBS preview, but now it is definitely much smoother. It may or may not fix @Fernyman79 's issue.
With this change the FPS value appears properly in OBS:
from showmewebcam.
@kmalinich Thanks, that's fantastic, I will try that and release a fix. I think the unit for dwFrameInterval
isn't microseconds though, because 333,333 microsecs = 0.33 secs = 3fps.
from showmewebcam.
I have checked, it looks like at least VLC in Linux sees that the current fps is 0.2.
That makes dwFrameInterval
should be in microseconds, and thus be set to 33333
not 333333
.
from showmewebcam.
Awesome! I'm definitely getting around 30 fps on Webex now. I can't test the image quality on the other end yet, but I'll report as soon as I have a chance to test.
from showmewebcam.
@Fernyman79 did you set the parameter dwFrameInterval
to 33,333
or 333,333
?
from showmewebcam.
How can I modify the multi-gadget.sh script? The squashfs filesystem is mounted readonly. Thanks!
from showmewebcam.
@htruong just checked. 333,333.
from showmewebcam.
@nathcoad after editing the script, you have to rebuild:
sudo make clean
sudo make
I'm not sure if there's a proper way, but this worked for me.
from showmewebcam.
I've seen reference to the value being in nanoseconds in the UVC driver documentation, but still the value that makes 30fps happen is indeed 333333.
I'll be testing "live in production" on my sprint stand-up Microsoft Teams call for work in 3 hours or so, and I'll report back
from showmewebcam.
Worked 100% for all (10+) the Teams calls I've used it with.
from showmewebcam.
Can someone help me test v1.22-preview that has the parameter set to 333,333?
https://github.com/showmewebcam/showmewebcam/releases/tag/v1.22-preview
from showmewebcam.
I don't have webex, but I do have OBS installed and I can confirm that the framerate has gone from 2 to 30 FPS, with a framerate interval of 33.3333 ms.
Thanks for fixing this so quickly!
from showmewebcam.
Related Issues (20)
- Unable to use RPi zero v1.3 with arducam IMX219 module in ubuntu HOT 5
- Pi0 not recognized as camera anymore HOT 1
- Camera freezes when setting 1080p in OBS. also, is there 60 fps support?
- Rpi Zero W Creating 'Failed to query (GET_INFO) UVC control' Error on Rpi 3 Buster 3 and Rpi 4 Bullseye 64 bit HOT 2
- Support other raspberry pi HOT 2
- Remove unused kernel modules and subsystems HOT 1
- Not showing up on M1 pro Mac HOT 3
- Support for Pi Camera 3 HOT 12
- Low light environment. Maximum value of exposure_time_absolute >10000 HOT 1
- Installation instructions down HOT 1
- Project dead?! HOT 10
- [Quesition] Streaming app (preferable cli) HOT 1
- How to grab an uncompressed image from the UVC camera, e.g. with ffmpeg?
- start.elf: is not compatible HOT 9
- not detected on Android
- How to specify firmware version? HOT 2
- Not working with Raspi 4 + camera module 2 on Win10 HOT 2
- Camera module 3 support ? HOT 17
- Nothing is happening on my RPi 4 model B HOT 5
- Unable to boot/detect Raspberry Pi Zero (no W) with showmewebcam
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from showmewebcam.