<html>
    <head>
      <base href="https://bugzilla.libav.org/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Stream works with librtmp but not native rtmp"
   href="https://bugzilla.libav.org/show_bug.cgi?id=943">943</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Stream works with librtmp but not native rtmp
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>Libav
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>git HEAD
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>X86
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Windows
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>---
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>libavformat
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>bugzilla@libav.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>wiiaboo@gmail.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Trying to consume a stream from hitbox.tv, avconv fails when compiled with
native rtmp demuxer/decoder but succeeds with librtmp.

With native rtmp it returns "Input/output error".

$ ./avconv-avrtmp -rtmp_swfverify
"<a href="http://www.hitbox.tv/static/player/flowplayer/flowplayer.commercial-3.2.16.swf">http://www.hitbox.tv/static/player/flowplayer/flowplayer.commercial-3.2.16.swf</a>"
-i rtmp://edge.live.hitbox.tv/live/csgobattle
avconv version v12_dev0-2750-g3399a26, Copyright (c) 2000-2016 the Libav
developers
  built on May 21 2016 21:13:27 with gcc 5.3.0 (Rev5, Built by MSYS2 project)
rtmp://edge.live.hitbox.tv/live/csgobattle: Input/output error

$ ./avconv-avrtmp -rtmp_swfsize 259809 -rtmp_swfhash
7520eecf7b4f3346254728ab53ad99c4bd800e34c78ccf47553170a0986b88a3 -i
rtmp://edge.live.hitbox.tv/live/csgobattle
avconv version v12_dev0-2750-g3399a26, Copyright (c) 2000-2016 the Libav
developers
  built on May 21 2016 21:13:27 with gcc 5.3.0 (Rev5, Built by MSYS2 project)
rtmp://edge.live.hitbox.tv/live/csgobattle: Input/output error

$ ./avconv-librtmp -rtmp_swfverify
"<a href="http://www.hitbox.tv/static/player/flowplayer/flowplayer.commercial-3.2.16.swf">http://www.hitbox.tv/static/player/flowplayer/flowplayer.commercial-3.2.16.swf</a>"
-i rtmp://edge.live.hitbox.tv/live/csgobattle
avconv version v12_dev0-2750-g3399a26, Copyright (c) 2000-2016 the Libav
developers
  built on May 21 2016 21:52:19 with gcc 5.3.0 (Rev5, Built by MSYS2 project)
Metadata:
  Server                NGINX RTMP (github.com/arut/nginx-rtmp-module)
  width                 1280.00
  height                720.00
  displayWidth          1280.00
  displayHeight         720.00
  duration              0.00
  framerate             48.00
  fps                   48.00
  videodatarate         2500.00
  videocodecid          0.00
  audiodatarate         160.00
  audiocodecid          16.00
[flv @ 0000000001ca2be0] max_analyze_duration 5000000 reached
Input #0, flv, from 'rtmp://edge.live.hitbox.tv/live/csgobattle':
  Metadata:
    Server          : NGINX RTMP (github.com/arut/nginx-rtmp-module)
    displayWidth    : 1280
    displayHeight   : 720
    fps             : 48
    profile         :
    level           :
  Duration: 00:00:00.00, start: 50059.273000, bitrate: N/A
    Stream #0:0: Video: h264 (High)
      yuv420p, 1280x720
      48 fps, 1k tbn
    Stream #0:1: Audio: aac (LC)
      44100 Hz, stereo, fltp
At least one output file must be specified

$ ./avconv-avrtmp -v 9 -loglevel 99 -rtmp_swfverify
"<a href="http://www.hitbox.tv/static/player/flowplayer/flowplayer.commercial-3.2.16.swf">http://www.hitbox.tv/static/player/flowplayer/flowplayer.commercial-3.2.16.swf</a>"
-i rtmp://edge.live.hitbox.tv/live/csgobattle
avconv version v12_dev0-2750-g3399a26, Copyright (c) 2000-2016 the Libav
developers
  built on May 21 2016 21:13:27 with gcc 5.3.0 (Rev5, Built by MSYS2 project)
  configuration: --enable-libx264 --enable-libvpx --enable-libopus
