Skip Frames

OvenMediaEngine Enterprise 0.20.2.2-1 버전부터 Skip Frames 기능을 사용할 수 있습니다.

Skip Frames 기능은 불필요한 Frame을 건너뛰어 Preview, 특정 Stream 구간 점검, 분석 Pipeline 경량화 등 전체 Frame 처리가 필요하지 않은 작업에서 처리량과 시간을 줄이는 데 활용되는 Frame Sampling Filter입니다.

Skip Frames 활성화하기

Skip Frames 기능은 아래와 같이 Server.xml<OutputProfiles><OutputProfile><Encodes>에서 설정할 수 있습니다:

<Server>
    ...
    <OutputProfiles>
        ...
        <OutputProfile>
        ...
            <Encodes>
                <Video>
                    <Name>h264_1080</Name>
                    <Codec>h264</Codec>
                    <Bitrate>7000000</Bitrate>
                    <Width>3840</Width>
                    <Height>2160</Height>
                    <!--
                    SkipFrames configuration:
                    
                    -1 : Disable frame skipping (no frames are dropped).
                    
                    0 : Enable automatic frame skipping.
                        The number of frames to drop is dynamically calculated
                        based on the current queue state and system load.
                        
                    1 ~ 120 :
                        Enable fixed-ratio frame skipping.
                        Frames are dropped according to the configured value.
                        For example:
                            - 1 : Drop 1 frame out of every 2 frames
                            - 2 : Drop 2 frames out of every 3 frames
                            - N : Drop N frames out of every (N + 1) frames
                            
                        The maximum allowed value is 120.
                    --> 
                    <SkipFrames>1</SkipFrames>
                </Video>     
            </Encodes>
        </OutputProfiles>
        ...
    </OutputProfiles>
    ...
</Server>
Value
Input Range
Description

-1

-1

Skip Frames 기능을 비활성화 합니다 (Disable).

  • Default 설정입니다.

0

0

Skip Frames 기능이 활성화 되고, System 부하나 대기 Queue 적체량에 따라 Skip되는 Frame 수를 동적으로 조정합니다 (Auto).

N

1~120

Skip Frames 기능이 활성화 되고, 설정된 값 (N)에 따라 고정된 비율로 Frame을 Skip합니다.

고정 비율: 입력된 (N+1) Frame 중 N개를 Skip하고 1개를 처리 (출력)합니다.

  • 예) <SkipFrames>2</SkipFrames>는 입력된 3개의 Frame 중 2개의 Frame을 Skip합니다.

Last updated