Question / Help Glitching Media Source / VLC Source Audio

GamerMaurizio

New Member
Hi! I encountered a problem while trying to add a video (with audio) as a media source in an empty scene to use as an intro (OBS Studio x64): the video plays flawlessly but the audio sounds just like a drill (completely glitched and at an exaggerated volume). I tried to use the vlc source as well, and I even tried to play two sources simultaneously, one with just the video, and one with an mp3 rendered out of the main one, but the audio still does the same thing. It happens to work sometimes if I remove the source then proceed to add it again and record for some seconds but if I stop, then start again it starts to glitch.

Edit: Tried with faster presets thinking it was an encoding problem, but no, same things happen with a 1000 bitrate x264 veryfast recording
 

Attachments

  • 2016-09-05 20-23-22.txt
    15.2 KB · Views: 63

legendaryladman

New Member
Hello,

I am having a simular issue. What i did was download a current version of VLC player. The audio is not skipping anymore, however, it also wont play the audio to the stream anymore.
 

RytoEX

Forum Admin
Forum Moderator
Developer
Audio sounding like a drill, as you put it, is usually indicative of a maxed out CPU. Have you checked your CPU usage when this happens? I mean overall system usage, not just OBS Studio. Does it still happen in a completely fresh scene collection by itself when nothing else is running in the background?
 

GamerMaurizio

New Member
The scene I'm trying to use is completely empty, it happens even if I try to record a simple mp3.
OBS's cpu usage never goes above 15% even while recording/streaming (I don't think my i7 4770 is the problem, i was thinking about something with the bitrates or the buffer size, but I tried everything)

EDIT: Tried to add the video to an empty OBS Classic scene, and it works perfectly there, but, well, I really need it on the better Studio version
 
Last edited:

GamerMaurizio

New Member
Hello,

I am having a simular issue. What i did was download a current version of VLC player. The audio is not skipping anymore, however, it also wont play the audio to the stream anymore.

I just reinstalled 2.2.4 version of VLC, which was already updated on my pc, and tried with a random mp3, same thing sadly
 

RytoEX

Forum Admin
Forum Moderator
Developer
The scene I'm trying to use is completely empty, it happens even if I try to record a simple mp3.
OBS's cpu usage never goes above 15% even while recording/streaming (I don't think my i7 4770 is the problem, i was thinking about something with the bitrates or the buffer size, but I tried everything)

EDIT: Tried to add the video to an empty OBS Classic scene, and it works perfectly there, but, well, I really need it on the better Studio version

Actually, I suggested that you try it in a fresh scene collection. OBS Studio sources are global, so any source in any scene within the same scene collection could affect things throughout that scene collection.

You mention OBS Studio CPU usage, but I mentioned overall system CPU usage. If the CPU maxes out, the audio buzzes. I reliably reproduced this effect about a month ago. If a single core maxed out, and the audio source is running a process/thread on that core, then it may exhibit the same buzz. Someone else can correct me on this if they know better. I know a 100% utilized CPU will do this, but I'm not totally sure about a maxed core.

That said, you do have some things in your log that are of interest upon closer examination.
All of your audio sample rates are set to 48KHz. Did you do that intentionally, or was it automatically set that way? You could try setting them to 44.1KHz to see if that makes a difference.

Code:
20:24:26.705: Output 'adv_file_output': Number of skipped frames due to encoding lag: 10 (1.6%)
Your encoder is skipping frames.

Code:
20:24:05.586: [Media Foundation encoder]: SetCodecProperty(codecApi, CODECAPI_AVEncCommonLowLatency, lowLatency) failed, Parametro non corretto. (0x80070057)
20:24:05.586: [Media Foundation encoder]: SetCodecProperty(codecApi, CODECAPI_AVEncMPVDefaultBPictureCount, UINT32(bFrames)) failed, Parametro non corretto. (0x80070057)
20:24:05.586: [Media Foundation encoder]: SetCodecProperty(codecApi, CODECAPI_AVEncVideoEncodeQP, UINT64(qp.Pack(true))) failed, Parametro non corretto. (0x80070057)
20:24:05.586: [Media Foundation encoder]: SetCodecProperty(codecApi, CODECAPI_AVEncVideoEncodeFrameTypeQP, UINT64(qp.Pack(false))) failed, Parametro non corretto. (0x80070057)
Since you said that also you experience this problem when your encoder is set to x264, this might not be related, but it does stand out. You're using the Media Foundation NVENC, which was deprecated in 0.14.0. I'm not entirely sure what causes these specific errors. Have you considered trying the newer "NVENC H.264" option instead of "NVIDIA NVENC H.264 Encoder (Media Foundation)"? Please note, that you may lose the deprecated NVENC if you exit OBS Studio with something else selected.

