GithubHelp home page GithubHelp logo

mediatechnotes's Introduction

MediaTechNotes

Table of Content

Media Compression

Audio Encoding

  • FFmpeg AAC encoding require number of samples each frame be exactly 1024 (frame->nb_samples = 1024), otherwise, it will return "more samples than frame size" for avcodec_encode_audio2 function (error code -22, Invalid Argument).

  • When creating AVFrame with PCM buffer using avcodec_fill_audio_frame, be sure to read the document clearly:

    The buffer buf must be a preallocated buffer with a size big enough to contain the specified samples amount. The filled AVFrame data pointers will point to this buffer.

    So buf pointer needs to be pre-allocated and will be assigned to AVFrame. Therefore, don't try to reuse the pointer for other things, which will cause electronic noise after the AVFrame done processing (dirty buffer).

Remuxing

FFmpeg Gists

Hardware Acceleration

  • nVidia Jetson Hardware Acceleration Options (for Jetson Nano, Jetson Xavior). NV SDK ffnvcodec is not available. You can only get hardware acceleration with nvmpi through: Jetson-FFMpeg, (which by default works with FFmpeg 4.2, for other versions of FFmpeg, you need to apply patch manually). For other platforms, FFmpeg can support hardware acceleration directly through nvsdk.

About This Repository

This repository is used to record media technology records as we march forward. It's not meant to be systematic, but more like random gems collected. Contact me if you want to connect with me:

mediatechnotes's People

Contributors

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