FFmpeg:NetStream.Play.StreamNotFound在RMTP流 [英] FFmpeg: NetStream.Play.StreamNotFound on RMTP stream
问题描述
我想定期拍摄RTMP直播视频流的快照。
我可以看到使用VLC的rtmp视频流。这是rtmp网址:
I want to take snapshots periodically of a RTMP live video stream. I can see the rtmp video stream using VLC. This is the rtmp url:
rtmp://antena3fms35livefs.fplive.net/antena3fms35live-live/stream-antena3_1
根据官方的FFmpeg网站 here :
I'm using the following command to capture the snapshots, according to the official FFmpeg site here:
ffmpeg -i rtmp://antena3fms35livefs.fplive.net/antena3fms35live-live/stream-antena3_1 -f image2 -vf fps=fps=1 out%d.png
该命令产生以下输出:
ffmpeg version N-64667-gd595361 Copyright (c) 2000-2014 the FFmpeg developers
built on Jul 14 2014 22:09:48 with gcc 4.8.3 (GCC)
configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzl
libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amr
enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --ena
libavutil 52. 92.100 / 52. 92.100
libavcodec 55. 69.100 / 55. 69.100
libavformat 55. 47.100 / 55. 47.100
libavdevice 55. 13.102 / 55. 13.102
libavfilter 4. 10.100 / 4. 10.100
libswscale 2. 6.100 / 2. 6.100
libswresample 0. 19.100 / 0. 19.100
libpostproc 52. 3.100 / 52. 3.100
HandShake: client signature does not match!
Closing connection: NetStream.Play.StreamNotFound
rtmp://antena3fms35livefs.fplive.net/antena3fms35live-live/stream-antena3_1: Unknown error occurred
我已尝试使用另一个rmtp流,但我仍然收到完全相同的错误。
I've tried it with another rmtp streams, but I'm still getting the exact same error.
可能是什么问题?
谢谢!
What could be the problem? Thank you!
推荐答案
我刚刚尝试了你的命令,对我来说工作正常。也许这是关于你的FFMPEG安装的?我在Mac上使用2.4版本(tessus build)。
I just tried your command and it worked fine for me. Maybe it is something about your FFMPEG installation? I am using version 2.4 on a Mac (tessus build).
我知道其他/旧版本的librtmp用于rtmp连接,这需要流后面的一些额外的选项URL。见ffmpeg的文档在这里:在librtmp ffmpeg的文档>
I know other/older versions used "librtmp" for rtmp connections, which required some extra options behind the stream URL. See ffmpeg docs here: ffmpeg documentation on librtmp
和librtmp文档在这里:
librtmp文档
And librtmp docs here: librtmp documentation
对于未受保护的直播流,您可能需要尝试引用流网址,并在引号内附加live = 1:
For an unprotected live stream, you may want to try quoting the stream URL and appending " live=1" within the quotes:
ffmpeg -i "rtmp://antena3fms35livefs.fplive.net/antena3fms35live-live/stream-antena3_1 live=1" -f image2 -vf fps=fps=1 out%d.png
这篇关于FFmpeg:NetStream.Play.StreamNotFound在RMTP流的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!