找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 4944|回复: 37

[iptv信源 资源分享或寻求] 果皮TS切片CODE

[复制链接]
58.220.67.45 换成自己可用的IP即可
  1. <?php
  2.     $channel = empty($_GET['id']) ? "CCTV-xw_4000" : trim($_GET['id']);
  3.     $array = explode("_", $channel);
  4.     $stream = "http://58.220.67.45/vod.rxip.sc96655.com/live/8ne5i_sccn/{$array[0]}_hls_pull/8ne5i_sccn,{$array[0]}_hls_pull_{$array[1]}K/";
  5.     $timestamp = intval((time()-60)/6);
  6.     $current = "#EXTM3U"."\r\n";
  7.     $current.= "#EXT-X-VERSION:3"."\r\n";
  8.     $current.= "#EXT-X-TARGETDURATION:6"."\r\n";
  9.     $current.= "#EXT-X-MEDIA-SEQUENCE:{$timestamp}"."\r\n";
  10.     for ($i=0; $i<6; $i++)
  11.     {
  12.         $current.= "#EXTINF:6,"."\r\n";
  13.         $current.= $stream.rtrim(chunk_split($timestamp, 3, "/"), "/").".ts"."\r\n";
  14.         $timestamp = $timestamp + 1;
  15.     }
  16.     header("Content-Type: text/plain");
  17.     echo $current;
  18. ?>
复制代码

评分

参与人数 4恩山币 +5 收起 理由
boh*** + 1 太厉害了,佩服!
li*** + 2 你好,吴签兄,认识你很高兴!调侃一下、别动气。
amw*** + 1 高手是最无私的
liu43*** + 1 高手就是高手,高手一出手就是不一样的,这个高手是最无私的,值得点赞

查看全部评分

我的恩山、我的无线 The best wifi forum is right here.
前排支持~~~

点评

绝大部份ID都没问题吧,我套上去基本都能看,好象川网导视看不了,是不是你的ID是错的  发表于 2021-12-23 13:05
当然是ID问题。你把不能用的ID私我,我测试一下。  详情 回复 发表于 2021-12-23 12:47
老师,大约有三分之一的台未代理成功,是ID不对吗?改尾数是4000或2000都不成。  发表于 2021-12-23 08:42
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

好久了 还是出来了,这波看几天能死

点评

见光死  详情 回复 发表于 2021-12-24 09:50
老师,大约有三分之一的台未代理成功,是ID不对吗?改尾数是4000或2000都不成。  发表于 2021-12-23 08:42
看来万变不离其宗,其手  详情 回复 发表于 2021-12-23 08:33
大神,为什么我的环境只能播17秒,你那个切片的cctv4k也是,只能播11秒  详情 回复 发表于 2021-12-22 19:52
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

你是好人!
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

好厉害,这个可以播放,好象就CCTV13频道

点评

没有参数 是 加参数就是所有台了  详情 回复 发表于 2021-12-22 18:23
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

  又能吃果了
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

liu4331126 发表于 2021-12-22 18:15
好厉害,这个可以播放,好象就CCTV13频道

没有参数 是  加参数就是所有台了

点评

老师,大约有三分之一的台未代理成功,是ID不对吗?改尾数是4000或2000都不成。  发表于 2021-12-23 08:40
好的,谢谢,可惜我不会加参数  详情 回复 发表于 2021-12-22 18:37
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

大神,你是好人
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

linjz 发表于 2021-12-22 18:23
没有参数 是  加参数就是所有台了

好的,谢谢,可惜我不会加参数
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

可以播放ffplay显示
http @ 0000015d9ecabdc0] Opening 'http://127.0.0.1/cctv.php' for reading
[hls @ 0000015d999cb1c0] keepalive request failed for 'http://127.0.0.1/cctv.php' with error: 'Error number -10053 occurred' when parsing playlist
[hls @ 0000015d999cb1c0] Skip ('#EXT-X-VERSION:3')
[http @ 0000015d999ef880] Opening 'http://58.220.67.45/vod.rxip.sc96655.com/live/8ne5i_sccn/CCTV-xw_hls_pull/8ne5i_sccn,CCTV-xw_hls_pull_4000K/273/361/568.ts' for reading
[http @ 0000015d999d4440] Opening 'http://58.220.67.45/vod.rxip.sc96655.com/live/8ne5i_sccn/CCTV-xw_hls_pull/8ne5i_sccn,CCTV-xw_hls_pull_4000K/273/361/569.ts' for reading
[http @ 0000015d9febbb40] Opening 'http://127.0.0.1/cctv.php' for reading
[hls @ 0000015d999cb1c0] keepalive request failed for 'http://127.0.0.1/cctv.php' with error: 'Error number -10053 occurred' when parsing playlist
[hls @ 0000015d999cb1c0] Skip ('#EXT-X-VERSION:3')
[http @ 0000015d999ef880] Opening 'http://58.220.67.45/vod.rxip.sc96655.com/live/8ne5i_sccn/CCTV-xw_hls_pull/8ne5i_sccn,CCTV-xw_hls_pull_4000K/273/361/570.ts' for reading
[http @ 0000015d999d4440] Opening 'http://58.220.67.45/vod.rxip.sc96655.com/live/8ne5i_sccn/CCTV-xw_hls_pull/8ne5i_sccn,CCTV-xw_hls_pull_4000K/273/361/571.ts' for reading
[http @ 0000015da0ae90c0] Opening 'http://127.0.0.1/cctv.php' for reading
[hls @ 0000015d999cb1c0] keepalive request failed for 'http://127.0.0.1/cctv.php' with error: 'Error number -10053 occurred' when parsing playlist
[hls @ 0000015d999cb1c0] Skip ('#EXT-X-VERSION:3')
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

php?id=ys4Kcq_2000

点评

谢谢你,可以了  详情 回复 发表于 2021-12-22 19:02
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

好神奇呀,怎么加参数呀

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

×

点评

6K的4K电影?呵呵呵好假  详情 回复 发表于 2022-12-9 00:58
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报


谢谢你,可以了
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

wjxgzz 发表于 2021-12-22 18:04
好久了 还是出来了,这波看几天能死

大神,为什么我的环境只能播17秒,你那个切片的cctv4k也是,只能播11秒
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

感谢分享,收藏备用!
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

有疑问请添加管理员QQ86788181|手机版|小黑屋|Archiver|恩山无线论坛(常州市恩山计算机开发有限公司版权所有) ( 苏ICP备05084872号 )

GMT+8, 2024-4-27 01:58

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

| 江苏省互联网有害信息举报中心 举报信箱:js12377 | @jischina.com.cn 举报电话:025-88802724 本站不良内容举报信箱:68610888@qq.com 举报电话:0519-86695797

快速回复 返回顶部 返回列表