[FFmpeg-user] How can I get rtmp with ffmpeg? Setting swfsize and hash? >

Moritz Barsnick barsnick at gmx.net
Fri May 12 20:26:05 EEST 2017

On Fri, May 12, 2017 at 15:42:12 +0300, Sinan Aksu wrote:
> It works with rtmpdump but I can not run it with ffmpeg. I need to set
> swfsize and hash, but I can not set it.

Did you check the documentation?

If your ffmpeg used the native (i.e. ffmpeg's own) implementation of
RTMP, there are corresponding options for (hopefully) all those options
you mentioned:


The rtmpdump option -a/--app maps to -rtmp_app, the option
-f/--flashVer maps to "-rtmp_flashver", and so on. So you are looking
for "-rtmp_swfsize" and "-rtmp_swfhash".

If your build of ffmpeg uses librtmp, those options are part of the URL
you give to ffmpeg, as documented here:
and in the librtmp man page:

> Rtmpdump running version: rtmpdump -r rtmpe:// -a xlive
> -f WIN 23,0,0,162 -s http://sportstream365.com/swf/VideoPlayer.swf -w
> 5aaaa32059cba732636c28519b2ce34a3568f1058a8bd02d6a932643554ccbb4 -x 585534
> -p 'http://sportstream365.com/viewer?game=109968871' -C S:client -C
> S: -C S:en --live -y raw:600238
> Could you give a sample ffmpeg command.

The above command does not work for me, so I can't check whether my
attempt to map it to ffmpeg would work.


More information about the ffmpeg-user mailing list