Giter Club home page Giter Club logo

Comments (8)

wtsnz avatar wtsnz commented on July 20, 2024

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.

ingostrohmeier avatar ingostrohmeier commented on July 20, 2024

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.

ingostrohmeier avatar ingostrohmeier commented on July 20, 2024

I tried the new version, but still the same problem...

from obs-ios-camera-source.

EveningStarNM avatar EveningStarNM commented on July 20, 2024

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.

CSchelll avatar CSchelll commented on July 20, 2024

i think that the 2.3.2 update fixes it but i am on windows :(

from obs-ios-camera-source.

wtsnz avatar wtsnz commented on July 20, 2024

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.

thSoft avatar thSoft commented on July 20, 2024

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.

Thomas-p2-Elliott avatar Thomas-p2-Elliott commented on July 20, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.