gpt4 book ai didi

macos - 无法在 osx 上使用 ffserver + ffmpeg 查看以下网络摄像头流

转载 作者:行者123 更新时间:2023-12-04 23:04:50 25 4
gpt4 key购买 nike

我尝试使用 ffserver + ffmpeg 将我的网络摄像头流式传输为 mpeg 流时迷路了。
我已经在 OSX Yosemite (10.10.13) 上安装了以下 ffserver.conf

HTTPPort 8090
HTTPBindAddress 0.0.0.0
MaxHTTPConnections 2000
MaxClients 1000
MaxBandwidth 1000
CustomLog /Users/admin/Documents/ffserver/webcam.log
NoDaemon

<Feed webcam.ffm>
File /Users/admin/Documents/ffserver/webcam.mjpeg
#FileMaxSize 200K
#ACL allow 10.0.0.0 255.255.255.0
</Feed>


<Stream webcam.mjpg>

# coming from live feed 'webcam.ffm'

Feed webcam.ffm
Format mpegts

VideoCodec libx264
VideoFrameRate 24
VideoBitRate 512
VideoSize 640x480
#AVOptionVideo crf 23
#AVOptionVideo preset medium
# for more info on crf/preset options, type: x264 --help
#AVOptionVideo flags +global_header

NoAudio

</Stream>

将以下 ffmpeg 流运行到服务器
ffmpeg -f avfoundation -i "0" -vcodec libx264 -s 640X480 http://localhost:8090/webcam.mjpg

如果我运行 ffmepg 以输出为文件,我可以访问网络摄像头视频,但我无法使用 vlc 看到流(我从 ffserver 获得连接验证)

知道为什么吗?

谢谢
纳迪戈

最佳答案

您将添加 libx264 并在 ffmpeg 中构建,或者您尝试构建具有网络问题的 ffmpeg,以及 --enable-protocols --enable-network 并启用一些解复用器。

关于macos - 无法在 osx 上使用 ffserver + ffmpeg 查看以下网络摄像头流,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29602695/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com