vlc bluescreen blending in windows

Microsoft Windows specific usage questions
Forum rules
Please post only Windows specific questions in this forum category. If you don't know where to post, please read the different forums' rules. Thanks.
ramsiva
Blank Cone
Blank Cone
Posts: 31
Joined: 14 Jan 2012 00:19

vlc bluescreen blending in windows

Postby ramsiva » 24 Jan 2012 23:39

hello
I am using VLC player to perform bluescreen blending. So the foreground should be a video shot in bluescreen and the background a jpeg file. I used the following mosaic.vlm file
###########################
new channel1 broadcast enabled
setup channel1 input gs1.mov
setup channel1 output #display{dst=mosaic-bridge{chroma=YUVA,vfilter=bluescreen},select=video}
setup channel1 enabled

new background broadcast enabled
#setup background input _MG_4367.jpg

control background play
control channel1 play
###############################
I run the following command from msys.bat file.

vlc -vvv --vlm-conf mosaic.vlm --mosaic-keep-picture --sub-filter mosaic

I use mingw/msys environment. The problem is video and image appear as two seperate interface one over the other. They dont blend into one interface with the image as background for the video.
I dont know what I am doing wrong. Can you please help me out?
the vlc version i m using is 1.1.0-rc3

VLC_help
Mega Cone Master
Mega Cone Master
Posts: 25661
Joined: 13 Sep 2006 14:16

Re: vlc bluescreen blending in windows

Postby VLC_help » 25 Jan 2012 16:06

Did you test with VLC 2.0.0 nightly builds?
http://nightlies.videolan.org/build/win32/?C=M;O=D

ramsiva
Blank Cone
Blank Cone
Posts: 31
Joined: 14 Jan 2012 00:19

Re: vlc bluescreen blending in windows

Postby ramsiva » 25 Jan 2012 20:14

Hello
that dint work either. I also tried the example in vlc modules/bluescreen documentation.
new channel0 broadcast enabled
setup channel0 input rushfondvert.avi
setup channel0 output #duplicate{dst=mosaic-bridge{chroma=YUVA,vfilter=bluescreen},select=video}

new background broadcast enabled
setup background input redefined-nintendo.mpeg
control background play

control channel0 play

I used the same mpeg and avi files. When I run this, vlc crashes. All I want to do blend these videos together in one interface and should appear locally (not thru network) as in bluescreen2.mpeg. I am confused how to implement this. Please help me out.

ramsiva
Blank Cone
Blank Cone
Posts: 31
Joined: 14 Jan 2012 00:19

Re: vlc bluescreen blending in windows

Postby ramsiva » 26 Jan 2012 04:15

I got it working finally. I had to provide height and width for the bluescreen video (mandatory) and there should not be space between parameters.
the video I need to work on, was shot in blue screen background instead of green screen as in the example video,rushfondvert.avi (i dont know why they call it blue screen although the default uv values seems green). The RGB values of the background is around, R-57,G-69,B-140. the values are not the same throughout the background, but it is predominantly blue. How can i find the u,v,ut,vt values for these and where do i mention in the vlm file?
Thanks

VLC_help
Mega Cone Master
Mega Cone Master
Posts: 25661
Joined: 13 Sep 2006 14:16

Re: vlc bluescreen blending in windows

Postby VLC_help » 27 Jan 2012 20:12

You can take screenshot, use color picker in your favorite image editing software and then do colorspace conversion
http://www.mikekohn.net/file_formats/yu ... verter.php

Could you paste your working commands. so I can add them to Wiki?

ramsiva
Blank Cone
Blank Cone
Posts: 31
Joined: 14 Jan 2012 00:19

Re: vlc bluescreen blending in windows

Postby ramsiva » 28 Jan 2012 00:05

Alright, here it is,
I used vlc 1.1.0-rc3 for my testing bluescreen filter. The vlm file looks like this,

new channel0 broadcast enabled
setup channel0 input rushfondvert.avi
setup channel0 output #duplicate{dst=mosaic-bridge{height=270,width=360,chroma=YUVA,vfilter=bluescreen,select=video}

new background broadcast enabled
setup background input redefined-nintendo.mpeg

control background play
control channel0 play

the command executed from cmd line is,
vlc --vlm-conf mosaic.vlm --mosaic-keep-picture --sub-filter mosaic
To display an image as a background instead of a video, the vlm file would like this,

new channel0 broadcast enabled
setup channel0 input rushfondvert.avi
setup channel0 output #duplicate{dst=mosaic-bridge{height=270,width=360,chroma=YUVA,vfilter=bluescreen,select=video}

new background broadcast enabled
setup background input fake://
setup background option fake-file="_MG_4367.jpg"

control background play
control channel0 play

I also tested with vlc2.0.0 nightly build, but to display jpg image in this version, the vlc should look like below as it does not accept fake file format.

new channel0 broadcast enabled
setup channel0 input rushfondvert.avi
setup channel0 output #duplicate{dst=mosaic-bridge{height=270,width=360,chroma=YUVA,vfilter=bluescreen},select=video}:display

new background broadcast enabled
setup background input file:///mire.jpg

control background play
control channel0 play

custom u,v,ut,vt values can be provided to the filter, as parameters to vfilter=bluescreen{..}.
Hope this helps others.


Return to “VLC media player for Windows Troubleshooting”

Who is online

Users browsing this forum: Google [Bot] and 17 guests