Repository navigation
Migration Center: video imports default to transcoding: false - #26
Merged
Merged
Conversation
Video Center imports a stream as-is when transcoding is false, and Arc does not charge for importing progressive MP4 or HLS MPEG-2. The type pinned the field to the literal true. It also made useLastUpdated, importPriority and thumbnailTimeInSeconds required literals, although thumbnailTimeInSeconds must be omitted when an inline promo image is sent.
postAns sends transcoding: false for a video when the caller does not set it. Video Center encoding is opt-in with transcoding: true, and Arc charges extra for it. Without it, the stream is imported as-is, and Arc does not charge for importing progressive MP4.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
PostANSPayload.arcAdditionalProperties.video.transcodingis typed as the literaltrue, so every video imported through the SDK asks Video Center to re-encode it, and Arc charges extra for that encoding. Video Center also acceptsfalse, which imports the stream as-is. A progressive MP4 is then copied to Arc's CDN as a single rendition, and Arc does not charge for importing progressive MP4 or HLS MPEG-2 (Video Center migration docs).Verified on the Media24 sandbox (2026-10-13): 5 Brightcove MP4s posted with
transcoding: falsewere published, each as one MP4 rendition whose size matched the source byte for byte.Change
transcoding?: boolean, with the defaultfalseand a doc comment saying thattrueis charged extra.postAnsfills intranscoding: falsefor a video ANS when the caller leaves it unset. An explicittrueorfalseis kept as given, and non-video payloads are not touched.useLastUpdated,importPriorityandthumbnailTimeInSecondsare now optional and no longer literals.thumbnailTimeInSecondsmust be left out when an inlinepromo_items.basicimage is sent.transcoding: truemust now pass it explicitly.true, and an untouched story payload.Build, biome and tests (111) pass.