What Nvidia drivers are you using?


Try as I might, I have been unable to replicate your issue, even after largely duplicating your settings on a system with an i5-3570K and a GTX 760. I've attached a log to show my latest attempt to replicate your issue. I haven't tried to max the CPU in my attempts, but it would be trivial to do. If you have a video sample with audio exhibiting the issue, that may help us.
 

Attachments

  • 2016-09-10 05-46-53.txt
    13.5 KB · Views: 14

GamerMaurizio

New Member
Yea, I too saw that that profile still uses the deprecated nvidia encoder, I got another one that uses the updated one. Nvidia drivers are updated at the latest version with the GeForce Experience utility tool (just checked if there were other updates: negative). The 48KHz decision is intentional, all my inputs and outputs go at the same rate. I'm going to try with 44.1khz, then proceed with x264 and will upload a very tiny video showing the issue. I don't really think it's a cpu problem, because as I have multiple tracks the ones in which the media source doesn't transmit (the mic track, for example) have no issues at all (if I mute the buzzing track where the source trasmits, I can hear the other tracks perfectly in Vegas and in Premiere)
 

GamerMaurizio

New Member
Ok, so, I made a new scene collection and simply put the video up, i recorded with the NVENC profile (not the deprecated one) and it works (didn't change rate so still 48khz). What could be the problem? Too many sources in the other collection? Or did the settings got corrupted in any way (I'm not even sure if this is possible)

EDIT: Tried by readding the source for the 9128532th time to the old scene collection and, well, it works! I just don't know what's happening ahahaha, it even works with the deprecated nvenc profile

EDIT 2: Nevermind, after leaving it for 2 minutes and trying again, the audio started glitching more and more, now it just cuts long parts (im uploading this)
 
Last edited:

RytoEX

Forum Admin
Forum Moderator
Developer
Deprecated NVENC after some minutes (old scene collection): https://www.dropbox.com/s/2ciqgww84huph7e/Deprecated NVENC.mp4?dl=0

New NVENC right after the one above: https://www.dropbox.com/s/86ojqs06avlr8dc/New NVENC.mp4?dl=0

I don't hear any audio in these clips except for perhaps some breathing near the end of the second clip.
Oh, it's in track 3. Are you loading the file off of a slow device/drive, or one that's burdened at the time of recording? How big is the file? I assume that the file itself plays fine in external players outside of OBS Studio when you're not recording. How about in an external player while you are recording?


Given that you got it to work at least once, I'm not really sure what's going on anymore. =/ If anyone else has any bright ideas, I'm all ears.
 

GamerMaurizio

New Member
I don't hear any audio in these clips except for perhaps some breathing near the end of the second clip.
Oh, it's in track 3. Are you loading the file off of a slow device/drive, or one that's burdened at the time of recording? How big is the file? I assume that the file itself plays fine in external players outside of OBS Studio when you're not recording. How about in an external player while you are recording?


Given that you got it to work at least once, I'm not really sure what's going on anymore. =/ If anyone else has any bright ideas, I'm all ears.

That's something I was thinking about some minutes ago (what a coincidence), I'm gonna try to see tomorrow if the Y: drive is left asleep in my power management settings (in fact, I'm thinking the "encoding overload" error message I see the first two seconds of recording/streaming of any source is caused by that, because it never appears during the recording session, even after hours and hours). No by the way, the Y: drive is only used to backup uploaded videos and to record so it's not burdened by anything else. I'm also gonna try to view the video while recording, didn't think about that, the file I used in the last try was a compressed version of the original (74 gb original avi rendered lossless from after effects -> re-rendered in vegas and now it's at around 340 mb).

Thank you so much for your attention anyway, I really appreciate the fact you're helping

EDIT: Oh, I didn't actually got it to work once, as it started perfectly fine but when I first stopped recording and then restarted it the clip was at about -50 secs until the end (I had left obs and the source open while I was checking the first recorded track on vegas), and that's when I started seeing the obs's mixer decibel bar of the source was stuttering, instead of the others that were going fine (well, only the mic was up)
 
Top