Ephzent
V2EX  ›  问与答

FFMPEG 如何推送单个/列表 视频到 DOUYU

  •  
  •   Ephzent · Jan 5, 2016 · 3120 views
    This topic created in 3955 days ago, the information mentioned may be changed or developed.
    VPS 折腾了好久死活不行,求解
    作为答谢送一把 50G “梯子”
    12 replies  •  2016-01-06 16:26:42 +08:00
    Mikewu
    Mikewu
    Jan 5, 2016
    1
    单个:
    ffmpeg -re -i input_file -acodec copy -vcodec copy -f flv rtmp://douyutv.com/xxxx
    列表:
    1 、 ffmpeg -i concat:” input_file1|input_file2|input_file3 ” -acodec copy -vcodec copy -f flv rtmp://douyutv.com/xxxx
    2 、 ffmpeg -i concat list.txt -acodec copy -vcodec copy -f flv rtmp://douyutv.com/xxxx
    list.txt=>
    file '/path/to/file1'
    file '/path/to/file2'
    file '/path/to/file3'
    sgissb1
    sgissb1
    Jan 5, 2016
    2
    @Mikewu 哥们你们说的推送,就是发布视频的意思是吧?我看着好象是发布视频啊
    Ephzent
    Ephzent
    OP
    Jan 6, 2016
    3
    @sgissb1 1 楼没错,是我表达有问题
    Ephzent
    Ephzent
    OP
    Jan 6, 2016
    4
    @Mikewu 没用额,不知道为什么

    Ephzent
    Ephzent
    OP
    Jan 6, 2016
    5
    @Mikewu 虽然能运行,但是直播间并不能播放
    datou
    datou
    Jan 6, 2016
    6
    @Ephzent rtmp 地址加上引号
    Ephzent
    Ephzent
    OP
    Jan 6, 2016
    7
    @datou
    错误 1 : Cannot open connection tcp://send1a.douyutv.com:1935
    rtmp://send1a.douyutv.com/live/23xxx6rnyAHNVprP?wsSecret=38381b4cd7072834faxxx7d097697b&wsTime=568c6c6a: Connection timed out



    错误 2 : Server error: Failed to publish 238xxx6rnyAHNVprP?wsSecret=38381b4cd7072834fadd12b7d097697b&wsTime=568c6c6a
    rtmp://send1a.douyutv.com/live/xxxxxxrnyAHNVprP?wsSecret=38381b4cd7072834xxxb7d097697b&wsTime=568c6c6a: Operation not permitted

    难道是我服务器网络问题?
    Mikewu
    Mikewu
    Jan 6, 2016
    8
    @Ephzent 建议你在 VPS 或者本地上编译 nginx 的 nginx-rtmp-module 模块用来调试推流,然后再推到斗鱼,我一年前用 DO 的 VPS 推过斗鱼,码率在 2000 以下不卡。
    datou
    datou
    Jan 6, 2016
    9
    @Ephzent 换个推流服务器吧

    我前阵子试过 send3 那个服务器没问题
    Ephzent
    Ephzent
    OP
    Jan 6, 2016
    10
    @Mikewu 如您所说,我自己搭了一台 rtmp 服务器,可以正常推送到此服务器,巴特就是推不上斗鱼的 Server error: Failed to publish
    @datou send1 或者 send3 神马的都是统一 CNAME 到一个 CDN 域名的
    datou
    datou
    Jan 6, 2016
    11
    @Ephzent 你在斗鱼的网站上点了"开始直播"吗?
    Ephzent
    Ephzent
    OP
    Jan 6, 2016
    12
    @datou 已经 OK 了,原来直播设置里有个推马流服务器切换,换成不限 IP 的就好了
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   4341 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 04:02 · PVG 12:02 · LAX 20:02 · JFK 23:02
    ♥ Do have faith in what you're doing.