[vlc-devel] qtkit mac development and threads

Feurstein, Michael Michael.Feurstein at wu.ac.at
Tue May 8 17:09:49 CEST 2012


> -----Ursprüngliche Nachricht-----
> Von: vlc-devel-bounces at videolan.org [mailto:vlc-devel-
> bounces at videolan.org] Im Auftrag von Rémi Denis-Courmont
> Gesendet: Montag, 07. Mai 2012 17:24
> An: vlc-devel at videolan.org
> Betreff: Re: [vlc-devel] qtkit mac development and threads
> 
> 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.
> 

sorry for the quotation with the last mail... mac mail is kinda sucks for this - so here we go again:

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




More information about the vlc-devel mailing list