Git Product home page Git Product logo

markuspfundstein / imflib Goto Github PK

View Code? Open in Web Editor NEW
3.0 3.0 0.0 21.21 MB

Libary and app to create IMF packages (Interoperable Master Format)

License: Other

Makefile 1.30% CMake 0.40% Shell 0.66% M4 0.17% C++ 5.04% C 76.75% Perl 1.35% Objective-C 4.30% Roff 5.08% CSS 0.01% Assembly 4.15% Verilog 0.01% HTML 0.01% Python 0.01% Tcl 0.05% Java 0.16% Inno Setup 0.01% Batchfile 0.13% DIGITAL Command Language 0.44% XS 0.01%

imflib's Introduction

imflib

Goal: encode IMF App2(E) compatible MXF and create and edit IMPs.

State: Basic creation and editing works. Files pass Netflix' photon.

Note: For decoding IMF files, see imf-frameserver

The development of imflib so far has been sponsored 100% by ODMEDIA. I am looking currently for more sponsors. Please get in touch.

Features

  • create and edit App2E compatible IMPs from your video files (RGB, YUV444, YUV422, 10 & 12bit, FullRange)
  • passes Netflix' photon
  • supports multiple CPLs, virtual tracks etc.

Overview

This library consists of two programs. imfenc and imfgui.

imfenc

imfenc is a command line application that lets you encode arbitrary videos to IMF App2E compatible MXF files containing JPEG2000 and PCM.

imfgui

imfgui is a Qt4 app GUI application that allows you to create App2E compatible IMPs. It's not very flexible at the moment but gets the job done.

Drawbacks

  • The programs are a WIP. Therefore they might be clumsy to use :-) Please open an issue on Github if you need a certain feature implemented or if you encounter bugs.
  • Audio MXF creation not yet finished. Needs to be done manually using custom as-02-wrap build from this repo (see manual.pdf)

Installation

sudo apt install libtool automake autoconf cmake pkg-config yasm qt4-qmake libqt4-dev

sh install-deps.sh
autoreconf -if
export LPATH="$(pwd)/third_party"
export CPP_FLAGS="-I${LPATH}/openjpeg/include -I${LPATH}/asdcplib/include -I${LPATH}/ffmpeg/include"
export LDFLAGS="-L${LPATH}/openjpeg/lib -L${LPATH}/asdcplib/lib -L${LPATH}/ffmpeg/lib -L${LPATH}/openssl/lib"
./configure
make

Run it

imfenc

Run sh imfenc.sh

markus@ubuntu:~/projects/imflib$ sh imfenc.sh --help
Allowed Options:
  -h [ --help ]                       show help
  -i [ --in ] arg                     input file
  -o [ --out ] arg                    directory where output files shall be
                                      stored
  -t [ --temp_dir ] arg               directory for temporary files, defaults
                                      to output directory
  -f [ --force ]                      overwrite output files
  -b [ --broadcast_profile ] arg (=1) broadcast profile (1-7)
  -d [ --bitdepth ] arg (=10)         target video bit depth (8, 10 or 12)
  -r [ --sample_rate ] arg (=48000)   target audio samplerate (48000 or 96000)
  -p [ --pixel_fmt ] arg (=RGB444)    pixel format of output. (YUV444, YUV422,
                                      RGB444)
  --use_tiles                         use tiles (only broadcast profile 6 and
                                      7) [default: false]
  --nomux                             dont mux the encoded files into MXF
  --experimental_extract_audio        extracts pcm
  --threads arg                       number of threads for jpeg2000 encoding
  --full_range arg (=0)               full range color space (rgb essence
                                      only), else SMPTE 274M-2008 constraints
                                      are used

Example for mov file:

sh imfenc.sh -i <YOUR_FILE>.mov -o ~/<OUTPUT_DIR> -b 6 -p RGB444 --full_range 1 --threads 16 --experimental_extract_audio

imfgui

Start the gui with sh imfgui.sh

Examples coming, for now see the file manual.pdf and follow the steps

LICENSE

LGPL

imflib's People

Contributors

markuspfundstein avatar odm-markus avatar

Stargazers

 avatar  avatar Alexis Michaltsis avatar

Watchers

James Cloos avatar  avatar  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.