Page 1 of 1

vlm: setup option ?

Posted: 16 Mar 2006 17:21
by Albert
Hello,
I would like to ask how to use "option" in vlm scripts. I need to start multiple webcams from 1 vlm file with unique marq and same time sub-filter for all.

Theoretically

Code: Select all

#1 new cam1 broadcast enabled setup cam1 input dshow://:dshow-adev="none":dshow-vdev="MSI Star Cam 370i":dshow-caching=1000 setup cam1 option dshow-size=320x240 setup cam1 option sub-filter=time:marq setup cam1 option time-position=9 setup cam1 option marq-marquee="cam1" setup cam1 output #transcode{vcodec=DIV3,.... #2 new cam2 broadcast enabled setup cam2 input dshow://... ... setup cam2 option marq-marquee="cam2" ... control cam1 play control cam2 play
but it doesn´t work. Setup options dshow-size and option sub-filter=time:marq work, but options marq-marquee and time-position don´t. Values from general saved preferences are used instead.
It seems they are equal in command line, but not in vlm script.
Thanks for any hint.
Albert

Posted: 16 Mar 2006 18:20
by dionoea
options which work on command line with the :option=value syntax will work in VLM. Those which only work with the --option=value syntax won't.

Posted: 17 Mar 2006 05:47
by Videoman
Albert, does your configuration work?
What I know is that VLC does not work on devices in same device name.

Posted: 17 Mar 2006 10:23
by Albert
Hello,
It is a pity that I can´t run only one VLC and one VLM script. Are you plannig support for this for future versions?

I suppose that I have tu run several batch files with --options and so several VLCs :-(

Videoman:
there is a patch from garthb76
viewtopic.php?t=16319

multiple identical dshow devices and win regedit.exe

Posted: 18 Mar 2006 10:31
by Albert
Hello Videoman,
I had not enough time to answer:
I have not tested this properly, but in WinME and 2 devices it seems to work.
Thanks to garthb76's patch (viewtopic.php?t=16319) I have a build, which shows me dshow DevicePaths: that is a very long sequence of characters and it is not comfortable to operate with them.
So I have another solution: I found the sequence with regedit.exe in Windows registers and I renamed FriendlyName to something unique (e.g. "StarCam 370i no1" etc). You can find your devices in HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\DeviceClasses\ ...characters....\Device Parameters
or you can wait for a dshow VLC guru ;-)
I am not able to humanize garthb76's patch, so I use original VLC and altered windows.
Albert

edited 23.3.2006
Now I can say: this works :D
I have 3 MSI StarCam 370i No1 + No2 + No3 in the VLC dshow dialog.
Garthb76´patched vlc shows me DevicePath e.g.

Code: Select all

\\?\usb#vid_0c45&pid_60c0&mi_00#7&288bdd37&0&0000#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\global
which I find in registers (the 2nd hit) and in sub-key change FriendlyName.
Works under WinXP SP2 and vlc-0.8.5-test1-20060322-0132
Albert

Posted: 20 Mar 2006 02:31
by Videoman
Thanks

:wink:

Posted: 20 Mar 2006 12:26
by Albert
Hello,
options which work on command line with the :option=value syntax will work in VLM. Those which only work with the --option=value syntax won't.
VLM:
setup cam1 option dshow-size=320x240 works but
...:dshow-size=320x240:... from GUI command line doesn´t.
Albert