Adding a libsndfile package to the repository (and a dependency for whatever package you come up with) isn't a problem so don't let that stop you. ffmpeg has become quite a large beast so may be overkill for this but implementing the cluster detection in Jim would be an interesting project too : )Using this silence program isn't ideal because it requires libsndfile, which also has to be compiled on the Humax. I think it would be better to use ffmpeg to detect the silences and then implement the clustering with jim, that way there are less dependencies to install.
I don't think you need to worry about the "hooks" - once you have a process which can be run on a decrypted recording that brackets ad breaks with bookmarks, af123 will integrate it into the WebIF auto system.
The input to the silence program is decoded audio from ffmpeg. Using the ffmpeg silencedetect filter rather than a separate silence detect program would reduce the number of places this could go wrong (and potentially speed it up?). I couldn't get the silencedetect filter to work with the version of ffmpeg on the Fox-HDR - has it been compiled with all the necessary options? It didn't recognise the -af (audio filter) argument.ffmpeg has become quite a large beast so may be overkill for this but implementing the cluster detection in Jim would be an interesting project too : )
That's fine by me.Do you think the topic should be renamed something like "Auto-Detect Ad Breaks", maybe?
humax# opkg install http://hpkg.tv/hdrfoxt2/test/ffmpeg_2.2.3_mipsel.opk