Ivf (ivf v0.1.0)

Collection of convenience functions to work with IVF files as described here: https://wiki.multimedia.cx/index.php/Duck_IVF.

Link to this section Summary

Functions

Append all packets to an new IVF file.

Open an IVF file and lazy stream all frames.

Create a new IVF file.

Link to this section Functions

Link to this function

append_all(writer, packets, close_file \\ false)

Append all packets to an new IVF file.

Open an IVF file and lazy stream all frames.

iex> {props, stream} = Ivf.stream!("test/videos/test_vp8.ivf")
iex> props
%Ivf.Props{
  width: 320,
  height: 180,
  tb_num: 1,
  tb_den: 5,
  frame_count: 280,
  codec: "VP80"
}
iex> stream |> Enum.to_list |> length
280
Link to this function

write!(file, props)

Create a new IVF file.