Configuration of RTSP stream display using the VLC media player via user interface Open the VLC player. From the Media menu, select the Stream... option. In the Open Media tab, select the video you want to stream and click Add... button. Press the Stream button and Next in the following window. Select the RTSP option from the drop-down list and then press the Add button.
In the new RTSP tab, enter the path to your stream (e.g., /vlc or any name you want). The port can be left as 8554. Press the Next button when all data are entered.
Make sure that the Activate Transcoding option is enabled. Streaming video must be with H.264 codec, so it is required to convert it. Select Video - H.264 + MP3 (MP4) from the Profile drop-down list. Then click Next. Click Stream. Now this stream is available at the rtsp://IP address of the PC from which the stream is displayed:port No./path entered in Step 6, e.g., rtsp://192.168.0.101:8554/vlc. To repeat the stream (and not just once), click where shown until you see the repeat icon for one file.
Log in to the entrance panel web interface. By default, the username is admin, and the password is 123456. Go to the Advanced tab. In the Announcement section, enter the rtsp://IP address of the PC from which the stream is displayed:port No./path, e.g. rtsp://192.168.0.101:8554/vlc. Submit settings.
Configuration of RTSP stream display using the VLC media player via CMD You can set the display of your RTSP server over your local network with the help of a VLC media player. Note that the streaming device and all the receiving device(s) should be connected to the same router for the streaming to work. Also, be aware that streaming video must have 480x272 resolution). Open CMD. Go to the catalog where vlc.exe is, e.g., C:\Program Files\VideoLAN\VLC. Enter the following, where video.mp4 is a video name, C:\videos\video.mp4 is a path to the video that is going to be streamed, after rtsp://192.168.0.101 is the IP address of the PC from which the stream is running (must be changed according to your data). Code Block |
---|
vlc.exe C:\videos\video.mp4 --sout="#rtp{sdp=rtsp://192.168.0.101:8090/stream}" |
As a result, the VLC player will open, and the stream will start. To repeat the stream (and not just once), click where shown until you see the repeat icon for one file.
Log in to the entrance panel web interface. By default, the username is admin, and the password is 123456. Go to the Advanced tab. In the Announcement section, enter the rtsp://IP address of the PC from which the stream is displayed:port No./stream, e.g. rtsp://192.168.0.101:8090/stream. Submit settings.
Сonfiguration of the automatic playback of videos posted on the websiteIf you want to use an HTTP page with a video, it is required to set video automatic playback. After entering the URL you must set the following parameters for the video tag in the Content field (via Developer Tools): for YouTube video: add "&autoplay=1" to the video’s embed code right after the video ID (the series of letters that follows "embed/"). Mind screen resolution to indicate width and height correctly. Example: <iframe width="480" height="272" src="https://www.youtube.com/embed/D6Ac5JpCHmI?&autoplay=1"frameborder="0" allowfullscreen></iframe> for any pages: <video autoplay> <source src="http://my-source.com/movie.mp4" type="video/mp4"> <source src="movie.ogg" type="video/ogg"> Your browser does not support the video tag. </video>
|