Giter VIP home page Giter VIP logo

kinesisvideo-encoder-common's People

Contributors

aalon avatar dabonnie avatar dependabot[bot] avatar emersonknapp avatar jamesiri avatar jikawa-az avatar jpeddicord avatar juanrh avatar lucashan avatar mike-moore-az avatar mm318 avatar nburek avatar ross-desmond avatar ryanewel avatar xabxx avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

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

kinesisvideo-encoder-common's Issues

Improperly detecting h264_omx encoder on Ubuntu Bionic

On Ubuntu 18.04 Bionic Beaver x86_64, I am finding that ffmpeg is indicating the "h264_omx" encoder is available even though it is not working ("libOMXCore.so" is not available), which means the h264_video_encoder node is effectively broken on Bionic Beaver x86/x64.

Missing license file

In order to comply with the LGPLv2.1 license you must provide a copy of the license, not just a link.

Hardware encoding on Ubuntu Bionic

In our testing, HW encoding worked out of the box for RPi running Xenial (most likely because the ffmpeg was properly configured). However, we've been having difficulties getting it to work on Ubuntu Bionic.
This is tightly related to #2 , but the issue is two fold:

  1. Correct detection of encoding capabilities is still not quite there. If ffmpeg was configured without --enable-omx-rpi, it will try to use libOMXCore.so, which (by default) is unavailable - only libopenmaxil.so is. The code that detects HW encoding support (#3) reports that it is available because it found libopenmaxil.so. One option to solve it, once and for all, is to actually try to open the codec (invoke avcodec_open2) as part of the check (inside is_omx_available). If it fails, fall back to SW encoding, while warning about it.

  2. The bigger problem, in my mind, is that there seems to be no easy or simple way to set up the RPi for HW encoding with Bionic... the Bionic images we've tried do not come with properly-configured ffmpeg. When building ffmpeg from source there are numerous intricacies with regards to how to compile it properly (configuration flags etc.). We need to come up with a solution to simplify this, and I wouldn't rule out building & vending binaries of ffmpeg (along with all related libraries) ourselves.

Detection of hardware encoder is incorrect

With #35, there is an initial attempt to open the h264_omx encoder to detect whether or not it is available. However, the attempt to open it gives a message like:

[h264_video_encoder-11] [h264_omx @ 0xea8260] The encoder timebase is not set.

and fails to correctly identify that the encoder is actually there available and working.

I suspect this is because the h264_omx encoder is being attempted to be opened in is_codec_available() with unset parameters (where the timebase, or framerate, is not set as the error message above indicates).

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.