LibVLC / VLC-Qt separate audio/video streams playback

1.1k Views Asked by At

I was wondering if anybody have clues or pointers as how to deal with playback of separated audio/video streams using LibVLC? I'm using the library via VLC-Qt wrapper, but I'm not sure it supports it out of the box.

I need to play back video with a separate audio file. I remember fiddling with gstreamer a while back, and it had the possibility of explicitly setting a audio and video sink. Does the VLC-Qt support anything similar?

1

There are 1 best solutions below

4
On

As long as i know in vlc-qt 0.9 or higher you can create multiple instances and players. I think you are looking forward for something like this :

VlcInstance *audioInstance = new VlcInstance(VlcCommon::args());
VlcInstance *videoInstance = new VlcInstance(VlcCommon::args());

VlcMediaPlayer *audioPlayer = new VlcMediaPlayer(audioInstance);
VlcMediaPlayer *videoPlayer = new VlcMediaPlayer(videoInstance);

etc etc

Then just play both as you like.