我想在这个问题的开头,我对ffmpeg非常陌生,对ffserver来说更新。
为了我的命,我不能让这件事继续下去。我得到:
"Too large number of skipped frames 882933314374 > 60000"
还有,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我跟这东西吵了一天,一直像个疯子一样搜索。我做错了什么?任何帮助都将受到热烈欢迎。
发布于 2016-09-18 12:22:26
这些是我的笔记,因为我目前正在经历一个类似的过程:
用于树莓PI -非优化的PI服务器的视频流
遵循本教程:(我知道人们不喜欢链接,但这个tut有效) https://oscarliang.com/webcam-streaming-video-raspberry-pi-via-browser/
下载ffmpeg for windows (或linux)
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://<localhost>/webcam.mjpeg上
Makesure webcam.sh包含:
ffserver -f /etc/ffserver.conf \ & ffmpeg -v verbose \ -r 30 \ -s 640x480 \ -f video4linux2 \ -i /dev/video0 http://localhost/webcam.ffm
运行以下命令:
//使用下面的内容而不是vlc,因为这具有更快的流
Win: ffplay.exe http://localhost/webcam.mjpeg
Linux: ffplay http://localhost/webcam.mjpeg
https://stackoverflow.com/questions/39027939
复制相似问题