Code Monkey home page Code Monkey logo

silicon_research's Introduction

OpenIPC logo

Simple FPV

Telegram

Encoder

Here is an example of getting video from a GK7205V300 board using only HiMPP low level API.

This example is configured and tested on an IP camera using IMX335 image sensor. If your module has another sensor, you need to adjust board configuration profile in the source code. This example includes profiles for most popular sensors.

Video output format is H.264 over UDP with NAL fragmentation like in RTP, although NAL prefixes are omitted. Keep in mind that this is not a valid RTP stream! To receive and display video stream extra coding is needed. The NAL defragmentation algorithm is described in vdec-sample.c.

How to build

Build script usage:

./build.sh venc-goke
./build.sh venc-hisi
./build.sh vdec

Upload the compiled binary onto your camera:

scp -O venc/venc [email protected]:/tmp

Stop majestic (pre-packaged streamer) and start venc:

killall majestic
/tmp/venc

Links

silicon_research's People

Contributors

bangdc90 avatar cronyx avatar flyrouter avatar ihardrock avatar mariofpvdev avatar themactep avatar viktorxda avatar zigfisher avatar zizzer avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

silicon_research's Issues

About NAL fragmentation.

By modifying the wfb-ng code to remove NAL fragmentation before forwarding the video stream,
Can I use a third party to decode the video? (e.g. QOpenHD, fpv_vr)

Not work mode 1080p60

build master+5ed3801, 2024-02-05

root@openipc-hi3536dv100:# killall vdec
root@openipc-hi3536dv100:
# vdec -p 5600 -d frame -c h265 -m 1080p60 --mavlink-port 14750 --bg-r 30 --bg-g 0
[HI_VERSION=Hi3536D_MPP_V1.0.1.0 B040 Release]

VDEC picture block size = 7856640, 330240
HDMI start success
VO: 1920x1080 @ 60
ERROR: Unable to create VDEC channel
root@openipc-hi3536dv100:~# ERROR: Unable to create VDEC channel

Отдельный параметр -m для VGA и HDMI

У меня подключено два монитора vga(1024х768) и hdmi(720р). Картинка отображается зеркально. Вся проблема заключается в том, что когда -m 720p60 соотношение сторон правильно отображается через hdmi, когда -m 1024x768x60 - наоборот на vga, при этом на hdmi происходит обрезка верх-низ, право-лево.

Если возможно, добавьте настройку разрешения для каждого порта отдельно.

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.