mosaic from ip camers

This forum is about all development around libVLC.
jtag
New Cone
New Cone
Posts: 2
Joined: 20 Mar 2017 12:42

mosaic from ip camers

Postby jtag » 20 Mar 2017 12:56

Hello guys. I need help. I wanna make mosaic from several rtsp channels from ip cameras. In h.264 format. I'm writing on c/c++. I'm writing mini video server. Help me please with code. It don't work.

Code: Select all

libvlc_vlm_add_broadcast(inst, "Camera1", "rtsp://admin:admin@172.16.64.101:554/ch0_0.h264", "#mosaic-bridge{id=1,height=366}", 0, NULL, true, 0); libvlc_vlm_add_broadcast(inst, "Camera2", "rtsp://admin:admin@172.16.64.105:554/ch0_0.h264", "#mosaic-bridge{id=2,height=366}", 0, NULL, true, 0); libvlc_vlm_add_broadcast(inst, "Camera3", "rtsp://admin:admin@172.16.64.120:554/ch0_0.h264", "#mosaic-bridge{id=3,height=366}", 0, NULL, true, 0); libvlc_vlm_add_broadcast(inst, "Camera4", "rtsp://admin:admin@172.16.64.125:554/ch0_0.h264", "#mosaic-bridge{id=4,height=366}", 0, NULL, true, 0); char* mosaicOptions[] = {"image-fps=25/1", "image-duration=-1"}; libvlc_vlm_add_broadcast(inst, "mosaic", "/home/jtag/Pictures/320439.jpg", "#transcode{sfilter=mosaic{width=1600,height=450,mosaic-height=450, mosaic-width=1600, mosaic-alpha=255, mosaic-xoffset=0, mosaic-keep-picture, no-media-library, mosaic-rows=1, mosaic-cols=2 , mosaic-position=0, mosaic-order=1,2, mosaic-position=1},vcodec=h264,vb=2000,fps=15}:duplicate{dst=display}", 2, mosaicOptions, true, false); libvlc_vlm_play_media(inst, "Camera1"); libvlc_vlm_play_media(inst, "Camera2"); libvlc_vlm_play_media(inst, "Camera3"); libvlc_vlm_play_media(inst, "Camera4"); libvlc_vlm_play_media(inst, "mosaic");

jtag
New Cone
New Cone
Posts: 2
Joined: 20 Mar 2017 12:42

Re: mosaic from ip camers

Postby jtag » 20 Mar 2017 13:00

in the console:
[h264 @ 0x7ff4ce9f8ac0] mmco: unref short failure
[h264 @ 0x7ff4ce9f9060] mmco: unref short failure
[h264 @ 0x7ff4ce9f77c0] mmco: unref short failure
[h264 @ 0x7ff4ce9f8540] mmco: unref short failure
[0x7ff4ce98e058] avcodec decoder error: more than 5 seconds of late video -> dropping frame (computer too slow ?)
[h264 @ 0x7ff4ce9f8ac0] mmco: unref short failure
[h264 @ 0x7ff4ce9f8ac0] mmco: unref short failure

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 from ip camers

Postby Jean-Baptiste Kempf » 14 Apr 2017 14:19

You're asking a lot of this machine. Is your CPU peaking?
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.


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 14 guests