All Projects → anibali → lua-ffmpeg-ffi

anibali / lua-ffmpeg-ffi

Licence: MIT License
LuaJIT FFI bindings to FFmpeg libraries

Programming Languages

lua
6591 projects
shell
77523 projects

ffmpeg-ffi

LuaJIT FFI bindings to FFmpeg libraries.

Usage

local ffmpeg = require('ffmpeg')

local ascii_frame = ffmpeg.new('./example.mpg')
  :filter('gray', 'scale=40:12')
  :read_video_frame()
  :to_ascii()

print(ascii_frame)

Torch

If you have Torch installed, load the enhanced version of the library.

local ffmpeg = require('ffmpeg.torch')

local byte_tensor = ffmpeg.new('./example.mpg')
  :filter('rgb24', 'scale=512:512')
  :read_video_frame()
  :to_byte_tensor()

local float_tensor = first_frame_tensor:float():div(255)
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].