Looking at your debug again, I suspect there is another problem with some rtmp streams too - I need to look at this and will post back.

Can you confirm that aac is not selected in your case as your nas does not support it?