Skip to content

herry1234/jslive

Repository files navigation

Purpose:

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://171.71.46.197:1935/live/myStream

working, but it has 5 seconds delay.

  1. -VLC streaming

not success

  1. -MEPG-DASH

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 http://127.0.0.1:8082/herry/640/480/
  • 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.

mbebenita/Broadway#9

https://github.com/bkw/node-dronestream

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.

About

livestreaming capture card

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published