{"id":13491761,"url":"https://github.com/talklittle/ffmpex","last_synced_at":"2026-02-21T01:31:01.888Z","repository":{"id":10069360,"uuid":"64347875","full_name":"talklittle/ffmpex","owner":"talklittle","description":"Elixir wrapper for FFmpeg command line interface","archived":false,"fork":false,"pushed_at":"2024-06-30T22:15:29.000Z","size":1330,"stargazers_count":238,"open_issues_count":4,"forks_count":40,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-11-01T08:16:02.931Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://hexdocs.pm/ffmpex/","language":"Elixir","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/talklittle.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-07-27T23:14:14.000Z","updated_at":"2025-10-10T23:14:36.000Z","dependencies_parsed_at":"2024-01-05T22:00:00.815Z","dependency_job_id":"62dea515-4f53-424a-b99e-ecb1b277ce98","html_url":"https://github.com/talklittle/ffmpex","commit_stats":{"total_commits":111,"total_committers":10,"mean_commits":11.1,"dds":"0.10810810810810811","last_synced_commit":"4edfd389934aeddb8a4c1ce7e98f1161cad8ac5c"},"previous_names":[],"tags_count":21,"template":false,"template_full_name":null,"purl":"pkg:github/talklittle/ffmpex","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/talklittle%2Fffmpex","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/talklittle%2Fffmpex/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/talklittle%2Fffmpex/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/talklittle%2Fffmpex/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/talklittle","download_url":"https://codeload.github.com/talklittle/ffmpex/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/talklittle%2Fffmpex/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29670124,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-21T00:11:43.526Z","status":"ssl_error","status_checked_at":"2026-02-20T23:52:33.807Z","response_time":59,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-07-31T19:00:59.958Z","updated_at":"2026-02-21T01:31:01.683Z","avatar_url":"https://github.com/talklittle.png","language":"Elixir","funding_links":[],"categories":["Elixir","Video"],"sub_categories":[],"readme":"# FFmpex\n\n[![Build Status](https://github.com/talklittle/ffmpex/actions/workflows/ci.yml/badge.svg)](https://github.com/talklittle/ffmpex/actions?query=workflow%3ACI)\n[![Module Version](https://img.shields.io/hexpm/v/ffmpex.svg)](https://hex.pm/packages/ffmpex)\n\nAn Elixir wrapper for the FFmpeg command line interface.\n\nDocumentation: https://hexdocs.pm/ffmpex/\n\n## Usage notes\n\nThe API is a builder, building up the list of options per-file, per-stream(-per-file), and globally.\n\nNote that adding options is backwards from using the ffmpeg CLI; when using ffmpeg CLI, you specify the options before each file. But with FFmpex (this library), you add the file/stream first, then add the relevant options afterward.\n\n## Examples\n\n```elixir\nimport FFmpex\nuse FFmpex.Options\n\ncommand =\n  FFmpex.new_command\n  |\u003e add_global_option(option_y())\n  |\u003e add_input_file(\"/path/to/input.avi\")\n  |\u003e add_output_file(\"/path/to/output.avi\")\n    |\u003e add_stream_specifier(stream_type: :video)\n      |\u003e add_stream_option(option_b(\"64k\"))\n    |\u003e add_file_option(option_maxrate(\"128k\"))\n    |\u003e add_file_option(option_bufsize(\"64k\"))\n\n{:ok, output} = execute(command)\n```\n\nIt is possible to obtain ffmpeg's output with:\n```elixir\ncommand =\n  FFmpex.new_command\n  |\u003e add_input_file(\"/path/to/input.mp4\")\n  |\u003e to_stdout()\n  |\u003e add_file_option(option_f(\"avi\"))\n\n{:ok, output} = execute(command)\n\ndo_something(output)\n```\n\nYou can use the `FFprobe` module to query for file info:\n\n```elixir\nFFprobe.duration(\"/path/to/input.avi\")\n# =\u003e result in seconds, e.g., 228.456939\n```\n\nSee [silent_video](https://github.com/talklittle/silent_video)\nand [thumbnex](https://github.com/talklittle/thumbnex)\nfor more usage examples.\n\n## Prerequisites\n\n[FFmpeg](https://ffmpeg.org/) must be installed.\n\n## Installation\n\nAdd `ffmpex` to your list of dependencies in `mix.exs`:\n\n```elixir\ndef deps do\n  [\n    {:ffmpex, \"~\u003e 0.11.0\"}\n  ]\nend\n```\n\n## Configuration\n\nYou can specify some options in `config.exs`:\n\n```elixir\nconfig :ffmpex, ffmpeg_path: \"/path/to/ffmpeg\"\nconfig :ffmpex, ffprobe_path: \"/path/to/ffprobe\"\n```\n\n## Release notes\n\nSee the [Changelog](./CHANGELOG.md) for changes between versions.\n\n## Disclaimer\n\nFFmpex is not affiliated with nor endorsed by the FFmpeg project.\n\nFFmpeg is a trademark of [Fabrice Bellard](http://www.bellard.org/), originator of the FFmpeg project.\n\n## Copyright and License\n\nCopyright (c) 2016 Andrew Shu\n\nFFmpex source code is licensed under the [MIT License](./LICENSE.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftalklittle%2Fffmpex","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftalklittle%2Fffmpex","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftalklittle%2Fffmpex/lists"}