Page 1 of 1
[SOLVED] Background MOSAIC image (fake://) in VLC 2.0
Posted: 24 Feb 2012 10:32
by mucc
Hi all,
I use the following VLM code for generate a mosaic without problem since VLC 1.0 :
Code: Select all
del all
new monitoring broadcast enabled
setup monitoring input udp://@239.0.0.1:3000
setup monitoring option programs=7202,7220,7221,7222
setup monitoring option audio-visual="visual"
setup monitoring option effect-list="spectrum"
setup monitoring output #duplicate{dst=mosaic-bridge{id=1,height=240,width=240,name="Channel1"}, select="es=192", dst=mosaic-bridge{id=2,height=240,width=240,name="Channel2"}, select="es=160", dst=mosaic-bridge{id=3,height=240,width=240,name="Channel3"}, select="es=176", dst=display,select="es=260"}
new mosaic broadcast enabled
setup mosaic input fake://
setup mosaic option mosaic-width=960
setup mosaic option mosaic-height=480
setup mosaic option mosaic-yoffset=60
setup mosaic option mosaic-position=1
setup mosaic option mosaic-order="1,2,3"
setup mosaic option mosaic-rows=2
setup mosaic option mosaic-cols=2
setup mosaic option fake-file="C:\VLC_monitoring\background.jpg"
setup mosaic option fake-caching=50
setup mosaic option fake-width=960
setup mosaic option fake-height=600
setup mosaic option fake-fps="20"
setup mosaic option fake-deinterlace
setup mosaic output #transcode{deinterlace,sfilter=mosaic,vcodec=mp2v,vb=10000,acodec=none}:bridge-in{id-offset=100}:display
control monitoring play
control mosaic play
The same script with VLC 2.0 do not work.
I read that the fake module do not work in version 2.0 , it is correct?
How can I generate a mosaic with a background image?
Thanks
mucc
Re: Background image (fake://) in VLC 2.0 not work
Posted: 24 Feb 2012 10:57
by Jean-Baptiste Kempf
yes, fake is gone. Use the image demuxer.
Re: Background image (fake://) in VLC 2.0 not work
Posted: 24 Feb 2012 11:45
by mucc
I have modified the preview code with the following:
Code: Select all
del all
new monitoring broadcast enabled
setup monitoring input udp://@239.0.0.1:3000
setup monitoring option programs=7202,7220,7221,7222
setup monitoring option audio-visual="visual"
setup monitoring option effect-list="spectrum"
setup monitoring output #duplicate{dst=mosaic-bridge{id=1,height=240,width=240,name="Channel1"}, select="es=192", dst=mosaic-bridge{id=2,height=240,width=240,name="Channel2"}, select="es=160", dst=mosaic-bridge{id=3,height=240,width=240,name="Channel3"}, select="es=176", dst=display,select="es=260"}
new mosaic broadcast enabled
setup mosaic input "C:\VLC_monitoring\background.jpg"
setup mosaic option mosaic-width=960
setup mosaic option mosaic-height=480
setup mosaic option mosaic-yoffset=60
setup mosaic option mosaic-position=1
setup mosaic option mosaic-order="1,2,3"
setup mosaic option mosaic-rows=2
setup mosaic option mosaic-cols=2
setup mosaic output #transcode{deinterlace,sfilter=mosaic,vcodec=mp4v,vb=10000,acodec=none}:bridge-in{id-offset=100}:display
control monitoring play
control mosaic play
But the result is not the same with fake module:
1. The video mosaic is to small.
2. After few seconds the mosaic window closes
3. For transcode mp2v not work. Now I use mp4v
What am I doing wrong?
Re: Background image (fake://) in VLC 2.0 not work
Posted: 24 Feb 2012 11:58
by Sébastien Escudier
try the image-duration option
Re: Background image (fake://) in VLC 2.0 not work
Posted: 25 Feb 2012 13:08
by mucc
Thanks for the suggestion.
I have added "
setup mosaic option image-duration=-1" , now the mosaic do not close!
But I have another problem, the option
mosaic-* are not working.
The mosaic is shown as:
The dimension,yoffset, order of flow... are ignored.
What's wrong in my configuration?
Code: Select all
del all
new monitoring broadcast enabled
setup monitoring input udp://@239.0.0.1:3000
setup monitoring option programs=7202,7220,7221,7222
setup monitoring option audio-visual="visual"
setup monitoring option effect-list="spectrum"
setup monitoring output #duplicate{dst=mosaic-bridge{id=1,height=240,width=240,name="Channel1"}, select="es=192", dst=mosaic-bridge{id=2,height=240,width=240,name="Channel2"}, select="es=160", dst=mosaic-bridge{id=3,height=240,width=240,name="Channel3"}, select="es=176", dst=display,select="es=260"}
new mosaic broadcast enabled
setup mosaic input "C:\VLC_monitoring\background.jpg"
setup mosaic option mosaic-width=960
setup mosaic option mosaic-height=480
setup mosaic option mosaic-yoffset=60
setup mosaic option mosaic-position=1
setup mosaic option mosaic-order="1,2,3"
setup mosaic option mosaic-rows=2
setup mosaic option mosaic-cols=2
setup mosaic option image-duration=-1
setup mosaic output #transcode{width=960,height=480,deinterlace,sfilter=mosaic,vcodec=mp4v,vb=1000,acodec=mp2a,ab=128}:bridge-in{id-offset=100}:display
control monitoring play
control mosaic play
Re: Background image (fake://) in VLC 2.0 not work
Posted: 25 Feb 2012 14:40
by Jean-Baptiste Kempf
-1 means forever.
Re: Background image (fake://) in VLC 2.0 not work
Posted: 25 Feb 2012 15:33
by mucc
Yes -1 means forever!
I wanted that result, that's great!
Now the problem is the mosaic options: as you can look in the screenshot posted above, I can not modify mosaic dimension,yoffset, order of channels ....
I think that the problem is in the following part of code:
Code: Select all
new mosaic broadcast enabled
setup mosaic input "C:\VLC_monitoring\background.jpg"
setup mosaic option mosaic-width=960
setup mosaic option mosaic-height=480
setup mosaic option mosaic-yoffset=60
setup mosaic option mosaic-position=1
setup mosaic option mosaic-order="1,2,3"
setup mosaic option mosaic-rows=2
setup mosaic option mosaic-cols=2
setup mosaic option image-duration=-1
setup mosaic output #transcode{width=960,height=480,deinterlace,sfilter=mosaic,vcodec=mp4v,vb=1000,acodec=mp2a,ab=128}:bridge-in{id-offset=100}:display
Why "setup mosaic option mosaic-xxxxx" commands are ignored in VLC 2.0.0?
Re: Background image (fake://) in VLC 2.0 not work
Posted: 29 Feb 2012 13:57
by Sébastien Escudier
I don't know why, but you can give the mosaic option at startup with :
--mosaic-height=
etc...
Re: Background image (fake://) in VLC 2.0 not work
Posted: 06 Mar 2012 18:33
by KingKebab
Hello,
I have a similar problem with the new VLC 2.0.0 final release when I use the fake option.
For example, this playlist content code doesn't work anymore :
Code: Select all
#EXTM3U
#EXTINF:0,PICT - My Picture
#EXTVLCOPT:fake-file-reload=1
fake://http://192.168.1.10/my_picture.jpg
How can I translate this playlist to work with the image demuxer ?
Best regards
Re: Background image (fake://) in VLC 2.0 not work
Posted: 06 Mar 2012 20:07
by Sébastien Escudier
remove fake:// and use to image-duration option for how long you want it displayed
Re: Background image (fake://) in VLC 2.0 not work
Posted: 06 Mar 2012 21:37
by KingKebab
remove fake:// and use to image-duration option for how long you want it displayed
Thanks Sébastien, you're helpfull
Now I can read image file with VLC 2.0.0 !!
I'll try to transcode my picture to MPEG2 streams, is there something special to know about image demuxer streaming ?
[SOLVED] Background image (fake://) in VLC 2.0 not work
Posted: 12 Mar 2012 00:21
by mucc
I don't know why, but you can give the mosaic option at startup with :
--mosaic-height=
etc...
Thanks Sebastian! Now work fine!
I had not thought this solution!!
My vlm conf, if it be helpful:
del all
new monitoring broadcast enabled
setup monitoring input udp://@239.0.0.1:3000
setup monitoring option programs=7202,7220,7221,7222
setup monitoring output #duplicate{dst=mosaic-bridge{id=1,height=240,width=240,name="Channel1"}, select="es=192", dst=mosaic-bridge{id=2,height=240,width=240,name="Channel2"}, select="es=160", dst=mosaic-bridge{id=3,height=240,width=240,name="Channel3"}, select="es=176", dst=display,select="es=260"}
new mosaic broadcast enabled
setup mosaic input "C:\VLC_monitoring\background.jpg"
setup mosaic option image-duration=-1
setup mosaic output #transcode{width=960,height=480,deinterlace,sfilter=mosaic,vcodec=mp4v,vb=1000,acodec=mp2a,ab=128}:bridge-in{id-offset=100}:display
control monitoring play
control mosaic play
My commands:
"C:\Program Files (x86)\VideoLAN\VLC\vlc" --mosaic-height=420 --mosaic-width=960 --mosaic-yoffset=60 --mosaic-position=0 --mosaic-order="1,3,2" --mosaic-rows=2 --mosaic-cols=2 --vlm-conf Mosaic_2.0.vlm
Re: [SOLVED] Background MOSAIC image (fake://) in VLC 2.0
Posted: 12 Mar 2012 13:48
by Jean-Baptiste Kempf
Can you edit the wiki too?
Re: [SOLVED] Background MOSAIC image (fake://) in VLC 2.0
Posted: 12 Mar 2012 20:57
by bencredible
Trying to do much the same thing. We have a mosaic with a background image and a full screen video. When the video stops we see the background image until we get video back again. Under VLC 1.1.11 this worked fine. Now that 'fake' is gone I simply removed that and it won't show the video anymore, only the background image.
Here is what I have for VLC 2.0
Code: Select all
del all
# Background
new bg broadcast enabled
setup bg input "c:\LOS.png"
setup bg option image-duration=-1
setup bg option sub-filter=mosaic
setup bg output #bridge-in{offset=100}:display
# Mosaic
setup bg option mosaic-alpha=255
setup bg option mosaic-height=480
setup bg option mosaic-width=704
# setup bg option mosaic-align=5
setup bg option mosaic-xoffset=1
setup bg option mosaic-yoffset=1
setup bg option mosaic-vborder=1
setup bg option mosaic-hborder=1
setup bg option mosaic-position=1
setup bg option mosaic-rows=1
setup bg option mosaic-cols=1
setup bg option mosaic-order=tracking
setup bg option mosaic-delay=0
setup bg option mosaic-keep-picture
# Tracking Stations
new tracking broadcast loop enabled
setup tracking input "rtsp://PATH TO LIVE STREAM"
setup tracking output #duplicate{dst=mosaic-bridge{id=tracking,width=704,height=480},select=video,dst=bridge-out{id=0},select=audio}
# VLM Control
control bg play
control tracking play
And here is what I have that works under VLC 1.1.11
Code: Select all
del all
# Background
new bg broadcast enabled
setup bg input "fake://" option "fake-file=LOS.png" option "fake-width=704" option "fake-height=480" option "fake-ar=4:3"
setup bg option sub-filter=mosaic
setup bg output #bridge-in{offset=100}:display
# Mosaic
setup bg option mosaic-alpha=255
setup bg option mosaic-height=480
setup bg option mosaic-width=704
# setup bg option mosaic-align=5
setup bg option mosaic-xoffset=1
setup bg option mosaic-yoffset=1
setup bg option mosaic-vborder=1
setup bg option mosaic-hborder=1
setup bg option mosaic-position=1
setup bg option mosaic-rows=1
setup bg option mosaic-cols=1
setup bg option mosaic-order=tracking
setup bg option mosaic-delay=0
setup bg option mosaic-keep-picture
# Tracking Stations
new tracking broadcast loop enabled
setup tracking input "rtsp://PATH TO LIVE STREAM"
setup tracking output #duplicate{dst=mosaic-bridge{id=tracking,width=704,height=480},select=video,dst=bridge-out{id=0},select=audio}
# VLM Control
control bg play
control tracking play
Am I missing something simple here?
Re: [SOLVED] Background MOSAIC image (fake://) in VLC 2.0
Posted: 20 Mar 2012 08:24
by Sébastien Escudier
mosaic options must be in the command line, the wiki has been updated