[FFmpeg-trac] #6363(ffmpeg:new): Can't connect to some rtmp streams

FFmpeg trac at avcodec.org
Tue May 2 13:08:33 EEST 2017


#6363: Can't connect to some rtmp streams
---------------------------------+---------------------------------------
             Reporter:  Rudloff  |                     Type:  defect
               Status:  new      |                 Priority:  normal
            Component:  ffmpeg   |                  Version:  unspecified
             Keywords:  rtmp     |               Blocked By:
             Blocking:           |  Reproduced by developer:  0
Analyzed by developer:  0        |
---------------------------------+---------------------------------------
 Hello,

 I'm trying to convert some RTMP streams but ffmpeg fails to connect
 correctly.

 Here is an example with a publicly available stream report:
 {{{
 ffmpeg started on 2017-05-02 at 12:01:21
 Report written to "ffmpeg-20170502-120121.log"
 Command line:
 ./vendor/bin/ffmpeg -i rtmp://cp108781.edgefcs.net/ondemand/flv_free/vipo
 /grip-das-motormagazin/1-video-grip-203-koenig-von-grip-
 PR013216_01SU2HF952T11SVS_10000000_10423806.f4v -rtmp_tcurl
 rtmp://cp108781.edgefcs.net/ondemand/flv_free/vipo/grip-das-motormagazin/1
 -video-grip-203-koenig-von-grip-
 PR013216_01SU2HF952T11SVS_10000000_10423806.f4v -rtmp_pageurl
 http://www.rtl2.de/sendung/grip-das-motormagazin/folge/folge-203-0
 -rtmp_swfverify http://www.rtl2.de/flashplayer/vipo_player.swf
 -rtmp_flashver "LNX 11,2,202,429" -rtmp_playpath mp4:flv_free/vipo/grip-
 das-motormagazin/1-video-grip-203-koenig-von-grip-
 PR013216_01SU2HF952T11SVS_10000000_10423806.f4v -rtmp_conn S:connect
 -rtmp_conn O:1 -rtmp_conn NS:pageUrl:http://www.rtl2.de/sendung/grip-das-
 motormagazin/folge/folge-203-0/ -rtmp_conn NB:fpad:0 -rtmp_conn
 NN:videoFunction:1 -rtmp_conn O:0 -report
 ffmpeg version 3.3-static http://johnvansickle.com/ffmpeg/  Copyright (c)
 2000-2017 the FFmpeg developers
   built with gcc 5.4.1 (Debian 5.4.1-8) 20170304
   configuration: --enable-gpl --enable-version3 --enable-static --disable-
 debug --disable-ffplay --disable-indev=sndio --disable-outdev=sndio
 --cc=gcc-5 --enable-fontconfig --enable-frei0r --enable-gnutls --enable-
 gray --enable-libass --enable-libfreetype --enable-libfribidi --enable-
 libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-
 libopenjpeg --enable-libopus --enable-librtmp --enable-libsoxr --enable-
 libspeex --enable-libtheora --enable-libvidstab --enable-libvo-amrwbenc
 --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264
 --enable-libx265 --enable-libxvid --enable-libzimg
   libavutil      55. 58.100 / 55. 58.100
   libavcodec     57. 89.100 / 57. 89.100
   libavformat    57. 71.100 / 57. 71.100
   libavdevice    57.  6.100 / 57.  6.100
   libavfilter     6. 82.100 /  6. 82.100
   libswscale      4.  6.100 /  4.  6.100
   libswresample   2.  7.100 /  2.  7.100
   libpostproc    54.  5.100 / 54.  5.100
 Splitting the commandline.
 Reading option '-i' ... matched as input url with argument
 'rtmp://cp108781.edgefcs.net/ondemand/flv_free/vipo/grip-das-
 motormagazin/1-video-grip-203-koenig-von-grip-
 PR013216_01SU2HF952T11SVS_10000000_10423806.f4v'.
 Reading option '-rtmp_tcurl' ... matched as AVOption 'rtmp_tcurl' with
 argument 'rtmp://cp108781.edgefcs.net/ondemand/flv_free/vipo/grip-das-
 motormagazin/1-video-grip-203-koenig-von-grip-
 PR013216_01SU2HF952T11SVS_10000000_10423806.f4v'.
 Reading option '-rtmp_pageurl' ... matched as AVOption 'rtmp_pageurl' with
 argument 'http://www.rtl2.de/sendung/grip-das-
 motormagazin/folge/folge-203-0'.
 Reading option '-rtmp_swfverify' ... matched as AVOption 'rtmp_swfverify'
 with argument 'http://www.rtl2.de/flashplayer/vipo_player.swf'.
 Reading option '-rtmp_flashver' ... matched as AVOption 'rtmp_flashver'
 with argument 'LNX 11,2,202,429'.
 Reading option '-rtmp_playpath' ... matched as AVOption 'rtmp_playpath'
 with argument 'mp4:flv_free/vipo/grip-das-motormagazin/1-video-grip-203
 -koenig-von-grip-PR013216_01SU2HF952T11SVS_10000000_10423806.f4v'.
 Reading option '-rtmp_conn' ... matched as AVOption 'rtmp_conn' with
 argument 'S:connect'.
 Reading option '-rtmp_conn' ... matched as AVOption 'rtmp_conn' with
 argument 'O:1'.
 Reading option '-rtmp_conn' ... matched as AVOption 'rtmp_conn' with
 argument 'NS:pageUrl:http://www.rtl2.de/sendung/grip-das-
 motormagazin/folge/folge-203-0/'.
 Reading option '-rtmp_conn' ... matched as AVOption 'rtmp_conn' with
 argument 'NB:fpad:0'.
 Reading option '-rtmp_conn' ... matched as AVOption 'rtmp_conn' with
 argument 'NN:videoFunction:1'.
 Reading option '-rtmp_conn' ... matched as AVOption 'rtmp_conn' with
 argument 'O:0'.
 Reading option '-report' ... matched as option 'report' (generate a
 report) with argument '1'.
 Trailing options were found on the commandline.
 Finished splitting the commandline.
 Parsing a group of options: global .
 Applying option report (generate a report) with argument 1.
 Successfully parsed a group of options.
 Parsing a group of options: input url
 rtmp://cp108781.edgefcs.net/ondemand/flv_free/vipo/grip-das-motormagazin/1
 -video-grip-203-koenig-von-grip-
 PR013216_01SU2HF952T11SVS_10000000_10423806.f4v.
 Successfully parsed a group of options.
 Opening an input file: rtmp://cp108781.edgefcs.net/ondemand/flv_free/vipo
 /grip-das-motormagazin/1-video-grip-203-koenig-von-grip-
 PR013216_01SU2HF952T11SVS_10000000_10423806.f4v.
 [rtmp @ 0x4a634e0] No default whitelist set
 rtmp server sent error
 rtmp server requested close
 rtmp://cp108781.edgefcs.net/ondemand/flv_free/vipo/grip-das-motormagazin/1
 -video-grip-203-koenig-von-grip-
 PR013216_01SU2HF952T11SVS_10000000_10423806.f4v: Unknown error occurred
 }}}

 It seems the server returns a {{{NetConnection.Connect.Rejected}}} error.

 The same stream works correctly when using rtmpdump like this:
 {{{
 rtmpdump '--rtmp' 'rtmp://cp108781.edgefcs.net/ondemand/flv_free/vipo
 /grip-das-motormagazin/1-video-grip-203-koenig-von-grip-
 PR013216_01SU2HF952T11SVS_10000000_10423806.f4v' '--pageUrl'
 'http://www.rtl2.de/sendung/grip-das-motormagazin/folge/folge-203-0' '--
 swfVfy' 'http://www.rtl2.de/flashplayer/vipo_player.swf' '--flashVer' 'LNX
 11,2,202,429' '--playpath' 'mp4:flv_free/vipo/grip-das-motormagazin/1
 -video-grip-203-koenig-von-grip-
 PR013216_01SU2HF952T11SVS_10000000_10423806.f4v' '--conn' 'S:connect' '--
 conn' 'O:1' '--conn' 'NS:pageUrl:http://www.rtl2.de/sendung/grip-das-
 motormagazin/folge/folge-203-0/' '--conn' 'NB:fpad:0' '--conn'
 'NN:videoFunction:1' '--conn' 'O:0'
 }}}

--
Ticket URL: <https://trac.ffmpeg.org/ticket/6363>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list