Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mike-dax/gatsby-plugin-ffmpeg
A Gatsby ffmpeg plugin, for local statically transcoded video. Used on https://electricui.com
https://github.com/mike-dax/gatsby-plugin-ffmpeg
ffmpeg gatsby gatsbyjs
Last synced: 3 months ago
JSON representation
A Gatsby ffmpeg plugin, for local statically transcoded video. Used on https://electricui.com
- Host: GitHub
- URL: https://github.com/mike-dax/gatsby-plugin-ffmpeg
- Owner: Mike-Dax
- License: mit
- Created: 2018-12-04T02:48:43.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2023-05-07T05:29:46.000Z (over 1 year ago)
- Last Synced: 2024-10-14T20:01:25.785Z (3 months ago)
- Topics: ffmpeg, gatsby, gatsbyjs
- Language: TypeScript
- Homepage:
- Size: 2.47 MB
- Stars: 4
- Watchers: 3
- Forks: 7
- Open Issues: 17
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# gatsby-plugin-ffmpeg
This is a low level helper plugin for video transcoding with ffmpeg.
You generally shouldn't need to use this. You're most likely looking for [gatsby-remark-videos](https://github.com/Mike-Dax/gatsby-remark-videos) if you want to automatically convert videos in your markdown, or [gatsby-transformer-ffmpeg](https://github.com/Mike-Dax/gatsby-transformer-ffmpeg) if you're looking to use these videos elsewhere in your website
Works with Gatsby v3.
## Install
`npm install --save gatsby-plugin-ffmpeg`
ffmpeg with the correct codecs is also required.
### MacOS
With Homebrew 2.0.3/ffmpeg 4.1.1 ffmpeg options are no longer available on the default tap.
From https://trac.ffmpeg.org/wiki/CompilationGuide/macOS
The following will install ffmpeg.
```
brew tap varenc/ffmpeg
brew install ffmpeg $(brew options ffmpeg --compact)
```## Debugging
Running with the environment variable `DEBUG_FFMPEG=true` will print the ffmpeg arguments used.
```
info ffmpeg is being executed with args: -i ~/markdown-pages/video.mp4 -y -an -vcodec libx264 -b:v 100k -filter:v
scale=w=1206:h=480 -profile:v main -pix_fmt yuv420p -movflags faststart
```## Funding
---
Work on `gatsby-plugin-ffmpeg` is funded by [Electric UI](https://electricui.com). If you need to design an [Arduino GUI](https://electricui.com/hello/arduino), want [visualisations for a complex robotics system](https://electricui.com/features) or generally need a [user interface for your hardware project](https://electricui.com/features), please take a look at the website.