Coder Social home page Coder Social logo

ffplaydotnet's Introduction

PLEASE DO NOT USE THIS REPO

The codebase has been moved to: https://github.com/unosquare/ffmediaelement I will continue development there.

ffplaydotnet

An attempt to port FFmpeg's FFplay.c

Release: https://github.com/FFmpeg/FFmpeg/releases/tag/n3.2

Source Code: https://github.com/FFmpeg/FFmpeg/blob/release/3.2/ffplay.c

Media Container Architecture

Media Containers represent an input context, stream operations and decoding logic. The steps to successfully obtain usable datta are as follows:

  • Open the container with a URL.
  • Read the next packet and determine its media type
  • Push the packet into the pending packet queue of the appropriate audio, video or subtitle component
  • Decode packet from the pending packet queue into a frame. Move the packet to the sent packet queue.
  • If 1 or more frames were decoded, clear the sent packets queue.
  • Push the decoded frames into the component's frame queue
  • Dequeue the raw frame from the component's frame queue
  • Materialize the frame into a Media Frame (this converts the raw frame data into usable media)
  • Release (Dispose) the materialized frame

Basic Test Cases:

  • Audio and Video times both start at 0
  • Video frames match end times with the following Video frame's start time
  • Audio frames match end times with the following Audio frame's start time
  • Video frame duration matches framerate
  • Audio frame duration matches start time and end time comparted to the following audio frame

ffplaydotnet's People

Contributors

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