QtAV icon indicating copy to clipboard operation
QtAV copied to clipboard

Playing two files at the same time causes audio problems

Open paul-h opened this issue 10 years ago • 5 comments

I'm trying to create a player using QML that can do 'picture-and-picture', so it has two VideoPlayer's side by side. Each player plays a different file or in my case a different stream from a local IP streamer.

The video side works well but there seems to be some contention with the audio. I can here both streams but the audio is broken up and has a lot of crackles/distortion etc.

I'd actually be happy to be able to disable the audio from one or other stream and just have one audio stream active but don't know if that is possible?

I'm using Kubuntu 16.04 with QTAV from your PPA. I think Ubuntu uses pulse audio for audio output if it matters.

paul-h avatar May 08 '16 08:05 paul-h

OpenAL will be better. I don't know how to fix pulse audio.

player->audio()->setBackends(QStringList() << "OpenAL");

wang-bin avatar May 10 '16 01:05 wang-bin

Like I said I'm using QML. You're going to have point me in the right direction I'm not seeing how to do that from QML :)

paul-h avatar May 10 '16 19:05 paul-h

I will add to qml

wang-bin avatar May 11 '16 02:05 wang-bin

Try the latest code. I add audioBackends

wang-bin avatar May 12 '16 15:05 wang-bin

Setting the audio backend to OpenAL does indeed fix the audio problems.

Thanks for the quick fix.

paul-h avatar May 12 '16 21:05 paul-h