自制TvBox线路

自制TvBox线路

为什么要自制线路?

网上提供的线路经常失效,如果你把软件发送给不懂技术的朋友,他们会经常因为线路失效而不知所措,但是如果我们自制一条线路,那么我们就可以远程维护线路,保证线路的稳定性

需要准备什么?

  • 一台搭建了宝塔控制面板的服务器
  • 一个可用的域名
  • 我给大家准备的压缩包

开始制作

  1. 创建一个站点,保证能正常访问
  2. 将我准备的压缩包上传到服务器

    20240118140537454-image

  3. 创建一个名为qn.json的文件

    20240118140655593-image

  4. 编辑qn.json文件加入以下内容
    {
        "spider":"./qn.jar",
        "warningText":" ",
        "wallpaper":"https://xhdwc.tk/api/img.php",
        "sites":[
            {
                "key":"一起看 ",
                "name":"一起看",
                "type":3,
                "api":"csp_YQKan",
                "searchable":1,
                "quickSearch":1,
                "changeable":1
            }
        ],
        "lives":[
            {
                "name":"🌏IPV6+IPV4",
                "type":0,
                "url":"https://raw.fgit.cf/w6566/tvlive/main/box/live/live.txt",
                "playerType":1,
                "ua":"okhttp/3.15",
                "epg":"http://epg.112114.xyz/?ch={name}&date={date}",
                "logo":"https://epg.112114.xyz/logo/{name}.png"
            }
        ],
        "parses":[
    
        ],
        "ijk":[
            {
                "group":"软解码",
                "options":[
                    {
                        "category":4,
                        "name":"opensles",
                        "value":"0"
                    },
                    {
                        "category":4,
                        "name":"overlay-format",
                        "value":"842225234"
                    },
                    {
                        "category":4,
                        "name":"framedrop",
                        "value":"1"
                    },
                    {
                        "category":4,
                        "name":"soundtouch",
                        "value":"1"
                    },
                    {
                        "category":4,
                        "name":"start-on-prepared",
                        "value":"1"
                    },
                    {
                        "category":1,
                        "name":"http-detect-range-support",
                        "value":"0"
                    },
                    {
                        "category":1,
                        "name":"fflags",
                        "value":"fastseek"
                    },
                    {
                        "category":2,
                        "name":"skip_loop_filter",
                        "value":"48"
                    },
                    {
                        "category":4,
                        "name":"reconnect",
                        "value":"1"
                    },
                    {
                        "category":4,
                        "name":"enable-accurate-seek",
                        "value":"0"
                    },
                    {
                        "category":4,
                        "name":"mediacodec",
                        "value":"0"
                    },
                    {
                        "category":4,
                        "name":"mediacodec-auto-rotate",
                        "value":"0"
                    },
                    {
                        "category":4,
                        "name":"mediacodec-handle-resolution-change",
                        "value":"0"
                    },
                    {
                        "category":4,
                        "name":"mediacodec-hevc",
                        "value":"0"
                    },
                    {
                        "category":1,
                        "name":"dns_cache_timeout",
                        "value":"600000000"
                    }
                ]
            },
            {
                "group":"硬解码",
                "options":[
                    {
                        "category":4,
                        "name":"opensles",
                        "value":"0"
                    },
                    {
                        "category":4,
                        "name":"overlay-format",
                        "value":"842225234"
                    },
                    {
                        "category":4,
                        "name":"framedrop",
                        "value":"1"
                    },
                    {
                        "category":4,
                        "name":"soundtouch",
                        "value":"1"
                    },
                    {
                        "category":4,
                        "name":"start-on-prepared",
                        "value":"1"
                    },
                    {
                        "category":1,
                        "name":"http-detect-range-support",
                        "value":"0"
                    },
                    {
                        "category":1,
                        "name":"fflags",
                        "value":"fastseek"
                    },
                    {
                        "category":2,
                        "name":"skip_loop_filter",
                        "value":"48"
                    },
                    {
                        "category":4,
                        "name":"reconnect",
                        "value":"1"
                    },
                    {
                        "category":4,
                        "name":"enable-accurate-seek",
                        "value":"0"
                    },
                    {
                        "category":4,
                        "name":"mediacodec",
                        "value":"1"
                    },
                    {
                        "category":4,
                        "name":"mediacodec-auto-rotate",
                        "value":"1"
                    },
                    {
                        "category":4,
                        "name":"mediacodec-handle-resolution-change",
                        "value":"1"
                    },
                    {
                        "category":4,
                        "name":"mediacodec-hevc",
                        "value":"1"
                    },
                    {
                        "category":1,
                        "name":"dns_cache_timeout",
                        "value":"600000000"
                    }
                ]
            }
        ],
        "ads":[
            "mimg.0c1q0l.cn",
            "www.googletagmanager.com",
            "www.google-analytics.com",
            "mc.usihnbcq.cn",
            "mg.g1mm3d.cn",
            "mscs.svaeuzh.cn",
            "cnzz.hhttm.top",
            "tp.vinuxhome.com",
            "cnzz.mmstat.com",
            "www.baihuillq.com",
            "s23.cnzz.com",
            "z3.cnzz.com",
            "c.cnzz.com",
            "stj.v1vo.top",
            "z12.cnzz.com",
            "img.mosflower.cn",
            "tips.gamevvip.com",
            "ehwe.yhdtns.com",
            "xdn.cqqc3.com",
            "www.jixunkyy.cn",
            "sp.chemacid.cn",
            "hm.baidu.com",
            "s9.cnzz.com",
            "z6.cnzz.com",
            "um.cavuc.com",
            "mav.mavuz.com",
            "wofwk.aoidf3.com",
            "z5.cnzz.com",
            "xc.hubeijieshikj.cn",
            "tj.tianwenhu.com",
            "xg.gars57.cn",
            "k.jinxiuzhilv.com",
            "cdn.bootcss.com",
            "ppl.xunzhuo123.com",
            "xomk.jiangjunmh.top",
            "img.xunzhuo123.com",
            "z1.cnzz.com",
            "v1.cnzz.com",
            "s13.cnzz.com",
            "xg.huataisangao.cn",
            "z7.cnzz.com",
            "xg.huataisangao.cn",
            "z2.cnzz.com",
            "s96.cnzz.com",
            "q11.cnzz.com",
            "thy.dacedsfa.cn",
            "xg.whsbpw.cn",
            "s19.cnzz.com",
            "z8.cnzz.com",
            "s4.cnzz.com",
            "f5w.as12df.top",
            "ae01.alicdn.com",
            "videocloud.cn-hangzhou.log.aliyuncs.com",
            "www.92424.cn",
            "k.wudejia.com",
            "vivovip.mmszxc.top",
            "qiu.xixiqiu.com",
            "cdnjs.hnfenxun.com",
            "cms.qdwght.com"
        ]
    }

    以下对每个要改的地方做一个说明

    20240118143244180-image

    5.  保存访问你的域名加qn.json

20240118142553433-image

  1. 配置到tvbox里即可

© 版权声明
THE END
喜欢就支持一下吧
点赞13赞赏 分享
评论 抢沙发
头像
欢迎您留下宝贵的见解!
提交
头像

昵称

取消
昵称表情代码图片

    暂无评论内容