Recently had a task to open streams from 4 cameras over RSTP in a single windows using VLC. There is a bunch of howtos on net with relevant info and examples, but after trying many options non of them worked out of the box. Tweaking things here and there for a while I managed to come up with the working configuration, so I post it here for future reference and hopefully it will be helpful to anyone else.
Rtsp Player Mac
Search install mac virus. My cameras stream dimensions is 1280×720 and as I want to fit 4 cameras on one screen, I will scale them in half to have screen size 1280×720 and each stream size 64×360.
First thing to do is to create some background image with exact size of the desired screen (1280×720 in my case) and save somewhere near (bg.jpg in my case).
Starbuck's FreePlayer is a simple and complete media player based on the powerful MPlayer project. FreePlayer is gratis (free of charge) and its code is open-source. Starbuck's FreePlayer runs on Windows, Linux and Mac OS X pl. VLC Media Player, a free media player and converter for Mac and PC computers, supports playback of many types of streaming media, including HTTP, MMS and RTSP streams simply by pasting the stream's URL into the proper field. Download the latest version of VLC Media Player for Mac OS X (see Resources).
Then we need to create a VLM config file (let it be cam.vlm.conf) to tell VLC about my streams and how to deal with them:
Asf Player Mac
The video shows how to play the rtsp video stream on QuickTime media player. More information: https://www.unifore.net/ip-video-surveillance/how-to-play-rtsp. Free IP Camera Software. Easy to use MJPEG, MPEG-4, H.264, RTSP, RTMP viewer & recorder. Easy connection of 400+ brands. Clean Intuitive interface.
The input path to the camera streams as well as full path to the background image should be adjusted accordingly.
Somehow VLC doesn’t want to recognize mosaic-(height|width|order) parameters in the VLM file, so need to supply them inline as arguments when calling VLC. Now as we have VLM file ready, we can start the stream with the following command:
Adjust the path to the VLM file accordingly as well as mosaic order or whatever else you want. For me all of the above worked out perfectly well and I can see all my 4 cameras in single window.
Comments are closed.
|
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |