Read the embedcenter.st player's disguised streams: a JSON playlist of PNG-packed video #68

Closed
opened 2026-10-31 13:43:50 -04:00 by cmoriarty · 2 comments
Owner

What happens

Many stream sites don't host their own video. givemestreams.cfd, buff-streams.buzz, resports.cfd, s2watch.cyou, iframely.lol, ihdstreams.top, powerstream /center/ and bally-sports Cs/ all embed the same player network, embedcenter.st/embed/chN.php. That network delivers each channel in one of two ways:

  • hls.php: an ordinary .m3u8, which we read.
  • hls_co.php, the disguised mode: the playlist is JSON, and each 10 s chunk of video is a PNG image on TikTok's image CDN with the MPEG-TS packed inside.

Our reader waits for a .m3u8 request. In the disguised mode none comes, so it answers "no stream found" for a page that plays fine. When a channel is in that mode, every front end of it fails at once:

  • Chelsea vs. Man Utd (2026-10-31): givemestreams, buff-streams, resports, s2watch and iframely failed on every check for two and a half hours, while topsurge, iohit, shd247 and powerstream /tv/ verified.
  • NC State vs. California: seven front ends failed together.

Found by #66; recorded in docs/stream-sources.md (2026-10-31).

The format, observed 2026-10-31

  • The chain: the front end's page → embedcenter.st/embed/chN.php → embedcenter.st/embed/hls_co.php with cdn-delivery.js → fetch of edgestream3.pro/sh/access/<token>/cdn/hls/<id>.json, every 5 s or so. Referer and Origin are https://embedcenter.st/. The .m3u8 URL written in the page's script answers 403.
  • The JSON: schema_version 1, stream_id, epoch, playlist ("live.m3u8"), sequence, published_at, expires_at (33 s later), target_duration 11, and segments. Each segment is {id: "12684_2043.ts", sn, cc, duration: 10.01, url, pts}; four were listed.
  • The segments: signed URLs on p16-common-sign.tiktokcdn.com (x-expires about 5 h ahead), served as image/png, about 4.9 MB, 1024×1616 RGB.
  • Unpacking: the PNG's RGB pixel bytes begin with TIKTIKPX, then a big-endian 4-byte length, then gzip, which unpacks to clean MPEG-TS. One 10 s segment came out as H.264 1280×720 at 29.97 fps with AAC. With Pillow, already a dependency, it takes 0.04 s per segment and matches the hand-decoded bytes exactly.
  • The token: the one in the access path lasts about 3 h. The page renews it from <hls_co URL>&grant=1 on a timer.

The work

  1. The reader: take the JSON playlist from the page's traffic as the stream (by its response: JSON with schema_version and segments), with the headers its request carried.
  2. The playlist: the channel, the check and the re-check read the JSON as a media playlist: sequence, target duration, and segments with their durations and URLs, a change of cc being a discontinuity.
  3. The segments: unpack a PNG to TS before the decoy check and the audio and video steps. A PNG that doesn't carry TIKTIKPX stays a decoy. Some earlier "segment is a PNG image" refusals were probably this player.
  4. The token: a failed JSON fetch already sends the channel to recovery, whose fresh read of the same link brings a new token. Renewing before expiry with grant=1 is the better path, if it's simple.
  5. Tests from a cut-down copy of the saved JSON and segment.
  6. A live check on a game whose front ends use the disguised mode.
