Skip to content

Latest commit

 

History

History
34 lines (26 loc) · 629 Bytes

README.md

File metadata and controls

34 lines (26 loc) · 629 Bytes

ffbindings

compile C

cc -fPIC -I/usr/local/lib/erlang/erts-10.2.3/include -lavformat -dynamiclib -undefined dynamic_lookup -o ffbindings.so ffbindings.c

compile Elixir

$> iex
iex> c "ffbindings.ex"
[FFbindings]

run Elixir

iex> FFbindings.file_info("sample.mp4")
%{
  'format' => 'QuickTime / MOV',
  'streams' => [
    %{'duration' => 10, 'type' => 'video'},
    %{'duration' => 10, 'type' => 'audio'},
    %{'duration' => 10, 'type' => 'audio'},
    %{'duration' => 10, 'type' => 'data'}
  ]
}

link

dnlserrano.dev