Coder Social home page Coder Social logo

y4mtools's Introduction

y4mtools

ffmpeg-less, pure python, y4m conversion tools

Y4MCONV

Y4M is an increasingly popular format for yuv sequences due to the fact that it includes the basic format data embedded in the file. Old style YUV files are just raw pixel data which has always carried challenges in terms of metadata management. Y4MCONV is a utility to convert from yuv to y4m.

Y4M to YUV conversion

Use y4mconv to convert from Y4M files to raw YUV files. For example:

y4mconv.py -i input.y4m -o output.yuv 

It's important to note that yuv files are raw pixel data so all information about resolution and framerate is lost in this conversion. Y4MCONV however, generates a metadata file in json format with the same name of the output yuv file that contains all the relevant format information about the sequence.

To query information about a Y4M file simply do:

y4mconf.py -i input.y4m

YUV to Y4M conversion

To create Y4M files from a yuv you can:

y4mconv.py -i input.yuv -o output.y4m -w WIDTH -e HEIGHT -num 25 -den 1

Because YUV files are naked you need to explicitely set the width and the height. Notice that the height parameter is set with the '-e' option due the fact that '-h' brings up the help. The framerate of the file is determined by num/den

Help

For all supported options type:

y4mconv.py -h

Author

Check my other projects like codecbench, CABSscore specification, or my very own linked in profile

y4mtools's People

Contributors

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