I am currently unsure that you can achieve that this way.
If memory serves well, you can create a custom QMediaObject that you can attach to VideoOutput. It could be an alternative.
@SGaist Yes that was what I was trying. But I found the error. SampleFormat was set to Unknown instead of Int16. Now I only need to syncronize and write audio in the right rate
Sorry for the late reply, it looks like there's indeed something changed in between.
You should check the release notes just in case it was mentioned somewhere. If nothing, then please consider opening a new report on the bug report system if there's not already something there.
Ok, I think a clean and rebuild of the whole project did the trick.
I always forget when I don't use it for sometimes. When something is doing weird with Qt you have to clean, qmake or rebuild to get everything in order.