Transcoder API는 입력 동영상의 프레임 속도와 지정한 출력 프레임 속도를 고려하여 출력 동영상의 프레임 속도를 계산합니다. frameRate 필드를 사용하여 출력 프레임 속도를 초당 프레임 수(FPS) 단위로 지정합니다. 제공된 frameRate는 항상 120FPS 이하여야 합니다.
제공된 frameRate가 비표준 값이면 소수점 3자리까지 가장 가까운 값으로 반올림됩니다. 예를 들어 값 23.12345는 23.123으로 반올림되고 시간 기준은 1000/23123이 됩니다.
프레임 속도 변환 전략
출력 프레임 속도가 입력 프레임 속도와 일치하지 않는 경우 frameRateConversionStrategy 필드를 사용하여 두 가지 프레임 속도 변환 전략이 지원됩니다. 필드를 다음 중 하나로 설정합니다.
DROP_DUPLICATE: 지정된 출력 프레임 속도와 일치하도록 프레임을 삭제하거나 복제합니다. 정확한 FPS 값을 설정하려면 frameRateConversionStrategy을 이 옵션으로 설정합니다. 또한 작업에 대한 최적화를 사용 중지해야 합니다(optimization를 DISABLED로 설정).
이 옵션을 사용하면 지정된 입력 FPS 값에 대해 정확한 출력 FPS 값을 설정할 수 있습니다.
DOWNSAMPLE: 전략이 지정되지 않은 경우 기본 프레임 속도 변환 전략입니다. N번째 프레임마다 유지합니다. N은 수식에 의해 결정되는 다운샘플링 계수입니다(입력 프레임 속도 / 대상 프레임 속도).
DOWNSAMPLE 옵션의 경우 대상 동영상 프레임 속도는 다음과 같습니다.
대상 프레임 속도가 입력 프레임 속도보다 큰 경우 기본값은 입력 프레임 속도입니다. Transcoder API는 새 동영상 프레임을 만들지 않습니다.
항상 실제 출력 프레임 속도보다 크거나 같습니다. 입력 프레임 속도는 실제 출력 프레임 속도로 나눌 수 있습니다.
DOWNSAMPLE 옵션의 경우 다음 표는 입력 프레임 속도(첫 번째 열)와 대상 프레임 속도(이후 열)를 고려하여 계산된 출력 동영상 프레임 속도를 보여줍니다. 모든 프레임 속도는 FPS로 제공됩니다.
[[["이해하기 쉬움","easyToUnderstand","thumb-up"],["문제가 해결됨","solvedMyProblem","thumb-up"],["기타","otherUp","thumb-up"]],[["이해하기 어려움","hardToUnderstand","thumb-down"],["잘못된 정보 또는 샘플 코드","incorrectInformationOrSampleCode","thumb-down"],["필요한 정보/샘플이 없음","missingTheInformationSamplesINeed","thumb-down"],["번역 문제","translationIssue","thumb-down"],["기타","otherDown","thumb-down"]],["최종 업데이트: 2025-09-04(UTC)"],[],[],null,["# Calculate frame rate\n\nThe Transcoder API calculates the frame rate for the output video given the\nframe rate of the input video and the output frame rate you specify. You specify\nthe output frame rate, in frames per second (FPS), using the\n[`frameRate`](/transcoder/docs/reference/rest/v1/JobConfig#H264CodecSettings.FIELDS.frame_rate)\nfield. The provided\n[`frameRate`](/transcoder/docs/reference/rest/v1/JobConfig#H264CodecSettings.FIELDS.frame_rate)\nmust always be less than or equal to 120 FPS.\n\nIf the provided\n[`frameRate`](/transcoder/docs/reference/rest/v1/JobConfig#H264CodecSettings.FIELDS.frame_rate)\nis a non-standard value, then it is rounded to the closest value with three\ndecimal places. For example, the value 23.12345 is rounded to 23.123 and results\nin a time base of 1000/23123.\n\nFrame rate conversion strategies\n--------------------------------\n\nIn cases where the output frame rate does not match the input frame rate, two\nframe rate conversion strategies are supported using the\n[`frameRateConversionStrategy`](/transcoder/docs/reference/rest/v1/JobConfig#H264CodecSettings.FIELDS.frame_rate_conversion_strategy)\nfield. Set the field to one of the following:\n\n- `DROP_DUPLICATE`: Drops or duplicates frames to match the specified output\n frame rate. To set an exact FPS value, set the `frameRateConversionStrategy`\n to this option. You must also disable optimization for the job (set\n [`optimization`](/transcoder/docs/reference/rest/v1/projects.locations.jobs#Job.FIELDS.optimization)\n to\n [`DISABLED`](/transcoder/docs/reference/rest/v1/projects.locations.jobs#optimizationstrategy)).\n\n With this option, you can set an exact output FPS value for any given input\n FPS value.\n- `DOWNSAMPLE`: The default frame rate conversion strategy if no strategy is\n specified. Keeps every *N* th frame. *N* is the downsample factor that is\n determined by the formula (input frame rate / target frame rate).\n\n For the `DOWNSAMPLE` option, the target video frame rate:\n - Defaults to the input frame rate if the target frame rate is larger than the input frame rate; the Transcoder API does not create new video frames.\n - Is always larger than or equal to the actual output frame rate. The input frame rate is divisible by the actual output frame rate.\n\nFor the `DOWNSAMPLE` option, the following table shows the computed output video\nframe rate given the input frame rate (in the first column) and the target frame\nrate (in subsequent columns). All frame rates are given in FPS."]]