Question / Help OBS Local recoding producing way too many frames? [false]

I have been using OBS's local recording feature as demonstrated by R1CH...

viewtopic.php?f=18&t=2972

But have noticed that for a 25 minute capture the output file had 2,277,870 frames using 'Game Capture' mode!! I initally thought that i must have had the capture frames at 60 or higher, but it was at 30fps so im not sure where these additional frames are coming from??

I have tried capturing the same level with my Micomsoft Xcapture-1 USB3 device and the total frame for the 25 min clip was 33,988 compare that to the 2,277,870 frame i got using OBS local recording!. Any ideas why these additional frame are being produced with OBS
 
Re: OBS Local recoding producing way too many frames??

Damn, no i dont, ill just do another session now quickly and post it up
 

Kharay

Member
Re: OBS Local recoding producing way too many frames??

Well, only do that if you get another odd result, obviously. I mean, if it's a perfectly normal recording the log won't tell us much as far as errors are concerned. ;)
 
Re: OBS Local recoding producing way too many frames??

Heres the logfile, that 6 min clip produced 366792 frames!!!!
 

Attachments

  • 2013-08-10-1242-23.log
    4.5 KB · Views: 36

Kharay

Member
Re: OBS Local recoding producing way too many frames??

Not according to OBS itself:
12:48:54: Total frames rendered: 11053, number of late frames: 2 (0.02%) (it's okay for some frames to be late)
What's going on here? Peculiar phenomenon.
 
Re: OBS Local recoding producing way too many frames??

Kharay said:
Not according to OBS itself:
12:48:54: Total frames rendered: 11053, number of late frames: 2 (0.02%) (it's okay for some frames to be late)
What's going on here? Peculiar phenomenon.

Hmm, well ive use AvsPmod (http://avspmod.github.io/) to edit my captures and that reports the amount of frames, i know that its correct as once ive finished editing and save the file, once loaded up into Ripbot (to encode) it says its going to take over 4 hours to encode a 6 minute clip!!
 
Re: OBS Local recoding producing way too many frames??

It would seem OBS is created a shed load on null frames when it doesnt need to, is there a way to stop it from doing that?
 
Re: OBS Local recoding producing way too many frames??

This is the clip info from Avisynth AvsPmod....

iorf45d6XTlGl.jpg


It looks like OBS is producing 1000 frames for every second of video!!!
 

Lain

Forum Admin
Lain
Forum Moderator
Developer
Re: OBS Local recoding producing way too many frames??

Incorrect, OBS is definitely saving only as many frames as you actually recorded. It's an incorrect measurement by whatever app you're using that's basing it upon the time base of the file rather than the actual output number of frames. These apps expect a constant framerate file, not a variable framerate file. There are no "null" frames in the file output. When using variable frame rate, the time base is set to 1:1000 so that each frame can use milliseconds for each frame's presentation timestamp. Apps will often mistakenly read this as 1000fps with files created with variable framerate. Those apps are probably doing [frame count] = [time base] * [time], instead of actually counting the number of frames in the file. Again, in reality, OBS is not recording more frames per second than what you have it set to.

You can literally open the code and see this for yourself as well. You will see that it's sending only the number of frames that you recorded into the MP4/FLV file generators if you simply increment some variable in the code for every video frame recorded.

If you still don't believe me, you can open the MP4 in a real tool that can actually analyze MP4 files and show you each specific frame's data (such as ISOViewer), and it will actually list all the actual frames in the file. You will see that there are no "null" frames, and that only the approximate number of frames you recorded are actually in the file.
 
Re: OBS Local recoding producing way too many frames? [false

Sounds plausible i guess. It would seem when opening the captured file from OBS into AvsPmod it sees it as a 'DirectShowSource' file (guess as its .mp4 file?). The capture files i get from my capture device are always .avi file and AvsPmod sees these as 'AVISource' files, im guessing this is where the problem is coming from. It would seem AvsPmod doesnt like DirectShowSource based files!?
 

Lain

Forum Admin
Lain
Forum Moderator
Developer
Re: OBS Local recoding producing way too many frames? [false

The mp4 file is generated manually by OBS' own MP4 file writer, which I wrote myself. If your app has problems opening the MP4, it's most likely because it's using variable framerate. Turn on "Use CFR" in advanced, which is constant framerate. Also to note, turning constant framerate on will also should make it display the correct framerate in your applications, typically, rather than it erroneously reading it as 1000.
 
Re: OBS Local recoding producing way too many frames? [false

That worked. Is is a good idea to have CFR enabled for live streams as well?
 

Krazy

Town drunk
Re: OBS Local recoding producing way too many frames? [false

It doesn't hurt to have it enabled, and it may actually help with Twitch.tv reading incorrect keyframe intervals, for example.
 
Top