Read the embedcenter.st player's disguised streams: a JSON playlist of PNG-packed video #68
Labels
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
cmoriarty/sports-breaker#68
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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-sportsCs/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
.m3u8request. 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:/tv/verified.Found by #66; recorded in
docs/stream-sources.md(2026-10-31).The format, observed 2026-10-31
embedcenter.st/embed/chN.php→embedcenter.st/embed/hls_co.phpwithcdn-delivery.js→fetchofedgestream3.pro/sh/access/<token>/cdn/hls/<id>.json, every 5 s or so. Referer and Origin arehttps://embedcenter.st/. The.m3u8URL written in the page's script answers 403.schema_version1,stream_id,epoch,playlist("live.m3u8"),sequence,published_at,expires_at(33 s later),target_duration11, andsegments. Each segment is{id: "12684_2043.ts", sn, cc, duration: 10.01, url, pts}; four were listed.p16-common-sign.tiktokcdn.com(x-expiresabout 5 h ahead), served asimage/png, about 4.9 MB, 1024×1616 RGB.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.<hls_co URL>&grant=1on a timer.The work
schema_versionandsegments), with the headers its request carried.ccbeing a discontinuity.TIKTIKPXstays a decoy. Some earlier "segment is a PNG image" refusals were probably this player.grant=1is the better path, if it's simple.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):https://embedcenter.st/.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.
Closing: deployed 2026-10-31 18:18 UTC (PR #70, merged as
074a7dd), and seen working on production.NC State vs. California:
edgestream3.pro/.../*.json, the disguised playlist, at 1280×720, 29.97 fps.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=1renewal is worth adding if a lapse is seen to cost a stall.