A9VG电玩部落论坛

 找回密码
 注册
搜索
查看: 218003|回复: 237

[原创]无需HDMI采集卡,PS4直播功能破解,支持录制

[复制链接]

精华
0
帖子
165
威望
0 点
积分
172 点
种子
5 点
注册时间
2012-7-30
最后登录
2017-8-31
发表于 2014-5-1 14:10  ·  广东 | 显示全部楼层
大神别调人胃口。。请尽快公布思路吧

精华
0
帖子
165
威望
0 点
积分
172 点
种子
5 点
注册时间
2012-7-30
最后登录
2017-8-31
发表于 2014-5-2 17:08  ·  广东 | 显示全部楼层
jocover 发表于 2014-5-2 16:45
用dstnat吧,我这边没DD-WRT路由,写不了教程~~~~~~

感谢,已经搞定!!!

精华
0
帖子
165
威望
0 点
积分
172 点
种子
5 点
注册时间
2012-7-30
最后登录
2017-8-31
发表于 2014-5-2 17:50  ·  广东 | 显示全部楼层
lucky☆star 发表于 2014-5-2 17:32
你是如何实现的?


我PC就装着Linux系统,录制也是直接录制到PC上,当然DDWRT也是同理,不过就是蛋疼点,我整理好写个教程上来也行,如果有人需要,大神一语点破天机哈哈哈哈哈

精华
0
帖子
165
威望
0 点
积分
172 点
种子
5 点
注册时间
2012-7-30
最后登录
2017-8-31
发表于 2014-5-2 19:40  ·  广东 | 显示全部楼层
在PC创建eth0 eth0:1 eth0:2 .... 和twitch的IP数量对应
在ddwrt中写入
iptables -t nat -A PREROUTING -d <twitch的IP条目> -j DNAT --to-destination <PC上若干网卡的地址>
应该这样是最简单的方式了吧

精华
0
帖子
165
威望
0 点
积分
172 点
种子
5 点
注册时间
2012-7-30
最后登录
2017-8-31
发表于 2014-5-2 20:57  ·  广东 | 显示全部楼层
本帖最后由 stlifey 于 2014-5-3 04:12 编辑
lucky☆star 发表于 2014-5-2 20:19
我理解成,我直接在DD里设置DNAT即可吧。


经过自己的实验,我应该是弄错了,DSNAT方式行不通,当时以为ping到twitch的ip返回为内外IP的延迟值就OK,但问题是上机实验录制显示为超时,修改IP路由表的方法估计参数填错误,等LZ来答疑了

精华
0
帖子
165
威望
0 点
积分
172 点
种子
5 点
注册时间
2012-7-30
最后登录
2017-8-31
发表于 2014-5-11 03:47  ·  广东 | 显示全部楼层
本帖最后由 stlifey 于 2014-5-13 01:45 编辑

还真是搞定了。。。。

本帖子中包含更多资源

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

x

精华
0
帖子
165
威望
0 点
积分
172 点
种子
5 点
注册时间
2012-7-30
最后登录
2017-8-31
发表于 2014-5-13 01:47  ·  广东 | 显示全部楼层
本帖最后由 stlifey 于 2014-5-13 02:31 编辑

给LZ M了私信,我这里也发一贴
    朋友想叫我帮他搞PS4的直播和录像,寄来了一台路由器,型号是ASUS AC66U。
    我从https://github.com/lancethepants/tomatoware拿到了可以编译nginx和rtmp模块的工具链。
    我是以 ./configure --with-http_ssl_module --add-module=../nginx-rtmp-module --prefix=/opt/nginx并make install的,编译成功。
    而且修改了nginx.conf配置文件,把默认端口改为8080
    在nginx的sbin目录下./nginx并可以通过浏览器输入192.168.1.1:8080进入nginx那个测试网页页面
    接着,我在telnet输入
    ifconfig vlan1 99.9.248.197 broadcast 192.168.1.255 netmask 255.255.255.255
    ifconfig vlan1:1 99.9.253.83 broadcast 192.168.1.255 netmask 255.255.255.255
    .......等29个IP
    我在连接此路由器的笔记本上ping29个ip任意一个,能返回信息
    在浏览器上输入IP地址:8080也能看见测试页面

    其实上面的步骤和我在我的Linux笔记本上基本一致,照搬到路由器上却出现问题,编译nginx的过程也没有出错,也能看见rtmp模块编译了进去
    在nginx的log中也没有出现
    10.0.0.5 [13/May/2014:00:11:46 +0800] PUBLISH "app" "live_61663361_TT02alWEn8QDDrAf6AsGoI5ckaV2Oe" "broadcaster=octodad" - 4667325 529 "" "PlayStation4 1.0.0.0" (1m 20s)
    这种类似的日志
    能否帮忙看下哪里出了问题呢?感谢!

    启动后nginx的日志
