Question / Help Key Interval Question

Rleeson85

Member
OK so I was talking to someone before about this, I stream on youtube and it asks for a key interval every 2 seconds

I was told to use the Custom Settings and use the code keyint=120
which is x2 of my FPS which I am now attempting to do 60fps (hoping it goes well)
anyway I recently when I stream on youtube on my error reports on youtube I have allot of "unknown errors" stream health stays fine but I watch the stream myself and what it does is it seems as if the stream dies and the play screen on YT goes to static and says "error occurred" you can refresh and its back but it happened a few times. I have no idea the cause of this tho?

anyway I am going to test and make sure that is the correct way to insert a keyint as i read here its not?
http://mewiki.project357.com/wiki/X264_Settings

it says something like this --keyint and --intra-refresh
so I want to make sure what I need to put for a Key Interval every 2 seconds when I am streaming say 30fps & 60 FPS (incase 60 dont work out)

thanks so much and keep up the great work
as for that error issue if anyone has any ideas on it please let me know
 

dodgepong

Administrator
Community Helper
A keyint of 120 for 60fps is correct if you want one keyframe every 2 seconds.

What exactly are the errors YouTube is giving you? Do they support 60FPS?

Do you think you could post your log? viewtopic.php?f=6&t=97
 

Lain

Forum Admin
Lain
Forum Moderator
Developer
I'm going to put in a maximum* keyframe interval adjuster in there actually (in seconds), and probably am going to have the maximum keyframe interval default at some arbitrary value. Right now it just defaults to x264's default value of 250 frames.

* edit: maximum keyframe interval -- apologies
 

R1CH

Forum Admin
Developer
The default is a maximum of 250, x264 places a keyframe when it determines it would be best for compression otherwise (eg scene cuts). Forcing keyframes reduces quality but also makes the stream more tolerant to frame drop / less buffering on start.
 

Krazy

Town drunk
To be honest, I'm not actually sure YouTube supports 60fps streaming. I know all their videos are re-encoded to 30fps.
 

Rleeson85

Member
well I was not streaming at 60fps during these errors, sorry for late reply been really busy
during these issues I was streaming at 30fps and yes Youtube suggests 30fps not 60 so I will continue to use that

Great to hear this will be added,
Also I see you replied Yes thats correct BUT the way I enter it is like this yes? keyint=60

As for the errors well youtube only shows this as unknown errors, I will try again with the latest update of OBS and I will get the log aswell if it keeps happening.
thanks so much
 

dodgepong

Administrator
Community Helper
Like this:

axQK2jz.png
 

Rleeson85

Member
dodgepong said:
A keyint of 120 for 60fps is correct if you want one keyframe every 2 seconds.

What exactly are the errors YouTube is giving you? Do they support 60FPS?

Do you think you could post your log? viewtopic.php?f=6&t=97

OK so I streamed again today, not as many errors as before but it still has a few.
here is a screen shot of what youtube shows for the errors, there are some that say it failed to start, others are unknown or buffering.
3129qfp.jpg


