V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
cuican008399
V2EX  ›  程序员

ffmpeg -stream_loop -1 执行怎么都不循环播放

  •  
  •   cuican008399 · 2018-09-03 23:14:05 +08:00 · 4081 次点击
    这是一个创建于 2055 天前的主题,其中的信息可能已经有所发展或是发生改变。
    命令如下 :
    ffmpeg -re -stream_loop -1 -i /root/2/9.mp4 -c copy -f flv "rtmp://send3.douyu.com/live/562xxxxxxxxxxxx"
    8 条回复    2019-05-10 13:54:45 +08:00
    cuican008399
        1
    cuican008399  
    OP
       2018-09-03 23:20:11 +08:00
    不晓得错在哪。 测试 N 遍不循环执行
    cuican008399
        2
    cuican008399  
    OP
       2018-09-03 23:20:31 +08:00
    系统是 centos 7
    cuican008399
        3
    cuican008399  
    OP
       2018-09-04 01:21:36 +08:00
    有没有大神解答
    cuican008399
        4
    cuican008399  
    OP
       2018-09-04 01:40:12 +08:00
    av_interleaved_write_frame(): Broken pipe
    [flv @ 0x273e680] Failed to update header with correct duration.
    [flv @ 0x273e680] Failed to update header with correct filesize.
    停止运行后爆出错误
    DavidWei
        5
    DavidWei  
       2018-09-04 06:21:21 +08:00 via iPhone
    cuican008399
        6
    cuican008399  
    OP
       2018-09-04 10:55:13 +08:00
    @DavidWei 这个博客只是记录了这个错误
    cuican008399
        7
    cuican008399  
    OP
       2018-09-04 15:56:17 +08:00
    刚试了一下用 win 10 系统 和 ubuntu 都可以执行成功。 换了个系统解决了
    c4f36e5766583218
        8
    c4f36e5766583218  
       2019-05-10 13:54:45 +08:00
    不晓得,命令看着没问题。你再根据报错信息查查吧
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   863 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 21:56 · PVG 05:56 · LAX 14:56 · JFK 17:56
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.