Mosaic without Transcoding? (& without VLM???)

For questions and discussion that is NOT (I repeat NOT) specific to a certain Operating System.
JSLover
Cone that earned his stripes
Cone that earned his stripes
Posts: 116
Joined: 20 Mar 2012 00:08
VLC version: 2.1.5
Operating System: Win7
Location: r.secsrv.net/youtube.lua

Mosaic without Transcoding? (& without VLM???)

Postby JSLover » 05 Nov 2013 09:19

Simple question for this topic...
  • Is it possible to create a Mosaic (2x2, 4 videos) without transcoding?
I'm simply trying to PLAY (not stream or anything fancy), just PLAY 4 videos (or 5 counting the background image/video). I've never had much luck with any of my testing in VLC's Mosaic field. & before you ask: Yes, I've read the Wiki on Mosaic (until my eyes bleed)...& I do still have more searching to do (recent forum posts)...but most of the info I've found is so out of date it's not funny. Also, all the examples are both transcoding AND streaming to some random UDP address (the example makes no mention of changing this for your use-case).

For the initial phase of testing, I simply wanna see if it's working. I don't wanna set up a Mosaic & not see the output. Most Mosaic scripts just STREAM out into the ether, without any indication of how to VIEW what's going on.

So, the harder question for this topic... (besides just "how the hell do you get Mosaic to work AT ALL?")
  • Can someone post the most-simple example, using VLC 2.0.x, of a 2x2 Mosaic, that displays the Mosaic on the screen & doesn't (necessarily) stream anywhere...& uses NO transcoding or as LITTLE transcoding as possible (I wanna preserve the original videos as much as possible, without quality loss & without taxing the CPU for unnecessary transcoding)
