Page 1 of 1
vlc bluescreen blending in windows
Posted: 24 Jan 2012 23:39
by ramsiva
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
Re: vlc bluescreen blending in windows
Posted: 25 Jan 2012 16:06
by VLC_help
Re: vlc bluescreen blending in windows
Posted: 25 Jan 2012 20:14
by ramsiva
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.
Re: vlc bluescreen blending in windows
Posted: 26 Jan 2012 04:15
by ramsiva
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
Re: vlc bluescreen blending in windows
Posted: 27 Jan 2012 20:12
by VLC_help
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?
Re: vlc bluescreen blending in windows
Posted: 28 Jan 2012 00:05
by ramsiva
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.