Combine audio (from dshow) and video (from invmem/imem)

This forum is about all development around libVLC.
Titanic
Blank Cone
Blank Cone
Posts: 33
Joined: 14 Sep 2010 10:12

Combine audio (from dshow) and video (from invmem/imem)

Postby Titanic » 30 Sep 2010 11:07

Hi everybody,

Does somebody know a way to comine a video input with invmem (or imem) and an audio input (e.g dshow input) to a single network stream?
If I use invmem, I've to create a media with MRU fake:// but then I'm not able to use MRU dshow:// for audio input and vice versa.

Does somebody know a way to get video and audio combined to one stream by VLC if video has to be provided with invmem? The way of getting the audio signal is not predefined, it only has to capture the audio from an available audio source (e.g. microphone).

Any help would be much appreciated.

Titanic
Blank Cone
Blank Cone
Posts: 33
Joined: 14 Sep 2010 10:12

Re: Combine audio (from dshow) and video (from invmem/imem)

Postby Titanic » 30 Sep 2010 12:03

Or explained a little bit simpler: Can libVLC handle two inputs (video over invmem, audio over something else) for one player?

rogerdpack
Big Cone-huna
Big Cone-huna
Posts: 574
Joined: 19 Jul 2008 23:48
Operating System: windows

Re: Combine audio (from dshow) and video (from invmem/imem)

Postby rogerdpack » 01 Oct 2010 00:51

http://en.wikipedia.org/wiki/VLC_media_ ... te_note-14 might be interesting to you.

Short answer is if it's a directshow video input and a directshow audio input, it should work out of the box. If not, then I'm not sure entirely how you would combine inputs. Maybe using mosaic? Maybe write your own directshow input?

Titanic
Blank Cone
Blank Cone
Posts: 33
Joined: 14 Sep 2010 10:12

Re: Combine audio (from dshow) and video (from invmem/imem)

Postby Titanic » 01 Oct 2010 08:33

It's currently not a DShow video input but I'll create on. Should work with the DShow access module from VLC. Thx for your help and the link you've provided.

Rémi Denis-Courmont
Developer
Developer
Posts: 15266
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: Combine audio (from dshow) and video (from invmem/imem)

Postby Rémi Denis-Courmont » 01 Oct 2010 11:43

Use a slave input. But it might be difficult to keep the time sources consistent so that the synchronization works
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

Titanic
Blank Cone
Blank Cone
Posts: 33
Joined: 14 Sep 2010 10:12

Re: Combine audio (from dshow) and video (from invmem/imem)

Postby Titanic » 04 Oct 2010 12:32

Hi Remi,

I tried to use dshow:// for audio as slave input with invmem for video as primary input but it does not work. Also if I switch them (dshow with audio as primary and invmem with video as slave) I only get a stream with a picture but no sound. I see both, the invmem and dshow input modules, get initialized and successfully opened but when constructing my output stream, mux_ts never gets an audio stream added so it's clear that the stream is only constructed from the transcoded h264 video stream provided from invmem.

Should input slave actually work that way?


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 19 guests