【问题标题】:How to open RTMP stream in VLC?如何在 VLC 中打开 RTMP 流?
【发布时间】:2014-12-06 11:52:26
【问题描述】:

我不知道如何从 VLC 播放 RTMP 流。我可以通过 Flash 播放器在网上毫无问题地查看它。我通过firebug找到了关于流的信息:

<data>
  <smilRoot>
    <body>
      <switchItem id="0-BO-18166" base="rtmp://wcdn101.nacevi.cz/ct-vod/_definst_?id=HRr8GUgv1FcCBzw1-01&amp;publisher=lss" begin="0" duration="134" clipBegin="0" type="recorded" stat="ProjectId=3;ApplicationId=4;NodeId=9">
        <video src="mp4:iVysilani/2014/10/08/KristynaLiskaBokCT-081014-MP4_720p.mp4" system-bitrate="3500" label="720p" enabled="true" />
        <video src="mp4:iVysilani/2014/10/08/KristynaLiskaBokCT-081014-MP4_576p.mp4" system-bitrate="2000" label="576p" enabled="true" />
        <video src="mp4:iVysilani/2014/10/08/KristynaLiskaBokCT-081014-MP4_404p.mp4" system-bitrate="1000" label="404p" enabled="true" />
        <video src="mp4:iVysilani/2014/10/08/KristynaLiskaBokCT-081014-MP4_288p.mp4" system-bitrate="500" label="288p" enabled="true" />
      </switchItem>
    </body>
  </smilRoot>
</data>

我尝试使用 rtmpdump、vlc 以及它们的组合播放 404p 流。我不太确定如何粘贴 URL,但是我尝试了所有我能想到的组合。我试过的一些例子:

rtmp://wcdn101.nacevi.cz:1935/ct-vod/_defins.t_?id=HRraUUgv1FKF42a-02&publisher=lss/mp4:iVysilani/2014/10/08/KristynaLiskaBokCT-081014-MP4_404p.mp4
rtmp://wcdn101.nacevi.cz:1935/ct-vod/_defins.t_?id=HRraUUgv1FKF42a-02&publisher=lss?mp4:iVysilani/2014/10/08/KristynaLiskaBokCT-081014-MP4_404p.mp4
rtmp://wcdn101.nacevi.cz:1935/ct-vod/_defins.t_?id=HRraUUgv1FKF42a-02&publisher=lss/?mp4:iVysilani/2014/10/08/KristynaLiskaBokCT-081014-MP4_404p.mp4
rtmp://wcdn101.nacevi.cz:1935/ct-vod/_defins.t_?id=HRraUUgv1FKF42a-02&publisher=lss/iVysilani/2014/10/08/KristynaLiskaBokCT-081014-MP4_404p.mp4
rtmp://wcdn101.nacevi.cz:1935/ct-vod/_defins.t_?id=HRraUUgv1FKF42a-02&publisher=lss?iVysilani/2014/10/08/KristynaLiskaBokCT-081014-MP4_404p.mp4
rtmp://wcdn101.nacevi.cz:1935/ct-vod/_defins.t_?id=HRraUUgv1FKF42a-02&publisher=lss/?iVysilani/2014/10/08/KristynaLiskaBokCT-081014-MP4_404p.mp4

这是 rtpdump 所说的:

