[英]CANNOT get FFserver stream going
I want to preface this question with the fact that I am very very new to ffmpeg and even newer to ffserver. 我想以我对ffmpeg非常陌生,甚至对ffserver非常陌生的事实开头这个问题。
I cannot, for the life of me, get this thing going. 对于我的一生,我无法继续前进。 I get:
我得到:
"Too large number of skipped frames 882933314374 > 60000"
Also, ffplay gives me first frame is no keyframe
另外,ffplay给我
first frame is no keyframe
Here is my ffserver.conf file 这是我的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>
###############################################################################################
And here is my ffmpeg command 这是我的ffmpeg命令
ffmpeg -i smaller.avi http://localhost:8090/test.ffm
I've been fighting with this thing all day, googling like a madman the entire time. 我整天都在为这件事而战,一直都像疯子一样在谷歌上搜寻。 What am I doing wrong?
我究竟做错了什么? Any help will be welcomed enthusiastically.
任何帮助都会受到热烈欢迎。
These are my notes as I'm currently working through a similar process: 这些是我的注意事项,因为我目前正在通过类似的过程进行工作:
Video Streaming from ffserver for Raspberry PI - Unoptimized 从ffserver进行Raspberry PI的视频流-未优化
Follow this tutorial: (I know people don't like links but this tut worked) https://oscarliang.com/webcam-streaming-video-raspberry-pi-via-browser/ 遵循本教程:(我知道人们不喜欢链接,但这种做法行得通) https://oscarliang.com/webcam-streaming-video-raspberry-pi-via-browser/
Download ffmpeg for windows (or linux) 下载适用于Windows(或Linux)的ffmpeg
git clone https://git.ffmpeg.org/ffmpeg.git ffmpeg
// Keep your ffserver.conf simple at first //首先让您的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>
Put endpoint at http://<localhost>/webcam.mjpeg
将端点放在
http://<localhost>/webcam.mjpeg
Makesure webcam.sh contains: 确保webcam.sh包含:
ffserver -f /etc/ffserver.conf \\ & ffmpeg -v verbose \\ -r 30 \\ -s 640x480 \\ -f video4linux2 \\ -i /dev/video0 http://localhost/webcam.ffm
Run the following: 运行以下命令:
// Use the following instead of vlc as this has faster streaming //使用以下内容代替vlc,因为这样可以更快地进行流式传输
Win: ffplay.exe http://localhost/webcam.mjpeg 赢:ffplay.exe http://localhost/webcam.mjpeg
Linux: ffplay http://localhost/webcam.mjpeg Linux:ffplay http://localhost/webcam.mjpeg
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.