GithubHelp home page GithubHelp logo

maki-rxrz / vsrawsource Goto Github PK

View Code? Open in Web Editor NEW

This project forked from walisser/vsrawsource

3.0 4.0 1.0 107 KB

Raw format video reader for VapourSynth

Makefile 0.74% C 83.74% Shell 15.52%

vsrawsource's Introduction

vsrawsource - Raw format reader for VapourSynth

raw(uncompressed) video source filter for VapourSynth. Also, YUV4MPEG2 and WindowsBitmap(24bit/32bit RGB) are supported.

Usage:

>>> import vapoursynth as vs
>>> core = vs.Core()
>>> core.std.LoadPlugin('vsrawsource.dll')
>>> clip = core.raws.Source('/path/to/file.raw')

If input file has alpha channel, >>> clips = core.raws.Source('/path/to/file_with_alpha.raw', 1920, 1080, src_fmt='BGRA') >>> base = clip[0] # RGB24 clip >>> alpha = clip[1] # GRAY8 clip

options:

  • width video width (1~ default 720)
  • height video height (1~ default 480)
  • fpsnum framerate numerator (1~ default 30000)
  • fpsden framerate denominator (1~ default 1001)
  • sarnum sample aspect ratio numerator (0~ default 1)
  • sarden sample aspect ratio denominator (0~ default 1)
  • src_fmt color format of source video (default 'I420')
  • off_header offset to the first frame data (0~ default 0)
  • off_frame offset to the real data for every frame (0~ default 0)
  • rowbytes_align byte alignment of all rows of frame (1~16 default 1)

these options will be ignored if source is YUV4MPEG2/WindowsBitmap.

supported color formats:

see format_list.txt.

Note:

When input video has alpha channel, this filter returns a list which has two clips. clip[0] is base clip. clip[1] is alpha clip.

How to compile:

on unix system(include mingw/cygwin), type as follows:

$ git clone git://github.com/chikuzen/vsrawsource.git
$ cd ./vsrawsource
$ ./configure
$ make

if you want to use vs2015 then

  • create a an empty dll
  • add rawsource.c

source code:

https://github.com/walisser/vsrawsource

vsrawsource's People

Contributors

chikuzen avatar ifeelbloated avatar maki-rxrz avatar myrsloik avatar walisser avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

amusementclub

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.