[rtmpdump] Proposal: dynamically loadable plugins

Kirill Zorin cyril.zorin at gmail.com
Wed Jan 11 02:09:48 CET 2012


Would it be possible to allow an option to build a bunch of plugins statically as part of the rtmpdump binary? Dynamic linking/loading is not as widely supported as it used to be, particularly with the increasing popularity of mobile platforms.

On 2012-01-09, at 4:16 PM, Antti Ajanki <antti.ajanki at iki.fi> wrote:

> Hi,
> 
> These patches implement the plugin API I proposed in my previous mail. There is also a slightly modified version of the callback patch included. Thanks for Adam for the comments. The same patches are also available here:
> 
> git clone http://users.tkk.fi/~aajanki/rtmpdump-yle/rtmpdump.git
> 
> This has been tested only on Linux. It also cross-compiles on mingw, but I haven't tried running it on Windows.
> 
> The patches add two new dependencies: libltdl for cross-platform dynamic library loading support and pthreads for synchronizing the loading of the plugins.
> 
> Here is a plugin (together with fully patches rtmpdump sources) that uses the API: http://users.tkk.fi/~aajanki/rtmpdump-yle/yle-dl-1.99.1.tar.gz
> 
> The plugin does custom authentication for http://areena-beta.yle.fi/ng/areena site. An example command for testing the plugin:
> 
> rtmpdump -r "rtmp://flashu.yle.fi/mediakanta//x swfUrl=http://areena-beta.yle.fi/static/player/1.1/flowplayer/flowplayer.cluster-3.2.3.swf tcUrl=rtmp://flashu.yle.fi/mediakanta/ pageUrl=http://areena-beta.yle.fi/ng/areena/tv/1370427/#/play yle=2f4d1d102a34462696ad23573adfd296" -o video.flv
> 
> Antti
> <0001-Callback-API.patch>
> <0002-Implement-support-for-dynamically-loadable-plugins.patch>
> <0003-rtmpdump-Use-RTMP_SetupUrl-instead-of-RTMP_ParseURL.patch>
> <0004-Print-plugin-information-in-rtmpdump-usage-message.patch>
> _______________________________________________
> rtmpdump mailing list
> rtmpdump at mplayerhq.hu
> https://lists.mplayerhq.hu/mailman/listinfo/rtmpdump


More information about the rtmpdump mailing list