## What happens Many stream sites don't host their own video. givemestreams.cfd, buff-streams.buzz, resports.cfd, s2watch.cyou, iframely.lol, ihdstreams.top, powerstream `/center/` and bally-sports `Cs/` all embed the same player network, `embedcenter.st/embed/chN.php`. That network delivers each channel in one of two ways: - **`hls.php`:** an ordinary `.m3u8`, which we read. - **`hls_co.php`, the disguised mode:** the playlist is JSON, and each 10 s chunk of video is a PNG image on TikTok's image CDN with the MPEG-TS packed inside. Our reader waits for a `.m3u8` request. In the disguised mode none comes, so it answers "no stream found" for a page that plays fine. When a channel is in that mode, every front end of it fails at once: - **Chelsea vs. Man Utd (2026-10-31):** givemestreams, buff-streams, resports, s2watch and iframely failed on every check for two and a half hours, while topsurge, iohit, shd247 and powerstream `/tv/` verified. - **NC State vs. California:** seven front ends failed together. Found by #66; recorded in `docs/stream-sources.md` (2026-10-31). ## The format, observed 2026-10-31 - **The chain:** the front end's page → `embedcenter.st/embed/chN.php` → `embedcenter.st/embed/hls_co.php` with `cdn-delivery.js` → `fetch` of `edgestream3.pro/sh/access/<token>/cdn/hls/<id>.json`, every 5 s or so. Referer and Origin are `https://embedcenter.st/`. The `.m3u8` URL written in the page's script answers 403. - **The JSON:** `schema_version` 1, `stream_id`, `epoch`, `playlist` ("live.m3u8"), `sequence`, `published_at`, `expires_at` (33 s later), `target_duration` 11, and `segments`. Each segment is `{id: "12684_2043.ts", sn, cc, duration: 10.01, url, pts}`; four were listed. - **The segments:** signed URLs on `p16-common-sign.tiktokcdn.com` (`x-expires` about 5 h ahead), served as `image/png`, about 4.9 MB, 1024×1616 RGB. - **Unpacking:** the PNG's RGB pixel bytes begin with `TIKTIKPX`, then a big-endian 4-byte length, then gzip, which unpacks to clean MPEG-TS. One 10 s segment came out as H.264 1280×720 at 29.97 fps with AAC. With Pillow, already a dependency, it takes 0.04 s per segment and matches the hand-decoded bytes exactly. - **The token:** the one in the access path lasts about 3 h. The page renews it from `<hls_co URL>&grant=1` on a timer. ## The work 1. **The reader:** take the JSON playlist from the page's traffic as the stream (by its response: JSON with `schema_version` and `segments`), with the headers its request carried. 2. **The playlist:** the channel, the check and the re-check read the JSON as a media playlist: sequence, target duration, and segments with their durations and URLs, a change of `cc` being a discontinuity. 3. **The segments:** unpack a PNG to TS before the decoy check and the audio and video steps. A PNG that doesn't carry `TIKTIKPX` stays a decoy. Some earlier "segment is a PNG image" refusals were probably this player. 4. **The token:** a failed JSON fetch already sends the channel to recovery, whose fresh read of the same link brings a new token. Renewing before expiry with `grant=1` is the better path, if it's simple. 5. **Tests** from a cut-down copy of the saved JSON and segment. 6. **A live check** on a game whose front ends use the disguised mode.
Author
Owner

Read live with the app's own code, 2026-10-31 ~18:30 UTC (branch more-working-links, from the Mac, on buff-streams.buzz /ss-72/c16.php, a disguised channel):

  • The reader: found the JSON playlist in 3.0 s, with Referer https://embedcenter.st/.
  • The check: verified it at 1280×720, 29.97 fps, in 12.3 s, which includes its 10 s wait for the sequence to advance. The re-check, 12 s later, passed.
  • The segments: two downloads came back as video/mp2t (4.6 MB and 3.4 MB), each about 10 s of H.264 1280×720 at 29.97 fps with AAC, by ffprobe.

Found on the first live read and fixed: Playwright leaves the Referer out of a request's plain headers, so the stream went out with the page's URL and the playlist answered 403. The reader now takes it from the request's full headers, or else the origin of the frame that fetched it.

**Read live with the app's own code, 2026-10-31 ~18:30 UTC** (branch `more-working-links`, from the Mac, on buff-streams.buzz `/ss-72/c16.php`, a disguised channel): - **The reader:** found the JSON playlist in 3.0 s, with Referer `https://embedcenter.st/`. - **The check:** verified it at 1280×720, 29.97 fps, in 12.3 s, which includes its 10 s wait for the sequence to advance. The re-check, 12 s later, passed. - **The segments:** two downloads came back as `video/mp2t` (4.6 MB and 3.4 MB), each about 10 s of H.264 1280×720 at 29.97 fps with AAC, by ffprobe. **Found on the first live read and fixed:** Playwright leaves the Referer out of a request's plain headers, so the stream went out with the page's URL and the playlist answered 403. The reader now takes it from the request's full headers, or else the origin of the frame that fetched it.
Author
Owner

Closing: deployed 2026-10-31 18:18 UTC (PR #70, merged as 074a7dd), and seen working on production.

NC State vs. California:

  • The check (18:26:45 UTC): production verified givemestreams.cfd. The readiness snapshot holds it as edgestream3.pro/.../*.json, the disguised playlist, at 1280×720, 29.97 fps.
  • A tune, read the way a media server reads it: the first playlist came after 4.1 s, and ffmpeg read 30 s of 1280×720 video with audio. The card read Healthy, with a 19 s buffer and no errors.

Left for later: the access token (about 3 h) is renewed by the channel's recovery, which re-reads the link. The page's own &grant=1 renewal is worth adding if a lapse is seen to cost a stall.

Closing: deployed 2026-10-31 18:18 UTC (PR #70, merged as 074a7dd), and seen working on production. **NC State vs. California:** - **The check (18:26:45 UTC):** production verified givemestreams.cfd. The readiness snapshot holds it as `edgestream3.pro/.../*.json`, the disguised playlist, at 1280×720, 29.97 fps. - **A tune, read the way a media server reads it:** the first playlist came after 4.1 s, and ffmpeg read 30 s of 1280×720 video with audio. The card read Healthy, with a 19 s buffer and no errors. **Left for later:** the access token (about 3 h) is renewed by the channel's recovery, which re-reads the link. The page's own `&grant=1` renewal is worth adding if a lapse is seen to cost a stall.
Sign in to join this conversation.
No labels
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
cmoriarty/sports-breaker#68
No description provided.