<div dir="ltr"><div>Under your mountpoint settings you can state a program that is run when the source is started/stopped.</div><div><br></div><div>It is passed a parameter which is the name of the mountpoint that is starting. The processing of the stream does not wait for the script to end.</div><div><br></div><div style="margin-left:40px"><span style="font-family:monospace"><mount><br>    <mount-name>/example-complex.ogg</mount-name><br>    <username>othersource</username><br>    <password>hackmemore</password><br>    <max-listeners>1000</max-listeners><br>    <fallback-mount>/example2.ogg</fallback-mount><br>    <fallback-override>1</fallback-override><br>    <fallback-when-full>1</fallback-when-full><br>    <public>1</public><br>    <bitrate>64</bitrate><br><span style="background-color:rgb(255,255,0)">    <on-connect>/home/icecast/bin/source-start</on-connect><br>    <on-disconnect>/home/icecast/bin/source-end</on-disconnect></span><br></mount></span></div><div><br></div><div>The /home/icecast/bin/source-start file could be:</div><div><br></div><div><div style="margin-left:40px"><span style="font-family:monospace">#!/bin/bash<br>/bin/echo "Stream - Start: " $(date) >> var/log/encoder.log</span><br></div><br></div><div>And the 
/home/icecast/bin/source-stop file could be: <br></div><div><br></div><div><div style="margin-left:40px"><span style="font-family:monospace">#!/bin/bash<br>/bin/echo "Stream - Stop : " $(date) >> var/log/encoder.log</span><br></div></div><div><br></div><div>Use appropriate pathnames for your set up.</div><div><br></div><div>And then you might end up with an encoder.log file that looks a little like this:</div><div><br></div><div><span style="font-family:monospace">Stream -  Stop :  Wed Dec 1 10:20:49 GMT 2021<br>
Stream  - Start:  Wed Dec 1 10:21:43 GMT 2021<br>
Stream  - Stop :  Thu Dec 23 04:59:13 GMT 2021<br>
Stream  - Start:  Thu Dec 23 04:59:21 GMT 2021<br>
Stream  - Stop :  Fri Feb 4 06:28:39 GMT 2022<br>
Stream  - Start:  Fri Feb 4 06:28:48 GMT 2022</span></div><div><br></div><div>That will show you when an encoder has connected/disconnected.</div><div><br></div><div>Hope that helps</div><div><br></div><div>Chip Scooter<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, 14 Feb 2022 at 12:29, Richard Bartholomew <<a href="mailto:rlbart53@gmail.com">rlbart53@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="overflow-wrap: break-word;" lang="EN-GB"><div class="gmail-m_3146132741880187472WordSection1"><p class="MsoNormal"><font size="2" face="Calibri"><span style="font-size:11pt">Hi,<u></u><u></u></span></font></p><p class="MsoNormal"><font size="2" face="Calibri"><span style="font-size:11pt"><u></u> <u></u></span></font></p><p class="MsoNormal"><font size="2" face="Calibri"><span style="font-size:11pt">Is there a way, please, of being able to see historical connection details in V2.4.4? For example, I wish to be able to see when a presenter disconnected from the server and the following one connected in order to be able to troubleshoot a problem. Since the incident, there have been subsequent connections and, so, the admin page doesn't show the info I'm after as it shows the current status.<u></u><u></u></span></font></p><p class="MsoNormal"><font size="2" face="Calibri"><span style="font-size:11pt"><u></u> <u></u></span></font></p><p class="MsoNormal"><font size="2" face="Calibri"><span style="font-size:11pt">I've had a look through the access.log file but this doesn't seem to detail when a streaming connection is made or dropped. The software being used for streaming is Station Playlist and I can see lots of entries for this but it all seems to be related to getting listener stats!<u></u><u></u></span></font></p><p class="MsoNormal"><font size="2" face="Calibri"><span style="font-size:11pt"><u></u> <u></u></span></font></p><p class="MsoNormal"><font size="2" face="Calibri"><span style="font-size:11pt">Maybe I'm not interpreting the access.log correctly but if anyone can shed any light upon what I'm trying to do, I'd really appreciate it.<u></u><u></u></span></font></p><p class="MsoNormal"><font size="2" face="Calibri"><span style="font-size:11pt"><u></u> <u></u></span></font></p><p class="MsoNormal"><font size="2" face="Calibri"><span style="font-size:11pt">Thanks for any help.<u></u><u></u></span></font></p><p class="MsoNormal"><font size="2" face="Calibri"><span style="font-size:11pt"><u></u> <u></u></span></font></p><p class="MsoNormal"><font size="2" face="Calibri"><span style="font-size:11pt">Regards<u></u><u></u></span></font></p><p class="MsoNormal"><font size="2" face="Calibri"><span style="font-size:11pt">Richard Bartholomew<u></u><u></u></span></font></p><p class="MsoNormal"><font size="2" face="Calibri"><span style="font-size:11pt"><u></u> <u></u></span></font></p><p class="MsoNormal"><font size="2" face="Calibri"><span style="font-size:11pt"><u></u> <u></u></span></font></p></div></div>_______________________________________________<br>
Icecast mailing list<br>
<a href="mailto:Icecast@xiph.org" target="_blank">Icecast@xiph.org</a><br>
<a href="http://lists.xiph.org/mailman/listinfo/icecast" rel="noreferrer" target="_blank">http://lists.xiph.org/mailman/listinfo/icecast</a><br>
</blockquote></div>