Created: 2014-05-19 04:36
Updated: 2017-12-11 17:01



live streaming the video capture card to Browser.

Approaches tried:

  1. -Wowza + ffmepg

wowza 4.0, config... ffmepg:

avconv -re -f video4linux2 -i /dev/video0 -b:v 300k -c:v libx264 -g 15 -pix_fmt yuv420p -an -f flv rtmp://

working, but it has 5 seconds delay.

  1. -VLC streaming

not success


not success. gpac reports error while streaming. lacks of codec. Maybe it's working well with webcam. but it has problem with capture card.

  1. -WebRTC

not sucess. Screen is black.

  1. -FFMPEG webm encoding + HTTP + video TAG.

It's pretty good to have video tag. workable. 3 seconds delay.

  1. -jsmpeg+ws+ffmepg
  • ffmpeg:
avconv -s 640x480 -f video4linux2 -i /dev/video0 -f mpeg1video -b 800k -r 30
  • server node.js:

accept the mpeg1 data and send it out to client.

  • client side:

using jsmpeg to decode the data from websocket. It's basiclly no delay. less than 1s

  1. -broadway (h264 livestreaming)

working well now.



delay 2-3s

  1. others

test-mjpeg.js is used to generate jpg files from video. ff.conf is the configration file for ffserver. Not success.

Cookies help us deliver our services. By using our services, you agree to our use of cookies Learn more