[rtmpdump] Rtmpdump just stream metadata / Solaris

Howard Chu hyc at highlandsun.com
Wed Jun 2 18:26:05 CEST 2010

Mateusz Pawlowski wrote:
> Hi,
> I am looking into using rtmpdump to fetch stream metadata for monitoring
> purposes.
> We are planning on using it on Solaris 10
> Little bit of fiddling with Makefile allowed me to compile it :
> The CFLAGS needs -std=c99 as compiler stops when including sdtbool.
> The LDFLAGS needs -lnsl -lsocket to link the network libs

Fiddling with the Makefile should generally not be necessary. Just set 
whatever additional flags you want on the commandline. e.g.

	make XLDFLAGS="-lnsl -lsocket" XCFLAGS=-std=c99

re: stdbool - that was just a bad idea all around; next release will not use 
bool any more.

> Now, as haven't touched C code in ages. I'm a bit struggling to modify
> rtmpdump enough to get it list the metadata and then stop the stream ( as we
> have no need for anything more ).
> So would it be possible if you could help me and point me how to modify the
> code or if you are feeling generous add another command switch ( like
> --metadataonly ) and have it print only that.

I suggest you just use --stop 1.

> And I don't even dare to think that you could implement Nagios Check Plug-in
> exit codes … which would be amazing!

The current exit codes are already documented and in wide use. You should be 
able to turn them into whatever you want using the scripting language of your 

> --
> *****Mateusz Pawlowski* | Delivery Specialist
> World Service Future Media, Digital Delivery Team - Part of BBC Global News
> Division
> 8 _http://www.bbcworldservice.com/_ + 500NE Bush House, Strand, London, WC2B 4PH
> ( 02 71014 (internal) ( +44 20 7557 1014 (external) .
> _mateusz.pawlowski at bbc.co.uk_ <mailto:mateusz.pawlowski at bbc.co.uk>
> http://www.bbc.co.uk
> This e-mail (and any attachments) is confidential and may contain personal
> views which are not the views of the BBC unless specifically stated.
> If you have received it in error, please delete it from your system.
> Do not use, copy or disclose the information in any way nor act in reliance on
> it and notify the sender immediately.
> Please note that the BBC monitors e-mails sent or received.
> Further communication will signify your consent to this.

This email was sent to a public mailing list. My response on public lists in 
no way confers consent to any usage policies or obligations imposed by any 
other entity.

More information about the rtmpdump mailing list