Transcoder

Transcoder is a tool used to convert data from one format to another, particularly in the context of multimedia files like audio, video, or images. It helps in converting media from one codec or container format to another, enabling compatibility with different devices, platforms, or media players.

GraphQL Gateway

All Transcoder operations go through a single GraphQL endpoint:

https://cloud-gateway.sabay.com/graphql

Authentication

Every request must carry both headers (see Authentication):

HeaderValue
service-codecloud_user
AuthorizationBearer {token}

How the console uses this service

  • The Transcoder page (/storage/transcoder, src/pages/storage/transcoder.tsx) finds the user's cloud_s3_transcoder subscription with sb_listSubscription (see Subscriptions), then calls s3_listTranscoder with pager: { limit: 1, page: 1 } only to show pagination.total ("Total Transcoders"). The query is skipped when the subscription is PENDING_SUSPEND or SUSPENDED.
  • Subscription cards (src/components/subscriptions/service-info.tsx) call s3_listTranscoder with pager: { page: 1, limit: 3 } to show transcoder names as badges.
  • s3_listTranscoder is the only transcoder operation the UI calls. "Add Transcoder" opens {live_stream_console_url}/dashboard/transcoder/create/{subscriptionId} and the dashboard card links to {live_stream_console_url}/dashboard/transcoder. live_stream_console_url is window.RUNTIME_STREAM_CONSOLE_URL, defaulting to https://stream-dash.testing.sabay.com (src/constants/constants.ts). The same console hosts the Streaming and Live Streaming dashboards.

Real-time events

The project defines the container_transcoderActionReceived subscription (src/modules/run-app/subscription/useTranscoderActionReceived.ts), but the UI does not currently subscribe to it. See Real-time Events.

Reference

SectionContents
TranscodersCreate, list, inspect, update and remove transcoders; look a transcoder up by bucket
History & Streaming URLsTranscode history, streaming URL generation, and deleting or reprocessing transcoded videos