[SOLVED] Background MOSAIC image (fake://) in VLC 2.0

Discussion about configuration and usage of VLM (a stream scheduler) within VLC.
mucc
New Cone
New Cone
Posts: 7
Joined: 28 Jan 2012 21:32

[SOLVED] Background MOSAIC image (fake://) in VLC 2.0

Postby mucc » 24 Feb 2012 10:32

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
Last edited by mucc on 12 Mar 2012 01:38, edited 1 time in total.

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: Background image (fake://) in VLC 2.0 not work

Postby Jean-Baptiste Kempf » 24 Feb 2012 10:57

yes, fake is gone. Use the image demuxer.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

mucc
New Cone
New Cone
Posts: 7
Joined: 28 Jan 2012 21:32

Re: Background image (fake://) in VLC 2.0 not work

Postby mucc » 24 Feb 2012 11:45

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?

Sébastien Escudier
Big Cone-huna
Big Cone-huna
Posts: 853
Joined: 06 Nov 2008 08:38
Operating System: linux

Re: Background image (fake://) in VLC 2.0 not work

Postby Sébastien Escudier » 24 Feb 2012 11:58

try the image-duration option

mucc
New Cone
New Cone
Posts: 7
Joined: 28 Jan 2012 21:32

Re: Background image (fake://) in VLC 2.0 not work

Postby mucc » 25 Feb 2012 13:08

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:


Image

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

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: Background image (fake://) in VLC 2.0 not work

Postby Jean-Baptiste Kempf » 25 Feb 2012 14:40

-1 means forever.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

mucc
New Cone
New Cone
Posts: 7
Joined: 28 Jan 2012 21:32

Re: Background image (fake://) in VLC 2.0 not work

Postby mucc » 25 Feb 2012 15:33

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?

Sébastien Escudier
Big Cone-huna
Big Cone-huna
Posts: 853
Joined: 06 Nov 2008 08:38
Operating System: linux

Re: Background image (fake://) in VLC 2.0 not work

Postby Sébastien Escudier » 29 Feb 2012 13:57

I don't know why, but you can give the mosaic option at startup with :
--mosaic-height=
etc...

KingKebab
Blank Cone
Blank Cone
Posts: 31
Joined: 05 Mar 2012 23:17
Operating System: Windows

Re: Background image (fake://) in VLC 2.0 not work

Postby KingKebab » 06 Mar 2012 18:33

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

Sébastien Escudier
Big Cone-huna
Big Cone-huna
Posts: 853
Joined: 06 Nov 2008 08:38
Operating System: linux

Re: Background image (fake://) in VLC 2.0 not work

Postby Sébastien Escudier » 06 Mar 2012 20:07

remove fake:// and use to image-duration option for how long you want it displayed

KingKebab
Blank Cone
Blank Cone
Posts: 31
Joined: 05 Mar 2012 23:17
Operating System: Windows

Re: Background image (fake://) in VLC 2.0 not work

Postby KingKebab » 06 Mar 2012 21:37

remove fake:// and use to image-duration option for how long you want it displayed
Thanks Sébastien, you're helpfull :D
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 ?

mucc
New Cone
New Cone
Posts: 7
Joined: 28 Jan 2012 21:32

[SOLVED] Background image (fake://) in VLC 2.0 not work

Postby mucc » 12 Mar 2012 00:21

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

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: [SOLVED] Background MOSAIC image (fake://) in VLC 2.0

Postby Jean-Baptiste Kempf » 12 Mar 2012 13:48

Can you edit the wiki too?
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

bencredible
New Cone
New Cone
Posts: 1
Joined: 12 Mar 2012 20:52

Re: [SOLVED] Background MOSAIC image (fake://) in VLC 2.0

Postby bencredible » 12 Mar 2012 20:57

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?

Sébastien Escudier
Big Cone-huna
Big Cone-huna
Posts: 853
Joined: 06 Nov 2008 08:38
Operating System: linux

Re: [SOLVED] Background MOSAIC image (fake://) in VLC 2.0

Postby Sébastien Escudier » 20 Mar 2012 08:24

mosaic options must be in the command line, the wiki has been updated


Return to “VLM”

Who is online

Users browsing this forum: No registered users and 1 guest