2014/05/12 20:29:38 [debug] 14918#0: bind() 0.0.0.0:1935 #6
2014/05/12 20:29:38 [notice] 14918#0: using the "epoll" event method
2014/05/12 20:29:38 [debug] 14918#0: counter: 2AAB2080, 1
2014/05/12 20:29:38 [notice] 14918#0: nginx/1.4.7
2014/05/12 20:29:38 [notice] 14918#0: built by gcc 4.6.4 (GCC)
2014/05/12 20:29:38 [notice] 14918#0: OS: Linux 2.6.22.19
2014/05/12 20:29:38 [notice] 14918#0: getrlimit(RLIMIT_NOFILE): 1024:1024
2014/05/12 20:29:38 [debug] 14919#0: write: 7, 7FA3BB60, 6, 0
2014/05/12 20:29:38 [debug] 14919#0: setproctitle: "nginx: master process ./nginx"
2014/05/12 20:29:38 [notice] 14919#0: start worker processes
2014/05/12 20:29:38 [debug] 14919#0: channel 3:7
2014/05/12 20:29:38 [debug] 14920#0: malloc: 00C2E248:8192
2014/05/12 20:29:38 [debug] 14920#0: malloc: 00C3A2E0:106496
2014/05/12 20:29:38 [debug] 14920#0: malloc: 00C542E8:53248
2014/05/12 20:29:38 [debug] 14920#0: malloc: 00C612F0:53248
2014/05/12 20:29:38 [debug] 14920#0: epoll add event: fd:6 op:1 ev:00000001
2014/05/12 20:29:38 [debug] 14920#0: posted event 00000000
2014/05/12 20:29:38 [debug] 14920#0: epoll add event: fd:7 op:1 ev:00000001
2014/05/12 20:29:38 [debug] 14920#0: setproctitle: "nginx: worker process"
2014/05/12 20:29:38 [debug] 14920#0: worker cycle
2014/05/12 20:29:38 [debug] 14920#0: epoll timer: -1
2014/05/12 20:29:38 [notice] 14919#0: start worker process 14920
2014/05/12 20:29:38 [debug] 14919#0: sigsuspend

本帖子中包含更多资源

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

x

精华
0
帖子
165
威望
0 点
积分
172 点
种子
5 点
注册时间
2012-7-30
最后登录
2017-8-31
发表于 2014-5-13 13:19  ·  广东 | 显示全部楼层
本帖最后由 stlifey 于 2014-5-13 13:31 编辑
jocover 发表于 2014-5-13 09:13
live.twitch.tv的IP段是199开头的,不是99开头的


。。。。。。。。。。。。。。。。。。。。。。。









搞定了,生成了flv文件,也能同时推送到斗鱼

本帖子中包含更多资源

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

x

精华
0
帖子
165
威望
0 点
积分
172 点
种子
5 点
注册时间
2012-7-30
最后登录
2017-8-31
发表于 2014-5-18 08:38  ·  广东 | 显示全部楼层
pan.baidu.com/s/1gdxdxOf 静态编译的nginx解压到/opt下面,一般路由上都有多余的jffs空间,10M就能塞下,不需要其他任何依赖

精华
0
帖子
165
威望
0 点
积分
172 点
种子
5 点
注册时间
2012-7-30
最后登录
2017-8-31
发表于 2015-1-30 11:34  ·  广东 | 显示全部楼层
iptables -t nat -A PREROUTING -d 199.9.0.0/16 -p tcp --dport 1935 -j DNAT --to-destination <本地IP>:1935  
iptables -t nat -A POSTROUTING -j MASQUERADE
用DNAT方式更加简单~~~
您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|A9VG电玩部落 川公网安备 51019002005286号

GMT+8, 2026-4-5 09:53 , Processed in 0.097757 second(s), 11 queries , Redis On.

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

返回顶部