Skip to content

Very simple FFmpeg wrapper library written in Gleam

Notifications You must be signed in to change notification settings

jackjohn7/peggy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

peggy

NOTE: This package is WIP

Package Version Hex Docs

gleam add peggy
import peggy

pub fn main() {
  // creates a 5 second video of black screen
  peggy.new_command()
  |> peggy.fmt("lavfi")
  |> peggy.input("color=c=black:s=1920x1080:d=5")
  |> peggy.video_codec("libx264")
  |> peggy.duration("5")
  |> peggy.output("output.mp4")
  |> peggy.exec_sync
}

Further documentation can be found at https://hexdocs.pm/peggy.

Development

gleam run   # Run the project
gleam test  # Run the tests
gleam shell # Run an Erlang shell

About

Very simple FFmpeg wrapper library written in Gleam

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages