代码之家  ›  专栏  ›  技术社区  ›  brewcrazy

FFMPEG和MistServer:RTMP输入/输出错误

  •  1
  • brewcrazy  · 技术社区  · 8 年前

    我目前已经下载了MistServer,并在没有安装在mac上的情况下运行它( sudo ./MistController

    stream name: ipcam
    source: push://
    

    配置页面提供了以下推送源:

    RTMP full url: rtmp://127.0.0.1/live/ipcam
    RTMP url: rtmp://127.0.0.1/live/
    RTMP stream key: ipcam
    

    在streams视图中,流的状态不可用,但我假设这是因为它没有接收到输入。我还无法通过文件证实这一点。

    下面是我正在运行的FFMPEG命令和我得到的错误:

    ffmpeg -rtsp_transport tcp -i rtsp://<user>:@<camera_ip>:554/live0.264 -acodec copy -vcodec copy -f flv rtmp://127.0.0.1/live/ipcam
    
    ffmpeg version 3.3.3 Copyright (c) 2000-2017 the FFmpeg developers
      built with Apple LLVM version 8.1.0 (clang-802.0.42)
      configuration: --prefix=/usr/local/Cellar/ffmpeg/3.3.3 --enable-shared --enable-pthreads --enable-gpl --enable-version3 --enable-hardcoded-tables --enable-avresample --cc=clang --host-cflags= --host-ldflags= --enable-libmp3lame --enable-libx264 --enable-libxvid --enable-opencl --enable-videotoolbox --disable-lzma --enable-vda
      libavutil      55. 58.100 / 55. 58.100
      libavcodec     57. 89.100 / 57. 89.100
      libavformat    57. 71.100 / 57. 71.100
      libavdevice    57.  6.100 / 57.  6.100
      libavfilter     6. 82.100 /  6. 82.100
      libavresample   3.  5.  0 /  3.  5.  0
      libswscale      4.  6.100 /  4.  6.100
      libswresample   2.  7.100 /  2.  7.100
      libpostproc    54.  5.100 / 54.  5.100
    Guessed Channel Layout for Input Stream #0.1 : mono
    Input #0, rtsp, from 'rtsp://<user>:@<camera_ip>:554/live0.264':
      Metadata:
        title           : Session Streamed by LIBZRTSP
        comment         : live0.264
      Duration: N/A, start: 0.242000, bitrate: N/A
        Stream #0:0: Video: h264 (Main), yuv420p(progressive), 1280x720, 25 fps, 24.83 tbr, 90k tbn, 50 tbc
        Stream #0:1: Audio: pcm_mulaw, 8000 Hz, mono, s16, 64 kb/s
    rtmp://127.0.0.1/live/ipcam: Input/output error
    

    我无法从这个错误中确定问题是FFMPEG命令还是我的MistServer配置。

    1 回复  |  直到 8 年前
        1
  •  1
  •   brewcrazy    8 年前

    我还与MistServer团队进行了一些通信,他们的电子邮件支持非常棒。尤其是因为我在使用他们的开源版本。