简体   繁体   English

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

[英]Can not view the below webcam stream using ffserver + ffmpeg on osx

I an lost trying to stream my webcam as mpeg stream using ffserver + ffmpeg. 我迷路了,尝试使用ffserver + ffmpeg将网络摄像头作为mpeg流传输。 I have both installed on OSX Yosemite (10.10.13) with the below ffserver.conf 我都使用以下ffserver.conf将它们安装在OSX Yosemite(10.10.13)上

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>

running the below ffmpeg stream to the server 将以下ffmpeg流运行到服务器

ffmpeg -f avfoundation -i "0" -vcodec libx264 -s 640X480 http://localhost:8090/webcam.mjpg

if I run ffmepg to output as a file I can access the webcam video but I can not see the stream using vlc (i get connection verification from ffserver) 如果我运行ffmepg以文件形式输出,则可以访问网络摄像头视频,但无法使用vlc看到流(我从ffserver获得连接验证)

any idea why ? 知道为什么吗?

thanks nadigo 谢谢nadigo

您将添加libx264,并在ffmpeg中进行构建,或者尝试通过网络问题和--enable-protocols --enable-network来构建ffmpeg并启用一些解复用器。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM