# Skip Frames

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

## Skip Frames 활성화하기

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

```xml
<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>
```

<table><thead><tr><th width="154" align="center">Value</th><th width="159.5555419921875" align="center">Input Range</th><th>Description</th></tr></thead><tbody><tr><td align="center">-1</td><td align="center">-1</td><td><p>Skip Frames 기능을 비활성화 합니다 (Disable).</p><ul><li><mark style="color:yellow;">Default 설정입니다.</mark></li></ul></td></tr><tr><td align="center">0</td><td align="center">0</td><td>Skip Frames 기능이 활성화 되고, System 부하나 대기 Queue 적체량에 따라 Skip되는 Frame 수를 동적으로 조정합니다 (Auto).</td></tr><tr><td align="center">N</td><td align="center">1~120</td><td><p>Skip Frames 기능이 활성화 되고, 설정된 값 (N)에 따라 고정된 비율로 Frame을 Skip합니다.</p><p></p><p><mark style="color:yellow;"><strong>고정 비율:</strong> 입력된 (N+1) Frame 중 N개를 Skip하고 1개를 처리 (출력)합니다.</mark></p><ul><li>예) <code>&#x3C;SkipFrames>2&#x3C;/SkipFrames></code>는 입력된 3개의 Frame 중 2개의 Frame을 Skip합니다.</li></ul></td></tr></tbody></table>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://ovenmediaengine-enterprise.gitbook.io/guide/ko-kr/features/transcoding-and-processing/skip-frames.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
