Giter Site home page Giter Site logo

gipffmpegvideo's Introduction

gipFFmpegVideo

A GlistEngine plugin that plays a video and draws it on the screen using FFmpeg library. For instant, the plugin is compatible with Windows and Linux.

Installation

Fork & clone this project into

C:\dev\glist\glistplugins (on Windows) ~/dev/glist/glistplugins (on Linux)

Notice For Linux Developers : Please install necessary libraries before running the plugin:

sudo apt-get install libavcodec58 libavcodec-dev libavformat58 libavformat-dev libavfilter7 libavfilter-dev libavdevice58 libavdevice-dev libavutil56 libavutil-dev libswscale5 libswscale-dev libao-dev libportaudio libportaudio-dev

Notice for all

Please add the PATH variable to eclipse paths by:

Right Click the GlistApp project once on the left, inside the Project Explorer

Then:

Project > Properties > C/C++ Build > Environment

then click PATH followed by clicking Edit on the right. There, at the end of the paths, add:

${workspace_loc}\..\..\..\..\glistplugins\gipFFmpegVideo\prebuilts\bin

Usage

  1. Add gipFFmpegVideo into plugins of your GlistApp/CMakeLists.txt
set(PLUGINS gipFFmpegVideo)
  1. Include gipFFmpegVideo.h in GameCanvas.h
#include "gipFFmpegVideo.h"
  1. Define gipFFmpegVideo object
gipFFmpegVideo video;
  1. Load video and set your app fps (default is 60 if you haven't changed it) in setup
    void GameCanvas::setup() {
        video.loadVideo("sintel_trailer-480p.mp4");
        video.setPaused(false);
        video.play();
    }
  1. Draw
void GameCanvas::draw() {
    video.draw(x, y);
}

Plugin Licence

Apache 2

gipffmpegvideo's People

Contributors

sorbatdev avatar noyanc avatar uturkmen16 avatar irrld avatar

Stargazers

 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.