[vlc-devel] qtkit mac development and threads

Feurstein, Michael Michael.Feurstein at wu.ac.at
Tue May 8 14:30:36 CEST 2012


On May 7, 2012, at 5:23 PM, Rémi Denis-Courmont wrote:

Le lundi 7 mai 2012 14:24:32 Feurstein, Michael, vous avez écrit :
i'm a bit lost and want to fix this in order to work with -I dummy, so i'd
be grateful for some starting points. how does -I dummy work?

The dummy interface does essentially nothing: modules/control/dummy.c

I don't really understand the question.


I basically want to use qtcapture and qtsound in a mosaic setup.
Here's an example in order to understand and reproduce what I mean:

I issue the following command via terminal

VLC.app/Contents/MacOS/VLC -vvv -I dummy qtcapture://com.apple.QTKit.legacydevice-V2U107672-vdig-vusb-ephn --qtcapture-width=1280 --qtcapture-height=800 --sout='#transcode{vcodec=h264,venc=x264{profile=baseline,level=30,aud},vfilter=deinterlace{mode=blend,phosphor-chroma=1},vb=768,fps=25.0,height=800,width=1280,scale=1}:standard{access=udp,mux=ts,dst=239.0.0.3:1234}'

it loads and just stops at the point where the QTCaptureSession is added with an addInput. (happens in the Open method of the module)

when transcoding and streaming another input such as an rtsp stream instead of the qtcapture input, vlc loads and starts streaming automatically.

now i want to achieve this with qtcapture as well - this automatic start.
in these sources [1] [2] it's mentioned that i need to grab hold of the main thread and have a run loop active there.

so… yeah… my question: how do i grab hold of the main thread and have an NSRunLoop run on it? or put differently why doesn't it start transcoding/streaming automatically as with an rtsp input?

thx
-michael feurstein

[1] http://osdir.com/ml/quicktime-api/2009-09/msg00021.html
[2] http://lists.apple.com/archives/quicktime-api/2009/Apr/msg00101.html
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20120508/f15f37e5/attachment.html>


More information about the vlc-devel mailing list