• ffmpeg推流配置文件ffserver.conf


    学ffmpeg之际想看看推流,折腾了一天完全是配置的原因,现记录一下供以后查找。

    推流还有个live555,想了解可以去搜索下,当然方案不止这些。

    http://www.ffmpeg.org/ffserver.html

    # 注释以#开头
    Port 8090 BindAddress 0.0.0.0 MaxHTTPConnections 2000 MaxClients 1000 MaxBandwidth 1000000 CustomLog -
    <Feed video.ffm> File /tmp/video.ffm FileMaxSize 1024M ACL allow 127.0.0.1 </Feed> <Feed sound.ffm> File /tmp/sound.ffm FileMaxSize 100M ACL allow 127.0.0.1 </Feed> <Stream live.flv> Format flv Feed video.ffm VideoCodec libx264 VideoFrameRate 24 VideoBitRate 5120 VideoSize 1920x1080 AVOptionVideo crf 23 AVOptionVideo preset medium AVOptionVideo flags +global_header AudioCodec aac Strict -2 AudioBitRate 320 AudioChannels 2 AudioSampleRate 44100 AVOptionAudio flags +global_header </Stream> <Stream live.flac> Feed sound.ffm Title "Music Live" AudioBitRate 320 AudioChannels 2 AudioSampleRate 44100 NoVideo </Stream> <Stream stat.html> Format status ACL allow localhost ACL allow 192.168.0.0 192.168.255.255 </Stream> <Redirect index.html> URL http://www.ffmpeg.org/ </Redirect>

      将上述代码保存成文本文件,例如:ffserver.conf

      通过 ffserver -f ffserver.conf  启动ffserver

      使用 ffmpeg -i xx.mp4 http://ip:port/video.ffm  将xx.mp4转码到ffserver的视音频(sound.ffm转码到单独音频)

      播放 http://ip:port/live.flv  播放音视频(live.flac播放音频)

  • 相关阅读:
    cnn softmax regression bp求导
    使用kd-tree加速k-means
    KDTree详解及java实现
    加入商品分类信息,考虑用户所处阶段的 图模型 推荐算法 Rws(random walk with stage)
    用户标签
    LDA(latent dirichlet allocation)
    对物品进行反馈 代码
    1.虚拟机中安装ubuntu
    4.动态HTML处理和机器图像识别
    3.非结构化数据与结构化数据提取
  • 原文地址:https://www.cnblogs.com/duacai/p/10347169.html
Copyright © 2020-2023  润新知