Rtmpdump just stream metadata / Solaris
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 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. And I don't even dare to think that you could implement Nagios Check Plug-in exit codes ... which would be amazing! -- Mateusz Pawlowski | Delivery Specialist World Service Future Media, Digital Delivery Team - Part of BBC Global News Division * http://www.bbcworldservice.com/ * 500NE Bush House, Strand, London, WC2B 4PH * 02 71014 (internal) * +44 20 7557 1014 (external) * mateusz.pawlowski@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.
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 choice...
-- *****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@bbc.co.uk_ <mailto:mateusz.pawlowski@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.
Howard, Thanks for the --stop 1 , works nicely. When it comes to the flags, these are necessary for all Solaris compilations so worth putting in the Makefile to save the hassle for the others. Stdbool ... Nothing to add ... Cheers -- 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) -----Original Message----- From: rtmpdump-bounces@mplayerhq.hu [mailto:rtmpdump-bounces@mplayerhq.hu] On Behalf Of Howard Chu Sent: 02 June 2010 17:26 To: rtmpdump discussion and development Subject: Re: [rtmpdump] Rtmpdump just stream metadata / Solaris 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 choice...
-- *****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@bbc.co.uk_ <mailto:mateusz.pawlowski@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. _______________________________________________ rtmpdump mailing list rtmpdump@mplayerhq.hu https://lists.mplayerhq.hu/mailman/listinfo/rtmpdump 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.
Howard Chu wrote:
Mateusz Pawlowski wrote: [....]
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. _______________________________________________ rtmpdump mailing list rtmpdump@mplayerhq.hu https://lists.mplayerhq.hu/mailman/listinfo/rtmpdump
Thank you for that comment :-P -rasp -- The primary purpose of the DATA statement is to give names to constants; instead of referring to pi as 3.141592653589793 at every appearance, the variable PI can be given that value with a DATA statement and used instead of the longer form of the constant. This also simplifies modifying the program, should the value of pi change. -- FORTRAN manual for Xerox Computers
participants (3)
-
Howard Chu -
Mateusz Pawlowski -
Ralph Spitzner