and here is my log
Code:
------------------------------------------
------------------------------------------
Open Broadcaster Software v0.51b - 32bit (´・ω・`)
-------------------------------
CPU Name: Intel(R) Core(TM) i7-3770 CPU @ 3.40GHz
CPU Speed: 3392MHz
Physical Memory:  4095MB Total, 3657MB Free
stepping id: 9, model 10, family 6, type 0, extmodel 1, extfamily 0, HTT 1, logical cores 8, total cores 4
monitor 1: pos={0, 0}, size={1920, 1080}
monitor 2: pos={1920, 0}, size={1920, 1080}
Windows Version: 6.1 Build 7601 S
Aero is Enabled
------------------------------------------
Adapter 1
  Video Adapter: NVIDIA GeForce GT 545
  Video Adapter Dedicated Video Memory: 1025966080
  Video Adapter Shared System Memory: 2899445760
------------------------------------------
Adapter 2
  Video Adapter: Intel(R) HD Graphics 4000
  Video Adapter Dedicated Video Memory: 67108864
  Video Adapter Shared System Memory: 1711276032
=====Stream Start: 2013-05-06, 15:54:53===============================================
  Multithreaded optimizations: On
  Base resolution: 1280x720
  Output resolution: 1280x720
------------------------------------------
Loading up D3D10...
Playback device Default
------------------------------------------
Using desktop audio input: Speakers (Realtek High Definition Audio)
------------------------------------------
Using auxilary audio input: Microphone (Yeti Stereo Microphone)
------------------------------------------
Audio Encoding: AAC
    bitrate: 128
------------------------------------------
    device: Microsoft LifeCam Cinema,
    device id \\?\usb#vid_045e&pid_075d&mi_00#7&285156aa&0&0000#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\global,
    chosen type: YUY2, usingFourCC: false, res: 1280x720 - 1280x720, frameIntervals: 333333-666666, fourCC: 'YUY2'
    audio device: Microphone (Yeti Stereo Microph,
    audio device id (null),

Using directshow input
------------------------------------------
    device: Elgato Game Capture HD,
    device id {39F50F4C-99E1-464a-B6F9-D605B4FB5918},
    chosen type: UYVY, usingFourCC: false, res: 1280x720 - 1280x720, frameIntervals: 333333-333333, fourCC: 'UYVY'

    device audio info - bits per sample: 16, channels: 2, samples per sec: 48000, block size: 4
Using directshow input
Using custom x264 settings: "keyint=60"
------------------------------------------
Video Encoding: x264
    fps: 30
    width: 1280, height: 720
    preset: faster
    CBR: yes
    CFR: no
    max bitrate: 2500
------------------------------------------
Syncing audio to video time (WARNING: you should not be doing this if you are just having webcam desync, that's a separate issue)
SO_SNDBUF was at 261360
SO_SNDBUF is now 65536
RTMPPublisher::BufferedSend: Increasing socket send buffer to ISB 262144
------------------------------------------
------------------------------------------
++++++++++++++++++++++++++++++++++++++++++++++++++++++
  New Scene
++++++++++++++++++++++++++++++++++++++++++++++++++++++
  New Scene
++++++++++++++++++++++++++++++++++++++++++++++++++++++
  New Scene
++++++++++++++++++++++++++++++++++++++++++++++++++++++
  New Scene
++++++++++++++++++++++++++++++++++++++++++++++++++++++
  New Scene
++++++++++++++++++++++++++++++++++++++++++++++++++++++
  New Scene
------------------------------------------
------------------------------------------
------------------------------------------
    device: Microsoft LifeCam Cinema,
    device id \\?\usb#vid_045e&pid_075d&mi_00#7&285156aa&0&0000#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\global,
    chosen type: YUY2, usingFourCC: false, res: 1280x720 - 1280x720, frameIntervals: 333333-666666, fourCC: 'YUY2'
    audio device: Disable,
    audio device id Disabled,

++++++++++++++++++++++++++++++++++++++++++++++++++++++
  New Scene
Total frames rendered: 303459, number of frames that lagged: 13 (0.00%) (it's okay for some frames to lag)
RTMPPublisher::SocketLoop: Aborting due to bStopping
Number of times waited to send: 190, Waited for a total of 672411 bytes
Number of b-frames dropped: 1136 (0.37%), Number of p-frames dropped: 1339 (0.44%), Total 2475 (0.82%)
=====Stream End: 2013-05-06, 18:43:35=================================================

Profiler results:

==============================================================
frame - [100%] [avg time: 4.651 ms] [avg calls per frame: 1] [children: 84.7%] [unaccounted: 15.3%]
| scene->Preprocess - [45.1%] [avg time: 2.097 ms] [avg calls per frame: 1]
| video encoding and uploading - [39.6%] [avg time: 1.841 ms] [avg calls per frame: 1] [children: 39.1%] [unaccounted: 0.452%]
| | CopyResource - [0.301%] [avg time: 0.014 ms] [avg calls per frame: 0]
| | conversion to 4:2:0 - [0.043%] [avg time: 0.002 ms] [avg calls per frame: 0]
| | call to encoder - [38.1%] [avg time: 1.774 ms] [avg calls per frame: 0]
| | sending stuff out - [0.645%] [avg time: 0.03 ms] [avg calls per frame: 0]
==============================================================
 

Krazy

Town drunk
When people watch your stream are there any issues? It doesn't appear that the errors shown by YouTube are really enough to impact anything. Random oddities shouldn't be something to worry about too much, unless it is causing issues on the actual stream.
 

Rleeson85

Member
well on this one, I did not have any complaints other then at one point all of the viewers dropped to zero and they said the stream cut off.

other streams tho, this happens all the time, and it says unknown error.
I will do another stream today if all goes planned and I will post back with my report and see how it goes.
 
Top