title: How to open RTMP stream in VLC?
body: <p>I cannot figure out how to play RTMP stream from VLC. I can view it on the web through flash player without problems. I found the information about the stream through firebug:</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;data&gt;
    &lt;smilRoot&gt;
      &lt;body&gt;
        &lt;switchItem id="0-BO-18166" base="rtmp://wcdn101.nacevi.cz/ct-vod/_definst_?id=HRr8GUgv1FcCBzw1-01&amp;amp;publisher=lss" begin="0" duration="134" clipBegin="0" type="recorded" stat="ProjectId=3;ApplicationId=4;NodeId=9"&gt;
          &lt;video src="mp4:iVysilani/2014/10/08/KristynaLiskaBokCT-081014-MP4_720p.mp4" system-bitrate="3500" label="720p" enabled="true" /&gt;
          &lt;video src="mp4:iVysilani/2014/10/08/KristynaLiskaBokCT-081014-MP4_576p.mp4" system-bitrate="2000" label="576p" enabled="true" /&gt;
          &lt;video src="mp4:iVysilani/2014/10/08/KristynaLiskaBokCT-081014-MP4_404p.mp4" system-bitrate="1000" label="404p" enabled="true" /&gt;
          &lt;video src="mp4:iVysilani/2014/10/08/KristynaLiskaBokCT-081014-MP4_288p.mp4" system-bitrate="500" label="288p" enabled="true" /&gt;
        &lt;/switchItem&gt;
      &lt;/body&gt;
    &lt;/smilRoot&gt;
  &lt;/data&gt;
  </code></pre>
  
  <p>I was trying to play the 404p stream using rtmpdump, vlc, and also their combination. I am not quite sure how to glue the URL, however I tried all the combinations I could think of. Some examples I tried:</p>
  
  <pre><code>rtmp://wcdn101.nacevi.cz:1935/ct-vod/_defins.t_?id=HRraUUgv1FKF42a-02&amp;publisher=lss/mp4:iVysilani/2014/10/08/KristynaLiskaBokCT-081014-MP4_404p.mp4
  rtmp://wcdn101.nacevi.cz:1935/ct-vod/_defins.t_?id=HRraUUgv1FKF42a-02&amp;publisher=lss?mp4:iVysilani/2014/10/08/KristynaLiskaBokCT-081014-MP4_404p.mp4
  rtmp://wcdn101.nacevi.cz:1935/ct-vod/_defins.t_?id=HRraUUgv1FKF42a-02&amp;publisher=lss/?mp4:iVysilani/2014/10/08/KristynaLiskaBokCT-081014-MP4_404p.mp4
  rtmp://wcdn101.nacevi.cz:1935/ct-vod/_defins.t_?id=HRraUUgv1FKF42a-02&amp;publisher=lss/iVysilani/2014/10/08/KristynaLiskaBokCT-081014-MP4_404p.mp4
  rtmp://wcdn101.nacevi.cz:1935/ct-vod/_defins.t_?id=HRraUUgv1FKF42a-02&amp;publisher=lss?iVysilani/2014/10/08/KristynaLiskaBokCT-081014-MP4_404p.mp4
  rtmp://wcdn101.nacevi.cz:1935/ct-vod/_defins.t_?id=HRraUUgv1FKF42a-02&amp;publisher=lss/?iVysilani/2014/10/08/KristynaLiskaBokCT-081014-MP4_404p.mp4
  </code></pre>
  
  <p>Here is what rtpdump says:</p>
  
  <pre><code>$ rtmpdump -v -r "rtmp://wcdn101.nacevi.cz:1935/ct-vod/_defins.t_?id=HRraUUgv1FKF42a-02&amp;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
  </code></pre>
  
  <p>VLC just keeps throwing errors:</p>
  
  <pre><code>[00007f7918008088] avio access error: Failed to open rtmp://wcdn101.nacevi.cz:1935/ct-vod/_defins.t_?id=HRraUUgv1FKF42a-02&amp;publisher=lss/mp4:iVysilani/2014/10/08/KristynaLiskaBokCT-081014-MP4_404p.mp4: Unknown error 833925547
  </code></pre>
  
  <p>By the way I sniffed the RTMP packets with wireshark, and the communication looks like this:</p>
  
  <pre><code>&gt;..K..O...@...p.....&gt;pb....#../.R.yj...VE`..i.?...Z.....0....'{~.....#.Q.4!.L.Ee."j.....&lt;.(.........+....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&amp;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&amp;publisher=lss..fpad....capabilities.@m........audioCodecs.@.........videoCodecs.@o.......
  videoFuncti.on.?.........pageUrl...http://www.ceskatelevize.cz..objectEncoding.@.......................&amp;%..............&amp;%..................................................._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.........&amp;%....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....
  </code></pre>
  
  <p>I am sure I'm doing something wrong, can anyone give me a hint how to play this stream?</p>