$ rtmpdump -v -r "rtmp://wcdn101.nacevi.cz:1935/ct-vod/_defins.t_?id=HRraUUgv1FKF42a-02&publisher=lss/mp4:iVysilani/2014/10/08/KristynaLiskaBokCT-081014-MP4_404p.mp4"
RTMPDump v2.4
(c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
WARNING: You haven't specified an output file (-o filename), using stdout
Connecting ...
INFO: Connected...
ERROR: Closing connection: NetStream.Play.StreamNotFound

VLC 只是不断抛出错误:

[00007f7918008088] avio access error: Failed to open rtmp://wcdn101.nacevi.cz:1935/ct-vod/_defins.t_?id=HRraUUgv1FKF42a-02&publisher=lss/mp4:iVysilani/2014/10/08/KristynaLiskaBokCT-081014-MP4_404p.mp4: Unknown error 833925547

顺便说一下,我用wireshark嗅探了RTMP数据包,通信是这样的:

>..K..O...@...p.....>pb....#../.R.yj...VE`..i.?...Z.....0....'{~.....#.Q.4!.L.Ee."j.....<.(.........+....0K...~.......x. ...r.-.%O...4[d.........D.|L.
........,..bv.D..............K..MDg./w..:...t.../.R?...^d6...g...].4.....p.?fd9.2.C..._...V../...1z,....EB..ffS`=g...+....I1;...*P...)....S...iS...............connect.?..........app..4ct-vod/_definst_?id=HRs8fcCPpFaC6ea-02&publisher=lss..flashVer...LNX 11,2,202,406..swfUrl..Thttp://i.mgct.ceskatelevize.cz/global/swf/player/player_1.45.19c.swf?version=1.45.19c..tcUrl..Rrtmp://wcdn101.nacevi.cz:1935/ct-vod/_defi.nst_?id=HRs8fcCPpFaC6ea-02&publisher=lss..fpad....capabilities.@m........audioCodecs.@.........videoCodecs.@o.......
videoFuncti.on.?.........pageUrl...http://www.ceskatelevize.cz..objectEncoding.@.......................&%..............&%..................................................._result.?..........fmsVer...FMS/3,5,7,7009..capabilities.@?........mode.?.............level...status..code...NetConnection.Connect.Success..description...Connection succeeded...data.......version..
3,5,7,7009.....clientid.A..L8.....objectEncoding.@.............m.........&%....t............createStream.@........................_result.@.........?.......B.....
...........C.....[.....FCSubscribe............?mp4:iVysilani/2014/10/08/KristynaLiskaBokCT-081014-MP4_404p.mp4...............
onFCSubscribe...........
...level.
status.code.)NetStream.Play.Start.description..%FCSubscribe to stream iVysilani/2014/10/08/KristynaLiskaBokCT-081014-MP4_404p.mp4..clientid.A..L8.......{..f.........play............?mp4:iVysilani/2014/10/08/KristynaLiskaBokCT-081014-MP4_404p.mp4..........A.[...............................onStatus.............level...status..code...NetStream.Play.Reset..description..RPlaying and resetting iVysilani/2014/10/08/KristynaLiskaBokCT-081014-MP4_404p.mp4...clientid.A..L8..........................................E..........onStatus.............level...status..code...NetStream.Play.Start..description..LStarted playing iVysilani/2014/10/08/KristynaLiskaBokCT-081014-MP4_404p.mp4...clientid.A..L8....

我确定我做错了什么,谁能给我提示如何播放这个流?

【问题讨论】:

  • 成功了吗?

标签: vlc rtmp


【解决方案1】:

我也想用 VLC 播放 RTMP 流但没有成功,并且遇到了和你一样的错误。

Unknown error 833925547

还有rtmpdump 我也收到了ERROR: Closing connection: NetStream.Play.StreamNotFound

我使用的是 Ubuntu 14.04 附带的 VLC 2.1.6 和相应版本的 rtmpdump。

所以,碰巧我把 rtmp url 给了一个使用 Windows 操作系统的朋友,一个使用 Mac 操作系统的朋友。他们都毫无问题地打开了我的网址。

VLC 可能在 Linux 上使用了一些损坏的后端(即 rtmpdump)。

我想我必须为 VLC 提交一个错误,我确实将 Ubuntu 14.04 中的 2.1.6 VLC 升级到了 2.2.1 - 它不再工作了。我自己在 Windows 中尝试过(2.2.1),它打开了!

目前我的状态如下:

    Ubuntu 14.04 
    VLC 2.1.6 - CANNOT OPEN the rtmp that I provide (myself)
    VLC 2.2.1 - CANNOT OPEN the rtmp that I provide (myself)

    Windows
    VLC 2.1.5 - OPENS WITHOUT PROBLEM the rtmp I provide (my friend)
    VLC 2.2.1 - OPENS WITHOUT PROBLEM the rtmp I provide (myself)

    Mac OS
    VLC 2.2.1 - OPENS WITHOUT PROBLEM the rtmp I provide (my friend)

【讨论】:

猜你喜欢
  • 1970-01-01
  • 2021-05-09
  • 2014-03-10
  • 1970-01-01
  • 2015-10-05
  • 1970-01-01
  • 2021-02-03
  • 1970-01-01
  • 2011-12-29
相关资源
最近更新 更多