--disable-avplay --disable-doc --disable-debug --enable-gpl
  libavutil     55. 12. 0 / 55. 12. 0
  libavcodec    57. 19. 0 / 57. 19. 0
  libavformat   57.  7. 1 / 57.  7. 1
  libavdevice   56.  1. 0 / 56.  1. 0
  libavfilter    6.  4. 0 /  6.  4. 0
  libavresample  3.  0. 0 /  3.  0. 0
  libswscale     4.  0. 0 /  4.  0. 0
Splitting the commandline.
Reading option '-v' ... matched as option 'v' (set libav* logging level) with
argument '9'.
Reading option '-loglevel' ... matched as option 'loglevel' (set libav* logging
level) with argument '99'.
Reading option '-rtmp_swfverify' ... matched as AVOption 'rtmp_swfverify' with
argument
'<a href="http://www.hitbox.tv/static/player/flowplayer/flowplayer.commercial-3.2.16.swf">http://www.hitbox.tv/static/player/flowplayer/flowplayer.commercial-3.2.16.swf</a>'.
Reading option '-i' ... matched as input file with argument
'rtmp://edge.live.hitbox.tv/live/csgobattle'.
Finished splitting the commandline.
Parsing a group of options: global .
Applying option v (set libav* logging level) with argument 9.
Successfully parsed a group of options.
Parsing a group of options: input file
rtmp://edge.live.hitbox.tv/live/csgobattle.
Successfully parsed a group of options.
Opening an input file: rtmp://edge.live.hitbox.tv/live/csgobattle.
header='HTTP/1.1 206 Partial Content'
http_code=206
header='Cache-Control: max-age=300'
header='Cache-control: no-cache="set-cookie"'
header='Content-Range: bytes 0-132416/132417'
header='Content-Type: application/x-shockwave-flash'
header='Date: Sat, 21 May 2016 21:06:53 GMT'
header='ETag: "545ba6b5-20541"'
header='Expires: Sat, 21 May 2016 21:11:53 GMT'
header='Last-Modified: Thu, 06 Nov 2014 16:49:57 GMT'
header='Server: nginx'
header='Set-Cookie:
AWSELB=EDE369670649650E3880CE5FA6A3E157659CF64C183B8864E9DE51C3F02B9A108C561BC4BC074B299C47AC419CEE994B2DD1C4609F97180663163D42651F72545FC628E147;PATH=/;MAX-AGE=90'
header='X-GEOIP-COUNTRY-CODE: PT'
header='Content-Length: 132417'
header='Connection: Close'
header=''
[rtmp @ 000000000334b0e0] Handshaking...
[rtmp @ 000000000334b0e0] Type answer 3
[rtmp @ 000000000334b0e0] Server version 13.14.10.13
[rtmp @ 000000000334b0e0] Proto = rtmp, path = /live/csgobattle, app = live,
fname = csgobattle
[rtmp @ 000000000334b0e0] Server bandwidth = 5000000
[rtmp @ 000000000334b0e0] Client bandwidth = 5000000
[rtmp @ 000000000334b0e0] New incoming chunk size = 16384
[rtmp @ 000000000334b0e0] Creating stream...
[rtmp @ 000000000334b0e0] Sending play command for 'csgobattle'
rtmp://edge.live.hitbox.tv/live/csgobattle: Input/output error

$ ./avconv-librtmp -v 9 -loglevel 99 -rtmp_swfverify
"<a href="http://www.hitbox.tv/static/player/flowplayer/flowplayer.commercial-3.2.16.swf">http://www.hitbox.tv/static/player/flowplayer/flowplayer.commercial-3.2.16.swf</a>"
-i rtmp://edge.live.hitbox.tv/live/csgobattle
avconv version v12_dev0-2750-g3399a26, Copyright (c) 2000-2016 the Libav
developers
  built on May 21 2016 21:52:19 with gcc 5.3.0 (Rev5, Built by MSYS2 project)
  configuration: --enable-libx264 --enable-libvpx --enable-libopus
--disable-avplay --disable-doc --disable-debug --enable-gpl --enable-librtmp
--pkg-config-flags=--static
  libavutil     55. 12. 0 / 55. 12. 0
  libavcodec    57. 19. 0 / 57. 19. 0
  libavformat   57.  7. 1 / 57.  7. 1
  libavdevice   56.  1. 0 / 56.  1. 0
  libavfilter    6.  4. 0 /  6.  4. 0
  libavresample  3.  0. 0 /  3.  0. 0
  libswscale     4.  0. 0 /  4.  0. 0