...you can use streaming if you HAVE to, but make it obvious what you are doing & why. I want the examples to be for VLC 2.0.x (2.0.5 specifically, but I'd accept examples for 2.0.8). I don't have 2.1.0 yet, & I don't think I can run it on my computer. An example for 2.1.0, if different, would be fine too (for others on this forum), but I specifically want a new, current (Nov 2013) example for VLC 2.0.5. I'm also on Windows, but I posted in General, since everyone needs updated examples for Mosaic.

I'd actually like 2 examples: Example 1 would just be 1 VLC process creating & displaying the Mosaic (call this "debug mode"). Example 2 would be 2 VLC processes (on the same computer), 1 streaming (somewhere) & NOT displaying its output & another VLC displaying the stream created by the other process. I've read UDP streaming is "legacy", so use whatever streaming is "current" or "best". RTP? The stream does not need to leave the computer.

Also, the examples should be robust enough, that I can change any of the "inputs" for the Mosaic (video1, video2, video3, video4...or the bg) & not need to rewrite the whole script. Most of my inputs are images (for testing), so they need an "image-duration" applied to keep them running. However, even tho my inputs are images...that is ONLY for testing, so the Mosaic should transfer audio!...& the user should have some way of switching to that audio (in my tests so far, I can't). The Mosaic should transfer/accept/include ANYTHING in the original source...for example, if video1 has 5 audio tracks, the Mosaic should too...likewise, if video1 has 5 audio tracks & video 2, 3 & 4 have 1 & the background has 0, then the Mosaic should have 8 audio tracks (that the user can choose from) -- or perhaps 9, the 9th would be a mix of all the other tracks (the audio of videos 1, 2, 3 & 4 all mixed together & happening at once {you are seeing 4 videos in a Mosaic, you should hear them all too! [right?]}). Speaking of which, I'd like the same for video: I'd like the Mosaic to include 1 Mosaic video track (all 4 videos+the bg {"the Mosaic"}), plus 1 extra, separate, video track for each input: with 4 videos the Mosaic should have 5 or 6 video tracks (the Mosaic, the 4 separate input video tracks, plus perhaps the background track as another video track). The user could switch between Video tracks using the normal VLC menus. Those separate video tracks should have NO transcoding at all on them, pass thru the original signal. Transcoding should not be involved anywhere, except where extremely necessary...if it is necessary, then I want the most CPU-loving, least CPU-intensive type of transcoding (my current computer can't handle much).

More questions: Does Mosaic = VLM? I saw the VLM forum, but it says it's "a stream scheduler"...I'd like to ignore VLM, for now, if that's not 100% necessary for Mosaic. I understand that it might be necessary & that's fine (I even use --vlm-conf below). If Mosaic is 100% intertwined with VLM, then please move this topic there.

Why is Mosaic soo hard? It would be much simpler for me to just run 4 (or 5, including the bg) VLC processes & move & size the windows to fake a Mosaic. Why is playing 4 videos in 1 VLC so hard?

To get started, here's my most-recent test...
  • 2x2_mosaic.conf...
    • Code: Select all

      new video1 broadcast enabled setup video1 option image-duration=119 setup video1 input "T:\VLC - Mosaic\Pix\VLC - Mosaic - Video 1.640x360.png" setup video1 output #duplicate{dst=mosaic-bridge{id=1,width=640,height=360},select=video,dst=bridge-out{id=1},select=audio} new video2 broadcast enabled setup video2 option image-duration=119 setup video2 input "T:\VLC - Mosaic\Pix\VLC - Mosaic - Video 2.640x360.png" setup video2 output #duplicate{dst=mosaic-bridge{id=2,width=640,height=360},select=video,dst=bridge-out{id=2},select=audio} new video3 broadcast enabled setup video3 option image-duration=119 setup video3 input "T:\VLC - Mosaic\Pix\VLC - Mosaic - Video 3.640x360.png" setup video3 output #duplicate{dst=mosaic-bridge{id=3,width=640,height=360},select=video,dst=bridge-out{id=3},select=audio} new video4 broadcast enabled setup video4 option image-duration=119 setup video4 input "T:\VLC - Mosaic\Pix\VLC - Mosaic - Video 4.640x360.png" setup video4 output #duplicate{dst=mosaic-bridge{id=4,width=640,height=360},select=video,dst=bridge-out{id=4},select=audio} new bg broadcast enabled setup bg option image-duration=-1 setup bg input "T:\VLC - Mosaic\Pix\VLC - Mosaic - Background.1280x720.png" setup bg output #transcode{sfilter=mosaic,vcodec=mp4v,vb=4000}:bridge-in{id-offset=100}:display control bg play control video1 play control video2 play control video3 play control video4 play
    2x2_mosaic.bat...
    • Code: Select all

      start "" "C:\Program Files\VLC\2.0.5\vlc.exe" -vvv --color --vlm-conf=2x2_mosaic.conf --mosaic-width=1280 --mosaic-height=720 --mosaic-keep-picture --mosaic-rows=2 --mosaic-cols=2 --mosaic-position=1 --mosaic-order=1,2,3,4 --file-logging
...that's the closest I've gotten so far, but as you can see "setup bg output" has "#transcode" in it, which is what I wanna avoid. Feel free remove the transcode, if you can...or, if you can't, change the "vcodec" to anything that would be most CPU-efficient. "mp4v" was just in 1 example I found, so I used it, for now -- do not think that is the real encoding I want. I want whatever will work best, even raw or whatever.

In fact, change EVERYTHING about my code to "do it the right way"...that was only mashed together from years of examples all over the internet. Do I even need to use "#duplicate" in "setup video1 output"?...or can it be done another, better, way? Specifically, I need help on the "output" syntax...that weird "#duplicate" & "#transcode" syntax (& "#whatever" else might be possible)...are there any current Docs about that syntax? What is possible? What is CPU-intensive?
"why the f*** do i need a google+ account to comment on a video?" — jawed (2013) (about YouTube's new requirement of Google+)

youtube.lua — Play YouTube videos in VLC!
Updated: Thu, Jan 15, 2015 --- 1/15/15, 7:19:19pm EST

forum.videolan.org/viewtopic.php?f=29&t=111977&p=379147#p379147
Sigh, the above can't be a link: "You cannot use certain BBCodes: [url]."...so, I can't even link back to a post on this forum?
How about this: can long-term/trusted users be allowed links in sigs?

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: Mosaic without Transcoding? (& without VLM???)

Postby Jean-Baptiste Kempf » 05 Nov 2013 21:55

Is it possible to create a Mosaic (2x2, 4 videos) without transcoding?
No.
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.

JSLover
Cone that earned his stripes
Cone that earned his stripes
Posts: 116
Joined: 20 Mar 2012 00:08
VLC version: 2.1.5
Operating System: Win7
Location: r.secsrv.net/youtube.lua

Re: Mosaic without Transcoding? (& without VLM???)

Postby JSLover » 06 Nov 2013 05:19

No.
...umm, OK, should I create a new topic for the rest of my questions?...or wait for more responses from other people?
"why the f*** do i need a google+ account to comment on a video?" — jawed (2013) (about YouTube's new requirement of Google+)

youtube.lua — Play YouTube videos in VLC!
Updated: Thu, Jan 15, 2015 --- 1/15/15, 7:19:19pm EST

forum.videolan.org/viewtopic.php?f=29&t=111977&p=379147#p379147
Sigh, the above can't be a link: "You cannot use certain BBCodes: [url]."...so, I can't even link back to a post on this forum?
How about this: can long-term/trusted users be allowed links in sigs?

postscripter
Blank Cone
Blank Cone
Posts: 36
Joined: 21 Jul 2017 08:30
Location: Hot Russia

Re: Mosaic without Transcoding? (& without VLM???)

Postby postscripter » 14 Nov 2018 10:59

Is it possible to create a Mosaic (2x2, 4 videos) without transcoding?
No.

It is possible with VLC version one. Have no idea, why did they change it. And why on Earth do we need to transcode now. That's not logical.

Code: Select all

new channel1 broadcast enabled loop setup channel1 input 1.avi setup channel1 output #duplicate{dst=mosaic-bridge{id=1,height=256}} new mosaic broadcast enabled loop setup mosaic input 2.avi setup mosaic output #bridge-in:display setup mosaic option sub-filter=mosaic setup mosaic option mosaic-keep-picture control mosaic play control channel1 play
vlc --vlm-conf demo.vlm


Return to “General VLC media player Troubleshooting”

Who is online

Users browsing this forum: Majestic-12 [Bot] and 14 guests