Giter Club home page Giter Club logo

raspivid-inatech's Introduction

This repository contains Inatech modifications to raspivid for camera synchronization over network.

Build

On Raspberry Pi:

sudo apt install cmake

git clone https://github.com/inastitch/raspivid-inatech.git

mkdir build && cd build/
cmake ../raspivid-inatech/

# If you type 'make' here, the whole 'userland' code will be compiled
# That's a lot of libraries and binaries.

# Only build 'raspivid' and its dependencies:
make raspivid

# 'raspivid' is found at:
../raspivid-inatech/build/bin/raspivid

# We rename it to avoid confusion with the original binary
sudo mv ../raspivid-inatech/build/bin/raspivid /usr/bin/raspivid-inatech

Run

Notice the new PLL parameters:

-pll, --pll-on	: Enable software PLL
-pllv, --pll-v	: Enable PLL debug output
-plls1, --pll-step1	: PLL framerate correction when drift > 0.1ms
-plls2, --pll-step2	: PLL framerate correction when drift > 1ms

Note: the higher the framerate, the stronger the correction for the software PLL to lock.

Examples

To record H264 at 640x480 @ 30fps, along with timing information (PTS file):

# With RPi camera v2, this will capture on the full sensor.
raspivid-inatech                                 \
    -t 0 -w 640 -h 480 -fps 30 -md 4             \
    --pll-on --pll-step1 150 --pll-step2 300     \
    -cd H264 -o video.h264 -pts video.h264.pts

To record MJPEG at @ 100fps:

# With RPi camera v2, this will capture on a reduced area
# of the full sensor.
raspivid-inatech                                 \
    -t 0 -w 640 -h 480 -fps 100 -md 7            \
    --pll-on --pll-step1 500 --pll-step2 1000    \
    -cd MJPEG -o video.mjpeg -pts video.mjpeg.pts

See RPi camera documentation at:

raspivid-inatech's People

Contributors

6by9 avatar adamheinrich avatar aizvorski avatar chinasaur avatar davidplowman avatar dmopalmer avatar electron752 avatar ethanol100 avatar fullergalway avatar ghollingworth avatar inastitch avatar jamesh65 avatar jasaw avatar jsonn avatar julianscheel avatar kraj avatar ledazul avatar luked99 avatar lurch avatar mthuurne avatar naushir avatar pelwell avatar popcornmix avatar rfinnie avatar terminus-imrc avatar thesin- avatar timgover avatar tvjon avatar xecdesign avatar zboobzor avatar

Watchers

 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.