Seems to me like you're using the wrong tool for the job here. ffmpeg can be built with rtmpdump's librtmp, you could just use that. ffmpeg "rtmp://stream2.france24.yacast.net/france24_live/en app=france24_live/en swfUrl=http://www.france24.com/en/sites/all/modules/maison/aef_player/flash/playe...