This demo specifically shows how we can supply input and obtain output via using
input and output pipes to ffmpeg
.
This demo has been verified to be able to create a thumbnail of an image on MacOS, Linux and Windows Server 2019 and 2022. See the GitHub workflow runs if you want to learn more.
See thumbnail.go for the execution of ffmpeg
.
- Use context to ensure that we don't wait for ever for
ffmpeg
to complete. See this commit for one way to do so. I removed the change to simply this demo itself. - Update test to verify the dimensions of the thumbnail to be created