繁体   English   中英

VLC无法播放mpv时的RTSP流,ffplay可以播放RTSP流的视频

VLC can not play RTSP stream while mpv, ffplay can play RTSP stream video

提示:本站收集StackOverFlow近2千万问答,支持中英文搜索,鼠标放在语句上弹窗显示对应的参考中文或英文, 本站还提供   中文繁体   英文版本   中英对照 版本,有任何建议请联系yoyou2525@163.com。

我开发了基于ffserver的RTSP服务器,该服务器可以流式传输实时视频,我可以在mpv和ffplayer上流式传输和显示视频。 但是在VLC播放器上,我只能看到第一个图像,然后才显示其他帧。

这是VLC -vvv输出的日志:

[0x7846e8] main playlist debug: art not found for rtsp://127.0.0.1:1234/test.h264
Received 92 new bytes of response data.
Received a complete PLAY response:
RTSP/1.0 200 OK
CSeq: 5
Date: Thu, 15 Nov 2018 04:13:15 GMT
Session: 522d937eb678c50a


[0x7f9684000e38] live555 demux debug: play start: 0.000000 stop:0.000000
[0x7f9684000e38] main demux debug: using access_demux module "live555"
[0x7f96840246b8] main decoder debug: looking for decoder module matching "any": 39 candidates
[0x7f96840246b8] avcodec decoder debug: trying to use direct rendering
[0x7f96840246b8] avcodec decoder debug: allowing 3 thread(s) for decoding
[0x7f96840246b8] avcodec decoder debug: avcodec codec (H264 - MPEG-4 AVC (part 10)) started
[0x7f96840246b8] avcodec decoder debug: using frame thread mode with 3 threads
[0x7f96840246b8] main decoder debug: using decoder module "avcodec"
[0x7f9684034f68] main packetizer debug: looking for packetizer module matching "any": 21 candidates
[0x7f9684034f68] main packetizer debug: using packetizer module "packetizer_h264"
[0x7f9684150308] main demux meta debug: looking for meta reader module matching "any": 2 candidates
[0x7f9684150308] lua demux meta debug: Trying Lua scripts in /home/hashmak/.local/share/vlc/lua/meta/reader
[0x7f9684150308] lua demux meta debug: Trying Lua scripts in /usr/lib/vlc/lua/meta/reader
[0x7f9684150308] lua demux meta debug: Trying Lua playlist script /usr/lib/vlc/lua/meta/reader/filename.luac
[0x7f9684150308] lua demux meta debug: Trying Lua scripts in /usr/share/vlc/lua/meta/reader
[0x7f9684150308] main demux meta debug: no meta reader modules matched
[0x7f968c0009b8] main input debug: `rtsp://127.0.0.1:1234/test.h264' successfully opened
[0x7f9684000e38] live555 demux debug: tk->rtpSource->hasBeenSynchronizedUsingRTCP()
[0x7f968c0009b8] main input error: ES_OUT_RESET_PCR called
[0x7f968c0009b8] main input debug: Buffering 0%
[0x7f968c0009b8] main input debug: Buffering 0%
[0x7f9684034f68] packetizer_h264 packetizer warning: waiting for SPS/PPS
[0x7f968c0009b8] main input debug: Buffering 0%
[0x7f9684034f68] packetizer_h264 packetizer warning: waiting for SPS/PPS
[0x7f968c0009b8] main input debug: Buffering 0%
[0x7f968c0009b8] main input debug: Buffering 0%
[0x7f9684034f68] packetizer_h264 packetizer warning: waiting for SPS/PPS
[0x7f968c0009b8] main input debug: Buffering 0%
[0x7f9684034f68] packetizer_h264 packetizer warning: waiting for SPS/PPS
[0x7f968c0009b8] main input debug: Buffering 0%
[0x7f9684034f68] packetizer_h264 packetizer warning: waiting for SPS/PPS
[0x7f9684034f68] packetizer_h264 packetizer warning: waiting for SPS/PPS
[0x7f968c0009b8] main input debug: Buffering 0%
[0x7f9684034f68] packetizer_h264 packetizer warning: waiting for SPS/PPS
[0x7f968c0009b8] main input debug: Buffering 0%
[0x7f9684034f68] packetizer_h264 packetizer warning: waiting for SPS/PPS
[0x7f968c0009b8] main input debug: Buffering 0%
[0x7f9684034f68] packetizer_h264 packetizer warning: waiting for SPS/PPS
[0x7f968c0009b8] main input debug: Buffering 0%
[0x7f9684034f68] packetizer_h264 packetizer warning: waiting for SPS/PPS
[0x7f968c0009b8] main input debug: Buffering 0%
[0x7f9684034f68] packetizer_h264 packetizer warning: waiting for SPS/PPS
[0x7f968c0009b8] main input debug: Buffering 0%
[0x7f9684034f68] packetizer_h264 packetizer warning: waiting for SPS/PPS
[0x7f968c0009b8] main input debug: Buffering 0%
[0x7f9684034f68] packetizer_h264 packetizer warning: waiting for SPS/PPS
[0x7f968c0009b8] main input debug: Buffering 0%
[0x7f9684034f68] packetizer_h264 packetizer warning: waiting for SPS/PPS
[0x7f968c0009b8] main input debug: Buffering 0%
[0x7f9684034f68] packetizer_h264 packetizer warning: waiting for SPS/PPS
[0x7f968c0009b8] main input debug: Buffering 0%
[0x7f9684034f68] packetizer_h264 packetizer debug: found NAL_SPS (sps_id=0)
[0x7f9684034f68] packetizer_h264 packetizer debug: found NAL_PPS (pps_id=0 sps_id=0)
[0x7f968c0009b8] main input debug: Buffering 0%
[0x7f968c0009b8] main input debug: Buffering 0%
[0x7f9694002718] main spu text debug: looking for text renderer module matching "any": 2 candidates
[0x7f9694002718] freetype spu text debug: Building font databases.
[0x7f9694002718] freetype spu text debug: Took 0 microseconds
Fontconfig warning: FcPattern object size does not accept value "0"
Fontconfig warning: FcPattern object size does not accept value "0"
[0x7f9694002718] freetype spu text debug: Using Serif Bold as font from file /usr/share/fonts/truetype/dejavu/DejaVuSans.ttf
[0x7f9694002718] freetype spu text debug: using fontsize: 2
[0x7f9694002718] main spu text debug: using text renderer module "freetype"
[0x7f969400e408] main scale debug: looking for video filter2 module matching "any": 55 candidates
[0x7f969400e408] swscale scale debug: 32x32 chroma: YUVA -> 16x16 chroma: RGBA with scaling using Bicubic (good quality)
[0x7f969400e408] main scale debug: using video filter2 module "swscale"
[0x7f9694025cc8] main scale debug: looking for video filter2 module matching "any": 55 candidates
[0x7f9694025cc8] yuvp scale debug: YUVP to YUVA converter
[0x7f9694025cc8] main scale debug: using video filter2 module "yuvp"
[0x7f9694001428] main video output debug: Deinterlacing available
[0x7f9694001428] main video output debug: deinterlace 0, mode blend, is_needed 0
[0x7f968c0009b8] main input debug: Buffering 0%
[0x7f9694001428] main video output debug: Opening vout display wrapper
[0x7f9674001248] main vout display debug: looking for vout display module matching "any": 12 candidates
[0x7f9674002618] main window debug: looking for vout window xid module matching "qt4,any": 4 candidates
[0x7f9674002618] qt4 window debug: requesting video window...
[0x6f3208] qt4 interface debug: Video was requested 0, 0
[0x7f968c0009b8] main input debug: Buffering 0%
[0x7f9674002618] main window debug: using vout window xid module "qt4"
[0x7f96740027e8] main inhibit debug: looking for inhibit module matching "any": 2 candidates
[0x7f96740027e8] dbus_screensaver inhibit debug: found service org.freedesktop.ScreenSaver
[0x7f96740027e8] main inhibit debug: using inhibit module "dbus_screensaver"
[0x7f9674001248] xcb_glx vout display debug: connected to X11.0 server
[0x7f9674001248] xcb_glx vout display debug:  vendor : The X.Org Foundation
[0x7f9674001248] xcb_glx vout display debug:  version: 11702000
[0x7f9674001248] xcb_glx vout display debug: using screen 0x73
[0x7f9674001248] xcb_glx vout display debug: using GLX extension version 1.4
[0x7f9674001248] xcb_glx vout display debug: using X11 window 05400000
shader program 1: WARNING: Output of vertex shader 'TexCoord1' not read by fragment shader
WARNING: Output of vertex shader 'TexCoord2' not read by fragment shader

[0x7f9674001248] main vout display debug: VoutDisplayEvent 'fullscreen' 0
[0x7f9674001248] main vout display debug: VoutDisplayEvent 'resize' 1215x724 window
[0x7f9674001248] main vout display debug: using vout display module "xcb_glx"
[0x7f9694001428] main video output debug: original format sz 640x480, of (0,0), vsz 640x480, 4cc I420, sar 1:1, msk r0x0 g0x0 b0x0
[0x7f9694002718] main spu text debug: removing module "freetype"
[0x7f9694002718] main spu text debug: looking for text renderer module matching "any": 2 candidates
[0x7f9694002718] freetype spu text debug: Building font databases.
[0x7f9694002718] freetype spu text debug: Took 0 microseconds
Fontconfig warning: FcPattern object size does not accept value "0"
Fontconfig warning: FcPattern object size does not accept value "0"
[0x7f9694002718] freetype spu text debug: Using Serif Bold as font from file /usr/share/fonts/truetype/dejavu/DejaVuSans.ttf
[0x7f9694002718] freetype spu text debug: using fontsize: 2
[0x7f9694002718] main spu text debug: using text renderer module "freetype"
[0x7f96840246b8] avcodec decoder debug: using direct rendering
[0x7f968c0009b8] main input debug: Buffering 0%
[0x7f96840246b8] main decoder debug: End of video preroll
[0x7f96840246b8] main decoder debug: Received first picture
[0x7f9674001248] xcb_glx vout display debug: display is visible
[0x7f9674001248] main vout display error: Failed to resize display
[0x7f968c0009b8] main input debug: Buffering 0%
[h264 @ 0x7f9684037e40] illegal short term buffer state detected
[0x7f968c0009b8] main input debug: Buffering 0%
[0x7f968c0009b8] main input debug: Buffering 0%
[0x7f968c0009b8] main input debug: Buffering 0%
[0x7f968c0009b8] main input debug: Buffering 0%
[0x7f968c0009b8] main input debug: Buffering 0%
[0x7f968c0009b8] main input debug: Buffering 0%
[0x7f968c0009b8] main input debug: Buffering 0%
[0x7f968c0009b8] main input debug: Buffering 0%
[0x7f968c0009b8] main input debug: Buffering 0%
[0x7f968c0009b8] main input debug: Buffering 0%
[0x7f968c0009b8] main input debug: Buffering 0%
[0x7f968c0009b8] main input debug: Buffering 0%
[0x7f968c0009b8] main input debug: Buffering 0%
[0x7f968c0009b8] main input debug: Buffering 0%
[0x7f968c0009b8] main input debug: Buffering 0%
[0x7f968c0009b8] main input debug: Buffering 0%
[0x7f968c0009b8] main input debug: Buffering 0%
[0x7f968c0009b8] main input debug: Buffering 0%
[0x7f968c0009b8] main input debug: Buffering 0%
[0x7f968c0009b8] main input debug: Buffering 0%
[0x7f968c0009b8] main input debug: Buffering 0%
[0x7f968c0009b8] main input debug: Buffering 0%
[0x7f968c0009b8] main input debug: Buffering 0%
[0x7f9674001248] main vout display debug: auto hiding mouse cursor
[0x7f968c0009b8] main input debug: Buffering 0%
[0x7f968c0009b8] main input debug: Buffering 0%
[0x7f968c0009b8] main input debug: Buffering 0%
[0x7f968c0009b8] main input debug: Buffering 0%
[0x7f968c0009b8] main input debug: Buffering 0%
[0x7f968c0009b8] main input debug: Buffering 0%
[0x7f968c0009b8] main input debug: Buffering 0%
[0x7f968c0009b8] main input debug: Buffering 0%
[0x7f968c0009b8] main input debug: Buffering 0%
[0x7f968c0009b8] main input debug: Buffering 0%
[0x7f968c0009b8] main input debug: Buffering 0%
[0x7f968c0009b8] main input debug: Buffering 0%
[0x7f968c0009b8] main input debug: Buffering 0%
[0x7f968c0009b8] main input debug: Buffering 0%
[0x7f968c0009b8] main input debug: Buffering 0%
[0x7f968c0009b8] main input debug: Buffering 0%
[0x7f968c0009b8] main input debug: Buffering 0%
[0x7f968c0009b8] main input debug: Buffering 0%
[0x7f968c0009b8] main input debug: Buffering 0%
[0x7f968c0009b8] main input debug: Buffering 0%
[0x7f968c0009b8] main input debug: Buffering 0%
[0x7f968c0009b8] main input debug: Buffering 0%
[0x7f968c0009b8] main input debug: Buffering 0%
[0x7f968c0009b8] main input debug: Buffering 0%
[0x7f968c0009b8] main input debug: Buffering 0%
[0x7f968c0009b8] main input debug: Buffering 0%
[0x7f968c0009b8] main input debug: Buffering 0%
[0x7f968c0009b8] main input debug: Buffering 0%
[0x7f968c0009b8] main input debug: Buffering 0%
[0x7f968c0009b8] main input debug: Buffering 0%
[0x7f968c0009b8] main input debug: Buffering 0%
[0x7f968c0009b8] main input debug: Buffering 0%
[0x7f968c0009b8] main input debug: Buffering 0%
[0x7f968c0009b8] main input debug: Buffering 0%
[0x7f968c0009b8] main input debug: Buffering 0%
[0x7f968c0009b8] main input debug: Buffering 0%
[0x7f968c0009b8] main input debug: Buffering 0%
[0x7f968c0009b8] main input debug: Buffering 0%
[0x7f968c0009b8] main input debug: Buffering 0%
[0x7f968c0009b8] main input debug: Buffering 0%
[0x7f968c0009b8] main input debug: Buffering 0%
[0x7f968c0009b8] main input debug: Buffering 0%
[0x7f968c0009b8] main input debug: Buffering 0%
[0x7f968c0009b8] main input debug: Buffering 0%
[0x7f968c0009b8] main input debug: Buffering 0%
[0x7f968c0009b8] main input debug: Buffering 0%
[0x7f968c0009b8] main input debug: Buffering 0%
[0x7f968c0009b8] main input debug: Buffering 0%
[0x7f968c0009b8] main input debug: Buffering 0%
[0x7f968c0009b8] main input debug: Buffering 0%
[0x7f968c0009b8] main input debug: Buffering 0%
[0x7f968c0009b8] main input debug: Buffering 0%
[0x7f968c0009b8] main input debug: Buffering 0%
[0x7f968c0009b8] main input debug: Buffering 0%
[0x7f968c0009b8] main input debug: Buffering 0%
[0x7f968c0009b8] main input debug: Buffering 0%
[0x7f968c0009b8] main input debug: Buffering 0%
[0x7f968c0009b8] main input debug: Buffering 0%
[0x7f968c0009b8] main input debug: Buffering 0%
[0x7f968c0009b8] main input debug: Buffering 0%
[0x7f968c0009b8] main input debug: Buffering 0%
[0x7f968c0009b8] main input debug: Buffering 0%
[0x7f968c0009b8] main input debug: Buffering 0%
[0x7f968c0009b8] main input debug: Buffering 0%
[0x7f968c0009b8] main input debug: Buffering 0%
[0x7f968c0009b8] main input debug: Buffering 0%
[0x7f968c0009b8] main input debug: Buffering 0%
[0x7f968c0009b8] main input debug: Buffering 0%
[0x7f968c0009b8] main input debug: Buffering 0%
[0x7f968c0009b8] main input debug: Buffering 0%
[0x7f968c0009b8] main input debug: Buffering 0%
[0x7f968c0009b8] main input debug: Buffering 0%
[0x7f968c0009b8] main input debug: Buffering 0%
[0x7f968c0009b8] main input debug: Buffering 0%
[0x7f968c0009b8] main input debug: Buffering 0%
[0x7f968c0009b8] main input debug: Buffering 0%
[0x7f968c0009b8] main input debug: Buffering 0%
[0x7f968c0009b8] main input debug: Buffering 0%
[0x7f968c0009b8] main input debug: Buffering 0%
[0x7f968c0009b8] main input debug: Buffering 0%
[0x7f968c0009b8] main input debug: Buffering 0%
[0x7f968c0009b8] main input debug: Buffering 0%
[0x7f968c0009b8] main input debug: Buffering 0%
[0x7f968c0009b8] main input debug: Buffering 0%
[0x7f968c0009b8] main input debug: Buffering 0%
[0x7f968c0009b8] main input debug: Buffering 0%
[0x7f968c0009b8] main input debug: Buffering 0%
[0x7f968c0009b8] main input debug: Buffering 0%
[0x7f968c0009b8] main input debug: Buffering 0%
[0x7f968c0009b8] main input debug: Buffering 0%
[0x7f968c0009b8] main input debug: Buffering 0%
[0x7f968c0009b8] main input debug: Buffering 0%
[0x7f968c0009b8] main input debug: Buffering 0%
[0x7f968c0009b8] main input debug: Buffering 0%
[0x7f968c0009b8] main input debug: Buffering 0%
[0x7f968c0009b8] main input debug: Buffering 0%
[0x7f968c0009b8] main input debug: Buffering 0%
[0x7f968c0009b8] main input debug: Buffering 0%
[0x7f968c0009b8] main input debug: Buffering 0%
[0x7f968c0009b8] main input debug: Buffering 0%
[0x7f968c0009b8] main input debug: Buffering 0%
[0x7f968c0009b8] main input debug: Buffering 0%
[0x7f968c0009b8] main input debug: Buffering 0%
[0x7f968c0009b8] main input debug: Buffering 0%
[0x7f968c0009b8] main input debug: Buffering 0%
[0x7f968c0009b8] main input debug: Buffering 0%

[0x7f968c0009b8] main input debug: Buffering 0%
[0x7f968c0009b8] main input debug: Buffering 0%
[0x7f968c0009b8] main input debug: Buffering 0%
[0x7f968c0009b8] main input debug: Buffering 0%
[0x7f968c0009b8] main input debug: Buffering 0%
[0x7f968c0009b8] main input debug: Buffering 0%
[0x7f968c0009b8] main input debug: Buffering 0%
[0x7f968c0009b8] main input debug: Buffering 0%
[0x7f968c0009b8] main input debug: Buffering 0%
[0x7f968c0009b8] main input debug: Buffering 0%
[0x7f968c0009b8] main input debug: Buffering 0%
[0x7f968c0009b8] main input debug: Buffering 0%
[0x7f968c0009b8] main input debug: Buffering 0%

[0x7f968c0009b8] main input debug: Buffering 0%
[0x7f968c0009b8] main input debug: Buffering 0%
[0x7f968c0009b8] main input debug: Buffering 0%


[0x7f968c0009b8] main input debug: Buffering 0%

[0x7f968c0009b8] main input debug: Buffering 0%

[0x7f968c0009b8] main input debug: Buffering 0%



[0x7f968c0009b8] main input debug: Buffering 0%

[0x7f968c0009b8] main input debug: Buffering 0%

[0x7f968c0009b8] main input debug: Buffering 0%


[0x7f968c0009b8] main input debug: Buffering 0%

[0x7f968c0009b8] main input debug: Buffering 0%

[0x7f968c0009b8] main input debug: Buffering 0%




[0x7f968c0009b8] main input debug: Buffering 0%
[0x7f968c0009b8] main input debug: Buffering 0%
[0x7f968c0009b8] main input debug: Buffering 0%
[0x7f968c0009b8] main input debug: Buffering 0%

[0x7f968c0009b8] main input debug: Buffering 0%

[0x7f968c0009b8] main input debug: Buffering 0%

[0x7f968c0009b8] main input debug: Buffering 0%


[0x7f968c0009b8] main input debug: Buffering 0%


[0x7f968c0009b8] main input debug: Buffering 0%


[0x7f968c0009b8] main input debug: Buffering 0%

[0x7f968c0009b8] main input debug: Buffering 0%

在这里,您可以看到,VLC一直在等待缓冲,而其他播放器可以从我的RTSP服务器获取缓冲区,我也可以看到Wireshark上的RTP数据包表明服务器不断向VLC发送数据。

有人可以帮我解决这个问题吗?

非常感谢。

问题暂未有回复.您可以查看右边的相关问题.
2 C#VLC DotNet 3.0.0 ActiveX无法播放RTSP流,但VLC应用程序可以

很抱歉延长了帖子。 我在WPF中有一个带有VLCControl的项目,它与我拥有的其他RTSP流都可以正常工作,但是当我尝试打开Panasonic CAM(AW-HE38HWE)的流时,它不起作用,这里我留下了日志不将用户名和密码放在URI中时的ActiveX: 当我输入内容时,除了最 ...

4 使用RTSP流无法在android webview中播放此视频错误

我的应用程序有一个加载简单HTML的WebView。 但是,此html链接到rtsp实时视频流,并且WebView能够加载它,但是当我单击一个视频时,它显示为正在加载播放器,但在一段时间后收到消息“无法播放此视频。在本机Android浏览器中打开rtsp链接,它会加载并正常运行,所以我知道不是 ...

6 C#Vlc ActiveX播放rtsp流

我发现了将rtsp流嵌入和播放到VLC Activex控件的问题。 一旦我已经成功,但是现在我不知道为什么,我试图在WPF托管一个vlc控件,但是它不起作用,它说像dll丢失了,“无法导入ActiveX控件”,我找到了一些解决方案之后很好,但是没有人帮忙...我已经注册了它,并尝试了更多的事情 ...

7 无法从YouTube播放rtsp流

我几天以来一直在尝试在我的Android应用中播放Youtube rtsp流,但只能从Android MediaPlayer实例中获取错误-无法打开文件。 我试图打开3gp文件,它可以播放。 尝试打开互联网上发现的其他rtsp流-都可以播放,但是Youtube不可以。 在Windo ...

8 在Android上播放rtsp流

我需要同时播放两个视频音频的android rtsp流。 但是,无论我做什么,他们都没有开始。 视频的rstp流采用.mp4格式,音频的rstp流采用.mp3。 在VLC中播放时,该流工作正常,并且显示的分辨率为320X240。 但是这里只是给出我在底部发布的错误。 还请告诉我们如何流 ...

10 RTSP客户端无法播放视频

我在ffmpeg代码内的ffserver代码内的API下添加和更新了以下代码: 如果您在此处看到一个名为setAVPacket()的API,我将基于H264的编码数据包通过该API传递给RTSPServer。 与其他名为http_prepare_data()的函数使用的AVPacket ...

暂无
暂无

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

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