Coder Social home page Coder Social logo

jonas-koeritz / xpro-rtp Goto Github PK

View Code? Open in Web Editor NEW
16.0 7.0 4.0 10 KB

This project is deprecated. See my other "actioncam" project for a replacement.

Home Page: https://github.com/jonas-koeritz/actioncam

JavaScript 100.00%
hack action-camera rtp

xpro-rtp's Introduction

This project is deprecated

See my other "actioncam" project for a replacement: jonas-koeritz/actioncam

XPro RTP

Connecting to the camera

  1. Enable WiFi on your camera
  2. Connect your Computer to the WiFi network of your Camera

Streaming to VLC

  1. Open the packaged sdp file with VLC
  2. Start the Node.JS script using node index.js
  3. The cameras preview will be visible in VLC

Known limitations

  1. Video playback in VLC is laggy as long as the image is not dark enough or moving enough. This could be the result of the very naive RTP implementation, playing the raw stream using ffplay works flawlessly. This could be fixed by the latest commit (Thanks to Alexander G.), but I do not own a camera to try the changes with.

xpro-rtp's People

Contributors

jonas-koeritz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

xpro-rtp's Issues

Thanks

Hi, sorry for abusing an issue for a thanks, but your blog fails to load disqus. Anyway thanks for your blog post and code I was able to stream the live-preview of my "Birca B-Pro5 Alpha AE" to my computer. :)

Not Working on my Camera

So i am trying to get this working and judging from your code, it is relatively the same process.

However vlc will not stream it at all (buffer deadlock prevented) and using "ffplay 127.0.0.1:8888" results in a messed up image not recognizable at all.

I am wondering if i could share my pcap file to try and figure this out?

sending packets immediately will make video run smoothly

Hello, excellent work!

While trying to read the video stream of 'videoSender' I noticed it does not run smoothly - until I changed the way of sending: send packets immediately instead of frame by frame. I think the reason is the assumption that consecutive packets make up one video frame which does not need to be. Video packets can arrive in different order...

  var payload = msg.slice(8);
  //frameBuffer = Buffer.concat([frameBuffer, payload]);
  videoSender.send(payload, 8888, "127.0.0.1");

That did the trick for me to make run the video smoothly in OpenCV, ffplay & VLC :)

import cv2
import math
import numpy as np
from matplotlib import pyplot as plt


cap = cv2.VideoCapture("udp://127.0.0.1:8888")


while(True):
  # Capture frame-by-frame
  ret, frame = cap.read()  
  if ret == True:    
    cv2.imshow('frame',cv2.resize(frame, (640, 640)) )
    if cv2.waitKey(1) & 0xFF == ord('q'):
      break
  else:
    break

# When everything done, release the capture
cap.release()
out.release()
cv2.destroyAllWindows()

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.