[vlc-devel] LibVLC PIP
J Decker
d3ck0r at gmail.com
Fri Sep 7 03:21:05 CEST 2012
The following is something I"m testing.
Probably have to substitute the AVI's for some other avi...I gabbed these from
http://cinelerra.org/footage/byger-20030708-liten.avi
http://cinelerra.org/footage/wide-20040607-small.avi
they are just some clips of weather somewhere. Using vlc 1.1.4, every
other time I run the following command it works, and goes full screen;
otherwise it crashes. Using vlc 2.0.3, it fails most times, but
sometimes works, but doesn't go full screen, and the alpha overlay
circle image is a small image vs 1.1.4. The overlay mask size seems
to have to be the same size as the image file, if I say to use it
bigger, it doesn't work. It really looks like there's a thread
collision of some sort.....
vlc -vvv --file-logging --vlm-conf vlm.conf
---- Vlm.conf
new channel1 broadcast enabled
setup channel1 input file:///wide-20040607-small.avi
setup channel1 option no-audio
setup channel1 output
#duplicate{dst=mosaic-bridge{chroma=YUVA,vfilter=alphamask{mask=mask.png},width=320,height=240},select=video}
#vfilter=bluescreen
new channel2 broadcast enabled
setup channel2 input file:///byger-20030708-liten.avi
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=fortunet.png,position=10},vcodec=mp2v,vb=10000,scale=1,fps=24}:bridge-in{delay=300,id-offset=100}:duplicate{dst=display,dst="transcode{venc=x264{keyint=60,idrint=2},vcodec=h264,vb=300,acodec=mp4a,ab=32,channels=2,samplerate=22050}:rtp{dst=127.0.0.1,port=50004,caching=2000,sdp=file:///vlc.sdp}"}
#:sharpen{sigma=1.5}
#:deinterlace
control channel2 play
control channel1 play
-----------------------
Once that works, I'll move into my own program using libvlc and the
vlm interface functions.
On Thu, Sep 6, 2012 at 5:55 PM, J Decker <d3ck0r at gmail.com> wrote:
> On Thu, Sep 6, 2012 at 2:00 PM, Rémi Denis-Courmont <remi at remlab.net> wrote:
>> 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.
>>
>
> Okay, I get it a little...
> checking the vlm interface out
>
>
>>> ----------- 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/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fortunet.png
Type: image/png
Size: 6666 bytes
Desc: not available
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20120906/b45eeea3/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mask.png
Type: image/png
Size: 4488 bytes
Desc: not available
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20120906/b45eeea3/attachment-0001.png>
More information about the vlc-devel
mailing list