Skip to content

This module is used to convert video or image to the best format possible using ffmpeg written in golang

License

Notifications You must be signed in to change notification settings

mmarifat/__video_encode_service

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

VIDEO-CONVERSION-SERVICE

Requirements

  • go (version 1.19+)
  • ffmpeg
  • air (only for development locally)

Getting Started

Install dependencies

$ go install github.com/cosmtrek/air@latest
# then
$ go mod vendor
# and
$ go mod tidy

Environment

To edit environment variables, create a file with name .env and copy the contents from .env.example to start with.

Run Locally

$ air

Build for production

$ swag init
# then
$ go build -o video-conversion-service
# then
$ ./video-conversion-service

Logging

The application uses default logger of gin. The configuration file is at main.go.

  • All logs are saved in ./logs directory.
  • Success logs save inside .logs/success.log
  • Error logs save inside .logs/error.log

About

This module is used to convert video or image to the best format possible using ffmpeg written in golang

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published