Giter VIP home page Giter VIP logo

mat2gstreamer's Introduction

For hands-on information see gstreamer.md

mat2gstreamer

Open camera by OpenCV and send it to UDP/RTP

  • Preliminars for Ubuntu 14.04
    • Install gstreamer1.0 and 0.10: `add-apt-repository ppa:mc3man/gstffmpeg-keep && apt-get update && apt-get install libgstreamer1.0* gstreamer1.0* libgstreamer0.10* gstreamer0.10*``
    • Build opencv without gstreamer 0.10 support: -D WITH_GSTREAMER=ON -D WITH_GSTREAMER_0_10=OFF
  • Configure the source code: Maybe you have another cameradevice, etc.
  • Build: cmake . && make
  • Run a standalone gstreamer udtsrc and display the video strea (sampling, depth, width, and height might differ): gst-launch-1.0 -v udpsrc port=5000 caps="application/x-rtp, media=(string)video, clock-rate=(int)90000, encoding-name=(string)RAW, sampling=(string)BGR, depth=(string)8, width=(string)640, height=(string)480" ! rtpvrawdepay ! videoconvert ! ximagesink
  • Notes
    • If the caps string is not correct, just open up a gstreamer udpsink for you webcam and investigate the caps section of the verbose output. This string needs to be put into the caps section of the udpsrc
    • Do not use gstreamer0.10

Hints

Links

mat2gstreamer's People

Contributors

tik0 avatar

Watchers

James Cloos avatar

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.