Giter VIP home page Giter VIP logo

grdisplayapp's Introduction

Gadget Renesas DisplayApp for Linux

DisplayApp is an application that displays the camera image sent by USB CDC.

How to build

You can use the prebuilt binaries in bin directory. Or run make build command. displayapp will be build in bin directory.

How to use in Linux

To record the video as MP4 file, run the following command. /tmp/out.mp4 will be created.

displayapp | ffmpeg -y -f image2pipe -c:v mjpeg -r 30 -i - -vcodec libx264 /tmp/out.mp4

To display the video in the window, run the following command.

displayapp | ffplay -i -

To output jpeg files every 1 seconds, run the following command. /tmp/test*.jpg will be created.

displayapp -p /tmp

To use v4l2loopback, run the following commands. First start v4l2loopback with modprobe command. Then confirm your loopback device with v4l2-ctl command.

sudo modprobe v4l2loopback exclusive_caps=1
v4l2-ctl --list-devices

In my case, the loopback device was /dev/video1. In the case, run the following command.

./displayapp | ffmpeg -y -f image2pipe -c:v mjpeg -r 30 -i - -pix_fmt yuyv422 -f v4l2 /dev/video1

How to use in Windows

Use -d option to specify the COM port. Do not forget to install ffmpeg.

For example, To record the video as MP4 file, run the following command.

displayapp.exe -d COM5 | ffmpeg -y -f image2pipe -c:v mjpeg -r 30 -i - -vcodec libx264 out.mp4

To display the video in the window, run the following command.

displayapp.exe -d COM5 | ffplay -i -

Reference

grdisplayapp's People

Contributors

takjn avatar

Watchers

 avatar  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.