Splitting the commandline.
Reading option '-v' ... matched as option 'v' (set libav* logging level) with
argument '9'.
Reading option '-loglevel' ... matched as option 'loglevel' (set libav* logging
level) with argument '99'.
Reading option '-rtmp_swfverify' ... matched as AVOption 'rtmp_swfverify' with
argument
'<a href="http://www.hitbox.tv/static/player/flowplayer/flowplayer.commercial-3.2.16.swf">http://www.hitbox.tv/static/player/flowplayer/flowplayer.commercial-3.2.16.swf</a>'.
Reading option '-i' ... matched as input file with argument
'rtmp://edge.live.hitbox.tv/live/csgobattle'.
Finished splitting the commandline.
Parsing a group of options: global .
Applying option v (set libav* logging level) with argument 9.
Successfully parsed a group of options.
Parsing a group of options: input file
rtmp://edge.live.hitbox.tv/live/csgobattle.
Successfully parsed a group of options.
Opening an input file: rtmp://edge.live.hitbox.tv/live/csgobattle.
score: 1, dvhs_score: 1, fec_score: 1
nsv_probe(), buf_size 2048
[flv @ 0000000000362d80] Probed with size=2048 and score=100
[flv @ 0000000000362d80] type:18, size:387, dts:0
[flv @ 0000000000362d80] Skipping flv packet: type 18, size 387, flags 0.
[flv @ 0000000000362d80] type:9, size:44, dts:50190541
[flv @ 0000000000362d80] 0 17 0
[flv @ 0000000000362d80] type:9, size:39927, dts:50190562
[flv @ 0000000000362d80] 0 17 0
IN delayed:1 pts:50190603, dts:50190562 cur_dts:0 st:0 pc:0000000000000000
OUTdelayed:1/0 pts:50190603, dts:50190562 cur_dts:50190562
[h264 @ 0000000001bb5a40] nal_unit_type: 7, nal_ref_idc: 3
[h264 @ 0000000001bb5a40] nal_unit_type: 8, nal_ref_idc: 3
[h264 @ 0000000001bb5a40] nal_unit_type: 5, nal_ref_idc: 3
[h264 @ 0000000001bb5a40] no picture
[flv @ 0000000000362d80] type:8, size:7, dts:50190558
[flv @ 0000000000362d80] 1 AF 0
[flv @ 0000000000362d80] mp4a config channels 2 sample rate 44100
[flv @ 0000000000362d80] type:8, size:426, dts:50190582
[flv @ 0000000000362d80] 1 AF 0
IN delayed:0 pts:50190582, dts:50190582 cur_dts:0 st:1 pc:0000000000000000
OUTdelayed:0/0 pts:50190582, dts:50190582 cur_dts:50190582
[flv @ 0000000000362d80] type:9, size:9452, dts:50190583
[flv @ 0000000000362d80] 0 27 0
IN delayed:1 pts:50190666, dts:50190583 cur_dts:50190562 st:0
pc:0000000000000000
OUTdelayed:1/2 pts:50190666, dts:50190583 cur_dts:50190583
[h264 @ 0000000001bb5a40] nal_unit_type: 1, nal_ref_idc: 2
[h264 @ 0000000001bb5a40] no picture
[flv @ 0000000000362d80] type:9, size:5588, dts:50190604
[flv @ 0000000000362d80] 0 27 0
IN delayed:1 pts:50190624, dts:50190604 cur_dts:50190583 st:0
pc:0000000000000000
OUTdelayed:1/2 pts:50190624, dts:50190604 cur_dts:50190604

[ previous output repeated a lot ]

Input #0, flv, from 'rtmp://edge.live.hitbox.tv/live/csgobattle':
  Metadata:
    Server          : NGINX RTMP (github.com/arut/nginx-rtmp-module)
    displayWidth    : 1280
    displayHeight   : 720
    fps             : 48
    profile         :
    level           :
  Duration: 00:00:00.00, start: 50190.582000, bitrate: N/A
    Stream #0:0, 242, 1/1000: Video: h264 (High)
      yuv420p, left, 1280x720 (0x0), 0/1
      48 fps, 1k tbn
    Stream #0:1, 217, 1/1000: Audio: aac (LC)
      44100 Hz, stereo, fltp
Successfully opened the file.
At least one output file must be specified</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are watching all bug changes.</li>
      </ul>
    </body>
</html>