Opendigitalradio / ODR-AudioEnc

ODR-AudioEnc is a DAB and DAB+ audio encoder, part of the ODR-mmbTools.
https://www.opendigitalradio.org
24 stars 17 forks source link

Audio encoding stopped -s option not working. #32

Open salvaaod opened 6 months ago

salvaaod commented 6 months ago

I am finding an issue with audioenc, encoding http audio sources when some of the sources restart the audio encoding stops and sends silence to the multiplexer, the -s option does not work and the encoder has to be restarted manually, the encoding line is like this:

odr-audioenc -G http://stream.******.fm:2000/ios -s 60 -g -3 --sbr --ps -b 32 -r 32000 -e tcp://localhost:9025 -P **** -p 20

any idea what can be happening ?, I was wondering if this is actually a bug or some sort of issue that has to be mitigated externally, as I understand the -s function will restart the encoder when there is silence in the encoding but in the situation I have described it does not happen, simulating a silence in the input the encoding actually restarts so the -s function works in some scenarios.

There is no entry in the logs showing anything abnormal, any way to increase verbosity to get further info ?

mpbraendli commented 6 months ago

Hi Salva,

So in some cases it works, in some cases it doesn't?

Since you use the GStreamer input, maybe you can try setting the GST_DEBUG=1 environment variable, but I haven't tried myself.

salvaaod commented 5 months ago

I mean sometimes when a restart on the icecast server feeding the encoder happens, the encoder hangs with silence in the output and the -s switch does not reset the encoding process,, only solution is resetting the encoder manually, if you feed the encoder a test stream with silence it will restart, so, -s works but under icecast feed restart the encoding process stops, Will try to gather more date but it is very difficult since it happens very randomly.