Go-video-preview-ffmpeg-wrapper - A simple helper wrapper to generate small webm video previews using ffmpeg, useful for web previews.

Go-video-preview-ffmpeg-wrapper

A simple helper wrapper to generate small webm video previews using ffmpeg, useful for web previews.

Getting Started

  • use CheckSystem() once during you application initialization to make sure ffmpeg and ffprobe are installed and found by go-video-preview-ffmpeg-wrapper
  • use CreatePreviewDefaults(sourcePath string, destinationPath string, parts int, partDurationSeconds float64), for example t create a 3 second preview with 3 parts of 1 second run:
CreatePreviewDefaults("~/BigBuckBunny.mp4", "~/BigBuckBunny-preview.webm", 3, 1)

Prerequisites

You need to have ffmpeg and ffprobe installed.

Running the tests

The tests are dockerized, to ensure they run with ffmpeg and ffprobe available.

docker build -t go-video-preview-ffmpeg-wrapper-tests . && docker run go-video-preview-ffmpeg-wrapper-tests

coverage: 85.4% of statements

Test description

These tests make sure the commands to ffmpeg and ffprobe are working. Additionally, a clip preview consisting of 3 parts of 1second each should be 3 seconds long, this is included in the test. Visually the output is assumed to be correct.

Versioning

v0 for now as I'll probably only be using it.

License

Distributed under the MIT License. See LICENSE for more information.

Authors

Acknowledgments

  • Thanks to the creators of the excellent open source project ffmpeg
Similar Resources

ffmpeg core for golang

go-ffmpeg-core ffmpeg core for golang 基于ffmpeg命令封装简单功能,因此运行环境需事先安装有ffmpeg命令。 ffmpeg官方下载地址: http://ffmpeg.org/download.html 1. 剥离视频文件的音频/视频 package mai

Nov 26, 2021

Synthetic media is a realistic transformation of audio and video using artificial intelligence.

Synthetic media is a realistic transformation of audio and video using artificial intelligence.

Nov 20, 2021

A simple library to extract video and audio frames from media containers (based on libav).

A simple library to extract video and audio frames from media containers (based on libav).

Reisen A simple library to extract video and audio frames from media containers (based on libav, i.e. ffmpeg). Dependencies The library requires libav

Jan 2, 2023

👾 Annie is a fast, simple and clean video downloader built with Go.

 👾 Annie is a fast, simple and clean video downloader built with Go.

👾 Annie is a fast, simple and clean video downloader built with Go. Installation Prerequisites Install via go install Homebrew (macOS only) Arch Linu

Jun 1, 2022

Personal video streaming server.

tube This is a Golang project to build a self hosted "tube"-style video player for watching your own video collection over HTTP or hosting your own ch

Jan 5, 2023

Short video direct link acquisition 短视频直连获取工具

Short video direct link acquisition 短视频直连获取工具

Glink 短视频去水印一键解析应用 Short video direct link acquisition 短视频直连获取工具 Glink是一款基于go语言开发的短视频解析应用,前端使用vue+argon主题,后端使用go-fiber框架,支持web在线模式、客户端模式。

Dec 7, 2022

Quik.do is a video conferencing tool.

Quik.do is a video conferencing tool.

Quik.do is a video conferencing tool.

Jan 3, 2023

Take control over your live stream video by running it yourself. Streaming + chat out of the box.

Take control over your live stream video by running it yourself.  Streaming + chat out of the box.

Take control over your content and stream it yourself. Explore the docs » View Demo · Use Our Server for Testing · FAQ · Report Bug Table of Contents

Jan 1, 2023

live video streaming server in golang

live video streaming server in golang

中文 Simple and efficient live broadcast server: Very simple to install and use; Pure Golang, high performance, and cross-platform; Supports commonly us

Jan 4, 2023
golang function that download a video from youtube, and convert it to a mp3 file using ffmpeg

echedwnmp3 echedwnmp3 is a function that download a video from youtube, and convert it to a mp3 file using ffmpeg example package main import(echedwn

Dec 7, 2021
lmmp3 is a little golang library that download a video from youtube, and convert it to a mp3 file using ffmpeg

lmmp3 lmmp3 is a function that download a video from youtube, and convert it to a mp3 file using ffmpeg You need to have installed ffmpeg in your syst

Aug 12, 2022
A small program in Go that efficiently compresses videos using ffmpeg.

discordcompressor A small program in Go that efficiently compresses videos using ffmpeg. Dependencies FFmpeg including FFprobe Usage discordcompressor

Dec 18, 2022
Stream video from ffmpeg to webrtc

ffmpeg-to-webrtc demonstrates how to send video from ffmpeg to your browser using pion.

Dec 28, 2022
ffcommander - An easy frontend to FFmpeg and Imagemagick to automatically process video and manipulate subtitles.

% FFCOMMANDER(1) ffcommander 2.39 % Mikael Hartzell (C) 2018 % 2021 Name ffcommander - An easy frontend to FFmpeg and Imagemagick to automatically pro

May 9, 2022
A go program that relies on back-end ffmpeg to process video-related content

Video Compress A go program that relies on back-end ffmpeg to process video-related content Installation v-go You can download the corresponding v-go

Dec 22, 2021
Live on-demand transcoding in go using ffmpeg. Also with NVIDIA GPU hardware acceleration.

Go live HTTP on-demand transcoding Transcoding is expensive and resource consuming operation on CPU and GPU. For big companies with thousands of custo

Dec 16, 2022
Golang bindings for FFmpeg

goav Golang binding for FFmpeg A comprehensive binding to the ffmpeg video/audio manipulation library. Usage import "github.com/giorgisio/goav/avforma

Dec 27, 2022
A Go implementation of fluent-ffmpeg

A Go implementation of fluent-ffmpeg

Dec 7, 2022
Videncode - Media Encoder (with ffmpeg)

Videncode - Media Encoder (with ffmpeg) Powered by yellyoshua (With2 easy steps) - Build JSON with folder of videos > Process the videos to the new fo

Nov 19, 2022