Comments (8)
Hey @aqQnm0,
Sorry I took so long to get back to you. Interesting, it sounds like the decoding on the computer isn't able to keep up over long durations.
A few questions:
- Does the scene in OBS Studio have a lot of sources?
- What's the CPU indicator at the bottom say during recording/streaming/ready?
- Do you get any warnings from the iOS Camera plugin printed to the logfile?
Thanks!
from obs-ios-camera-source.
No problem.
I created a new empty scene and added just the iOS Cam source for testing. I ran a test recording for about half an hour. The CPU indicator in OBS stays at around 16-19% during recording in x264 1080p with the cam source activated (full screen) and at about 5% with it disabled. In scenes with multiple active sources (10+) the CPU is pretty much the same, just 2-5% higher. Task Manager says the same as the indicator in OBS +/- 2%. With my standard USB Cam, the CPU usage is much lower. And I think an i7 5960X Extreme should be strong enough to keep up.
The first 20 minutes the video was perfectly in sync, but then the camera suddenly started getting a weird delay and inconistent playback speed.
Here are the parts of the log, where I start the recording and where its giving me errors.
10:57:37.909: User added scene 'Szene 2'
10:57:37.911: User switched to scene 'Szene 2'
10:57:39.426: warning: Could not update timestamps for discarded samples.
10:57:39.446: error: Read error at pos. 395 (0x18b)
10:57:44.993: User added source 'iOS Camera' (ios-camera-source) to scene 'Szene 2'
10:57:44.998: [obs-ios-camera-plugin] Activating
10:58:02.898: [obs-ios-camera-plugin] Deactivating
10:58:03.965: [obs-ios-camera-plugin] Activating
10:58:04.000: error: non-existing PPS 0 referenced
10:58:04.000: error: decode_slice_header error
10:58:04.001: error: no frame!
10:58:04.028: error: no frame!
10:58:04.028: error: no frame!
[...]
10:58:24.317: error: no frame!
10:58:24.317: error: no frame!
10:58:24.317: error: no frame!
10:58:24.472: ---------------------------------
10:58:24.472: [x264 encoder: 'recording_h264'] preset: veryfast
10:58:24.472: [x264 encoder: 'recording_h264'] profile: high
10:58:24.472: [x264 encoder: 'recording_h264'] settings:
10:58:24.472: rate_control: CBR
10:58:24.472: bitrate: 8000
10:58:24.472: buffer size: 8000
10:58:24.472: crf: 0
10:58:24.472: fps_num: 30
10:58:24.472: fps_den: 1
10:58:24.472: width: 1920
10:58:24.472: height: 1080
10:58:24.472: keyint: 250
10:58:24.472:
10:58:24.482: [CoreAudio AAC: 'Track2']: settings:
10:58:24.482: mode: AAC
10:58:24.482: bitrate: 192
10:58:24.482: sample rate: 44100
10:58:24.482: cbr: on
10:58:24.482: output buffer: 1536
10:58:24.484: [CoreAudio AAC: 'Track3']: settings:
10:58:24.484: mode: AAC
10:58:24.484: bitrate: 192
10:58:24.484: sample rate: 44100
10:58:24.484: cbr: on
10:58:24.484: output buffer: 1536
10:58:24.497: ==== Recording Start ===============================================
10:58:24.497: [ffmpeg muxer: 'adv_file_output'] Writing file 'D:/Videos/2018-05-08 09-58-24.mp4'...
10:58:24.646: error: no frame!
10:58:24.647: error: no frame!
10:58:24.647: error: no frame!
10:58:24.979: error: no frame!
10:58:24.979: error: no frame!
10:58:24.979: error: no frame!
10:58:25.317: error: no frame!
10:58:25.318: error: no frame!
10:58:25.318: error: no frame!
10:58:25.646: error: no frame!
10:58:25.646: error: no frame!
10:58:25.646: error: no frame!
10:58:25.984: error: no frame!
10:58:25.984: error: no frame!
10:58:25.985: error: no frame!
10:58:26.317: error: no frame!
10:58:26.317: error: no frame!
10:58:26.317: error: no frame!
10:58:26.646: error: no frame!
10:58:26.647: error: no frame!
10:58:26.647: error: no frame!
10:58:26.980: error: no frame!
10:58:26.980: error: no frame!
10:58:26.980: error: no frame!
[...]
11:17:38.641: error: no frame!
11:17:39.153: [obs-ios-camera-plugin] Decoding queue overloaded. 26 frames behind. Please use a lower quality setting.
11:17:39.153: error: no frame!
11:17:39.153: error: no frame!
11:17:39.153: error: no frame!
11:17:39.211: [obs-ios-camera-plugin] Decoding queue overloaded. 27 frames behind. Please use a lower quality setting.
11:17:39.269: [obs-ios-camera-plugin] Decoding queue overloaded. 27 frames behind. Please use a lower quality setting.
11:17:39.318: [obs-ios-camera-plugin] Decoding queue overloaded. 28 frames behind. Please use a lower quality setting.
[...]
11:19:39.046: [obs-ios-camera-plugin] Decoding queue overloaded. 1320 frames behind. Please use a lower quality setting.
11:19:39.065: [obs-ios-camera-plugin] Decoding queue overloaded. 1320 frames behind. Please use a lower quality setting.
11:19:39.084: [obs-ios-camera-plugin] Decoding queue overloaded. 1319 frames behind. Please use a lower quality setting.
11:19:39.104: [obs-ios-camera-plugin] Decoding queue overloaded. 1319 frames behind. Please use a lower quality setting.
11:19:39.121: [obs-ios-camera-plugin] Decoding queue overloaded. 1318 frames behind. Please use a lower quality setting.
11:19:39.138: [obs-ios-camera-plugin] Decoding queue overloaded. 1318 frames behind. Please use a lower quality setting.
11:19:39.154: [obs-ios-camera-plugin] Decoding queue overloaded. 1317 frames behind. Please use a lower quality setting.
11:19:39.169: [obs-ios-camera-plugin] Decoding queue overloaded. 1319 frames behind. Please use a lower quality setting.
11:19:39.190: [obs-ios-camera-plugin] Decoding queue overloaded. 1319 frames behind. Please use a lower quality setting.
11:19:39.212: [obs-ios-camera-plugin] Decoding queue overloaded. 1319 frames behind. Please use a lower quality setting.
11:19:39.227: [obs-ios-camera-plugin] Decoding queue overloaded. 1318 frames behind. Please use a lower quality setting.
11:19:39.227: error: no frame!
11:19:39.227: [obs-ios-camera-plugin] Decoding queue overloaded. 1317 frames behind. Please use a lower quality setting.
11:19:39.227: error: no frame!
11:19:39.228: [obs-ios-camera-plugin] Decoding queue overloaded. 1316 frames behind. Please use a lower quality setting.
11:19:39.228: error: no frame!
11:19:39.228: [obs-ios-camera-plugin] Decoding queue overloaded. 1315 frames behind. Please use a lower quality setting.
11:19:39.244: [obs-ios-camera-plugin] Decoding queue overloaded. 1315 frames behind. Please use a lower quality setting.
11:19:39.260: [obs-ios-camera-plugin] Decoding queue overloaded. 1314 frames behind. Please use a lower quality setting.
11:19:39.275: [obs-ios-camera-plugin] Decoding queue overloaded. 1314 frames behind. Please use a lower quality setting.
11:19:39.291: [obs-ios-camera-plugin] Decoding queue overloaded. 1313 frames behind. Please use a lower quality setting.
11:19:39.309: [obs-ios-camera-plugin] Decoding queue overloaded. 1313 frames behind. Please use a lower quality setting.
It tells me to use a lower quality setting, but I have a lot of CPU headroom and never had a problem with any other video source.
Without recording, just the preview window, the CPU usage is around 5-7%, but after some time the same error occurs.
from obs-ios-camera-source.
I tried the new version, but still the same problem...
from obs-ios-camera-source.
I've had the same problem. On an old 3GHz Core 2 Extreme Quad with an AMD Radeon HD 6670, I had no significant problems with the old version, but the new version gets farther and farther behind over time. After a couple of minutes, the video from an iPhone 7 would be 15 seconds behind real life, and getting worse. However, on my Dell Precision M7720 (Core i7-7700 HQ with Intel HD Graphics 630 and nVidia Quadro P3000), the problem has disappeared.
from obs-ios-camera-source.
i think that the 2.3.2 update fixes it but i am on windows :(
from obs-ios-camera-source.
This is likely a side effect of the machine that is doing the streaming is doing too much work simultaneously.
Closing this as I have no more to add.
from obs-ios-camera-source.
Also reproducible during streaming with
- OBS Camera 2.5.3
- OBS 25.0.6
- MacBook Pro mid-2015 with macOS 10.15.4
- iPhone 8 with iOS 13.3.1
from obs-ios-camera-source.
This issue is still happening. I do not have the log. CPU & GPU Usage were below 30% but after ~20 minutes a delay became noticeable, and slowly grew worse and worse until the stream crashed.
from obs-ios-camera-source.
Related Issues (20)
- Remote control server not restarting when switching app state HOT 1
- Lost connection HOT 2
- Artifacts Issue
- 2.9.1 doesnt work on Windows HOT 22
- v2.9.1 says Apple Silicon compatible but doesn't work HOT 2
- OBS 28 Compatibility HOT 7
- Constant sutter HOT 4
- IOS Camera is gone OBS 28 HOT 5
- Location of the plugin on MAC HOT 5
- iPhone Pro 14 Pro (max) camera problems on iOS 16.0.1 HOT 1
- Obs - Camera Source NOT WORKING with OBS 29.0.0 HOT 1
- iOS Camera Plugin gone with OBS 29 on Mac HOT 6
- Can't install OBS iOS camera plugin for Mac for OBS v29 HOT 2
- No "iOS Camera" source appears after installation on Mac (OBS 29.0.0) and Camera Source plugin 2.9.4 HOT 16
- OBS 29.1 RC-1 Support? HOT 2
- Windows security deem this plugin not safe to install HOT 1
- No IOS Camera Source for Studio 29.1.3 and plugin 2.9.6 on Mac HOT 1
- OBS Studio 30.0 HOT 2
- I was about to purchase, and I noticed it's not configured for OBS 30? HOT 1
- obs camera image unusable when transmitted via NDI in 4k on iphone
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 obs-ios-camera-source.