Code Monkey home page Code Monkey logo

gstreamingtx2's Introduction

gstreamingTX2

Streaming (usb/native camera) on TX2

First, get the IP address of your host and clone the repo. Change directory into the folder.

ifconfig
(to get the IP address of the machine that you are going to be streaming from.)

ssh into the Jetson and git clone the repo. vi homeclient.sh

Use the IP address you got earlier to replace the client IP. Run lsusb to find the ID of the USB camera that you are streaming with. Change the 'sensor_id' to the id of the usb camera.

CLIENT_IP=[IP ADDRESS HERE] gst-launch-1.0 nvcamerasrc sensor_id=0 fpsRange="30 30" intent=3 ! nvvidconv flip-method=6 ! 'video/x-raw(memory:NVMM)' ! omxh264enc control-rate=2 bitrate=4000000 ! 'video/x-h264, stream-format=(string)byte-stream' ! h264parse ! rtph264pay mtu=1400 ! udpsink host=$CLIENT_IP port=5000 sync=false async=false

On the Jetson, run sudo sh homeserver.sh

and on your machine, run sudo sh homeclient.sh

HAPPY STREAMING! :)

gstreamingtx2's People

Contributors

graceyraspberry avatar

Watchers

 avatar

gstreamingtx2's Issues

报错!请问您tx2用的jetpack是哪个版本?我的是3.3

报错!请问您tx2用的jetpack是哪个版本?我的是3.3。
本地推流,127.0.0.1,数据流客户端解析花屏,控制台报错信息如下:
Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
Caught SIGSEGV
#0 0x0000007fb443c030 in __GI___poll (fds=0x81d2c0, nfds=2,
#1 0x0000007fb453d3ac in ?? () from /lib/aarch64-linux-gnu/libglib-2.0.so.0
#2 0x00000000004dcc70 in ?? ()
Spinning. Please run 'gdb gst-launch-1.0 8685' to continue debugging, Ctrl-C to quit, or Ctrl-\ to dump core.
您的数据流解析没问题吧,故问您上述问题,我是先从版本开始排除,准备用最新的4.2试下。

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.