I need to create stupidly simple local web page that shows video stream from my Dahua ip cams. The simple code works very well, but the problem is in the aspect ratio.
Code: Select all
<embed
type="application/x-vlc-plugin"
pluginspage="http://www.videolan.org"version="VideoLAN.VLCPlugin.2"
width="704px"
height="576px"
id="vlc"
loop="yes"
autoplay="yes"
target="rtsp://username:passwd@cam_ip/cam/realmonitor?channel=1&subtype=1">
</embed></td>
As a result I get black video window size 704 × 576 and the video is in the middle [of the window] far less than 704px (even less than 576 actually) so the black bars appear in both sides of video and it is badly distorted horizontally.
If I play the same URL in a VLC player the aspect ratio is correct and no black bars on sides. The problem is with my code and the VLC web plugin in the Firefox. I have tried to find simple way to tell to the VLC plugin to use correct aspect ratio but without any luck. No matter what values I give for width and height, the video is always distorted. I'm not a coder so I'm looking for the simplest possible solution.
This html code is meant to be used only in one local computer that is connected only to intranet, not to the internet.
If anyone could show a simple example how to solve the problem, I would be very grateful.