【问题标题】:CANNOT get FFserver stream going无法让 FFserver 流继续
【发布时间】:2016-12-25 23:01:37
【问题描述】:

我想以我对 ffmpeg 非常陌生,甚至对 ffserver 更新这一事实作为这个问题的开头。

为了我的一生,我不能让这件事继续下去。 我明白了:

"Too large number of skipped frames 882933314374 > 60000"

另外,ffplay 给了我first frame is no keyframe

这是我的 ffserver.conf 文件

HTTPPort 8090
HTTPBindAddress 0.0.0.0
MaxHTTPConnections 1000
MaxClients 10
MaxBandwidth 2000000
NoDefaults

###############################################################################################

<Feed test.ffm>
    File /tmp/test.ffm
    FileMaxSize 10000M
    ACL ALLOW localhost
</Feed>

<Stream status.html>
Format status

# Only allow local people to get the status
    ACL allow localhost
</Stream>

<Stream test.avi>
    Feed test.ffm
    Format avi
    ACL ALLOW localhost
    ACL ALLOW 192.168.1.0
    NoAudio
    VideoSize 3840x2160
    VideoFrameRate 30
    Preroll 10
</Stream>

###############################################################################################

这是我的 ffmpeg 命令

ffmpeg -i smaller.avi http://localhost:8090/test.ffm

我整天都在和这个东西作斗争,一直像疯子一样在谷歌上搜索。我究竟做错了什么?任何帮助都将受到热烈欢迎。

【问题讨论】:

    标签: ffmpeg streaming video-streaming http-live-streaming ffserver


    【解决方案1】:

    这些是我的笔记,因为我目前正在经历类似的过程:

    来自 ffserver 的 Raspberry PI 视频流 - 未优化

    按照本教程进行操作:(我知道人们不喜欢链接,但这个 tut 有效) https://oscarliang.com/webcam-streaming-video-raspberry-pi-via-browser/

    下载适用于 windows(或 linux)的 ffmpeg

    git clone https://git.ffmpeg.org/ffmpeg.git ffmpeg

    // ffserver.conf 一开始就保持简单

    HTTPPort 8090
    HTTPBindAddress 0.0.0.0
    MaxHTTPConnections 1000
    MaxClients 10
    MaxBandwidth 2000000
    NoDefaults
    
    ###############################################################################################
    
    <Feed test.ffm>
        File /tmp/test.ffm
        FileMaxSize 10M
    </Feed>
    
    <Stream test.avi>
        Feed test.avi
        Format mjpeg
        VideoSize 640x480
        VideoFrameRate 20
        VideoBitRate 2000
        VideoQMin 2
        VideoQMax 10
    </Stream>

    将端点放在http://&lt;localhost&gt;/webcam.mjpeg

    确保 webcam.sh 包含:

    ffserver -f /etc/ffserver.conf \ & ffmpeg -v verbose \ -r 30 \ -s 640x480 \ -f video4linux2 \ -i /dev/video0 http://localhost/webcam.ffm

    运行以下命令:

    // 使用以下而不是 vlc,因为它具有更快的流式传输

    赢: ffplay.exehttp://localhost/webcam.mjpeg

    Linux: ffplayhttp://localhost/webcam.mjpeg

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2019-05-04
      • 2013-02-09
      • 1970-01-01
      • 2012-09-11
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多