[vlc-devel] LibVLC PIP

Rémi Denis-Courmont remi at remlab.net
Thu Sep 6 23:00:11 CEST 2012


Le jeudi 6 septembre 2012 23:42:23, J Decker a écrit :
> I have an interface wrapper that I use to load libvlc.dll.
> I have some .conf files which configure a mosaic output.
> 
> The example player creates a vlc instance, and uses
> libvlc_media_player_new[_from_media]
> 
> and then calls libvlc_media_player_play on that media player to play.
> 
> How do I get the media player to fill from the .conf file?

In principles, VLM and media player are completely independent.
That said, the bridge should work across, in either directions. But there is 
simply no way to configure the media player from a VLM media or vice versa.

> ----------- The conf file ------------
> new channel1 broadcast enabled
> setup channel1 input dshow://
> setup channel1 option dshow-vdev="Osprey-100 Video Device 1"
> setup channel1 option dshow-video-input=0
> setup channel1 option dshow-norm="ntsc"
> setup channel1 option dshow-adev="none"
> setup channel1 option dshow-size="320x240"
> setup channel1 option dshow-caching="100"
> setup channel1 option no-audio
> setup channel1 output
> #duplicate{dst=mosaic-bridge{chroma=YUVA,vfilter=alphamask{mask=../images/m
> ask.png},width=320,height=240},select=video} #vfilter=bluescreen
> 
> new channel2 broadcast enabled
> setup channel2 input dshow://
> setup channel2 option dshow-vdev="Osprey-100 Video Device 2"
> setup channel2 option dshow-video-input=0
> setup channel2 option dshow-norm="ntsc"
> setup channel2 option dshow-adev="none"
> setup channel2 option dshow-size="640x480"
> setup channel2 option dshow-caching="100"
> setup channel2 option sout-keep
> setup channel2 option fullscreen
> setup channel2 option no-audio
> setup channel2 option mosaic-keep-picture
> setup channel2 output
> #transcode{sfilter=mosaic:logo{file=../images/fortunet.png,position=10},vco
> dec=mp2v,vb=10000,scale=1,fps=24}:ridge-in{delay=300,id-offset=100}:duplica
> te{dst=display,dst="transcode{venc=x264{keyint=60,idrint=2},vcodec=h264,vb=
> 300,acodec=mp4a,ab=32,channels=2,samplerate=22050}:rt{dst=127.0.0.1,port=50
> 004,caching=2000,sdp=file:///../vlc.sdp}"}
> 
> #:sharpen{sigma=1.5}
> #:deinterlace
> 
> control channel2 play
> control channel1 play
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> http://mailman.videolan.org/listinfo/vlc-devel

-- 
Rémi Denis-Courmont
http://www.remlab.net/



More information about the vlc-devel mailing list