Giter Site home page Giter Site logo

viciantomas / matlab-data-video-converter Goto Github PK

View Code? Open in Web Editor NEW

This project forked from fangfufu/matlab-data-video-converter

0.0 1.0 0.0 274 KB

Convert arbitrary binary files into a video.

License: GNU General Public License v3.0

MATLAB 78.74% Shell 21.26%

matlab-data-video-converter's Introduction

Matlab-Data-Video-Converter

IMPORTANT UPDATES

There are some important updates - you don't have to use Matlab to convert the data. You can use ffmpeg. There are 3 shell scripts in the repository which do these things. They are pretty much self-explanatory. If you can't figure out what to do, contact me. You can definitely reach me via Reddit.

These shell scripts were originally designed by raedwulf (https://github.com/raedwulf). He couldn't be bothered to upload them.

Introduction

Convert arbitrary binary files into a video.

Example output: https://www.youtube.com/watch?v=Zz_jMKZOeBg

Note, that parameter that achieves the highest data rate appears to be bs_x = 8, bs_y = 8, repeat = 2. If you set the parameter higher than that, Youtube refuse to accept the video.

Please note that there is release version available for people without Matlab, although you do have to install Matlab Runtime Environment, which is available for free. The installer will install Matlab Runtime Environment for you automatically.

Usage

  • Converting a data file to video
%FILETOVIDEO Convert a file into a video
%   [len, bc_x, bc_y] = FileToVideo(in_name, out_name, ...
%   dim_x, dim_y, bs_x, bs_y)
%   Where   in_name is the input filename an arbitrary binary file, 
%           out_name is the output filename of the video,
%           dim_x is the desired width of the video,
%           dim_y is the desired height of the video,
%           repeat is the number of repeated frame,
%           bs_x is the horizontal block size of the video,
%           bs_y is the vertical block size of the video.
  • Converting a video file to data
%VIDEOTOFILE Convert a video back into a file
%   VideoToFile( in_name, out_name, bc_x, bc_y )
%   Where   in_name is the input filename of the video
%           out_name is the output filename of the binary
%           len is the length of the binary file
%           repeat is the number of repeated frame for each unique frame
%           bc_x is the block count in horizontal direciton
%           bc_y is the bock count in the vertical direction

matlab-data-video-converter's People

Contributors

fangfufu avatar orthographic-pedant avatar

Watchers

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