![]() ![]() Learn to use iftop to see if the data really flows thru network, etc.I had the same issue on a Logitech C920 and I confirm that changing the Video Format field from "YUYV 4:2:2" to "BGR3 (Emulated)" fixed it for me. Could be problem with permissions to access the video/audio device, missing codecs, misspelled -sout parameters. VLC is very chatty program, so it will tell you where the problem is. ![]() How to display FLV stream from VLC in web page is covered here: Stream VLC to Website with asf and Flashīe aware of many problems that WILL arise. I stayed with Flowplayer, but I don't remember the reason, maybe because of plugins (which I don't use:) ) or because of better documentation. I tried two products, which are free for non-commercial usage: JW Player and Flowplayer. Laptop$ vlc In both cases, you should see your webcam input.ĭisplaying the stream on web, which will work in most cases, is via flash player. Laptop$ vlc And you can test your server's stream: In both examples, you can test functionality by viewing streams via VLC. Why we don't use transcode part as in first example? The video is already in the right format, so all we have to do is just stream it as-is. Why 8082 and not 8081? 8081 is already taken by the SSH remote forward. sout '#transcode'Īs in the laptop part, your VLC on server is bind to port 8082. I personally use FLV, since it is less CPU demanding. ![]() Especially look at "video group" part and correct device path to /dev/video and /dev/audio. For more details follow the mentioned HOWTO. Which is the first part of VLC command to connect to webcam. The only part which you should be interested is: I've never captured stream from locally attached webcam, but there are many examples how to do it via V4L, e.g: Regardless on used scenario, the infrastructer will look like this CAMERA - (usb) - LAPTOP - (network, limited upload) - SERVER - (network) - Client 0Ĭapture video from webcam. This is little bit tricky, but will work from any network which will allow you to SSH to your server and have sufficiant upload (1 Mbps should do it). Laptop is not connected with public I address. Big disadvantage is, that you're bound to one location (one IP address). This scenario is much easier, since you can connect from server to laptop nice and easy. Laptop is connected with public IP address OR you can NAT port to laptop. You haven't described your internet connection for your laptop, so the scenario is divided into two section: So the stream will flow 1 time to server and then N times to clients from there. Since your bandwith from laptop is limited (couple Mbps tops) you need to get stream to your server and there restream it to clients. Both can be displayed by flash players in web page. FLV is easier to transcode, h264 has better size/quality ratio but transcoding is much more cpu consuming. I currently develop online streaming from 3 miniDV cameras connected via FireWire, which is quite similar to your needs.įirst of all, there are two video formats, that you can use in online streaming: FLV and h264. ![]()
0 Comments
Leave a Reply. |