win32 receive from capture dev with several input signals

This forum is about all development around libVLC.
marranxo
Blank Cone
Blank Cone
Posts: 24
Joined: 03 Jun 2011 11:46

win32 receive from capture dev with several input signals

Postby marranxo » 27 Oct 2011 14:24

Hi,
Mi capturer is Avermedia Speedy Hibrid.
When I open it in VLC i do the following:
File->Open capture Device
Then I select my device and check "device properties.
Two dialogs appear, one to select video format (PAL_B) and another to select witch input to select, I choose supervideo (input=2) and disable the audio binding, and video is played correctly.
My question Is how to do this throw code...

Thanks,

marranxo
Blank Cone
Blank Cone
Posts: 24
Joined: 03 Jun 2011 11:46

Re: win32 receive from capture dev with several input signal

Postby marranxo » 28 Oct 2011 09:44

I've found a solution I'll post it for users looking for similar questions.

const char *options[] =
{
":dshow-vdev=AVerMedia 716x BDA Analog Capture",
":dshow-adev=none",
":dshow-size=768x480",
":dshow-chroma=YUY2",
":dshow-fps=25.000000",
":dshow-video-input=2",
NULL
};

m_pMedia = libvlc_media_new_path(m_pVLCInstance, "dshow://");
for (const char **opt = options; *opt; opt++)
libvlc_media_add_option(m_pMedia, *opt);


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 4 guests