[rtmpdump] Proposal: dynamically loadable plugins
Antti Ajanki
antti.ajanki at iki.fi
Mon Jan 9 22:16:01 CET 2012
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Callback-API.patch
Type: text/x-diff
Size: 10739 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/rtmpdump/attachments/20120109/7a299fef/attachment-0004.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-Implement-support-for-dynamically-loadable-plugins.patch
Type: text/x-diff
Size: 27656 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/rtmpdump/attachments/20120109/7a299fef/attachment-0005.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0003-rtmpdump-Use-RTMP_SetupUrl-instead-of-RTMP_ParseURL.patch
Type: text/x-diff
Size: 1837 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/rtmpdump/attachments/20120109/7a299fef/attachment-0006.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0004-Print-plugin-information-in-rtmpdump-usage-message.patch
Type: text/x-diff
Size: 833 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/rtmpdump/attachments/20120109/7a299fef/attachment-0007.bin>
More information about the rtmpdump
mailing list