Add initial implementations for encoder handling and conversion logic

Introduce encoder modules for various codecs and formats (e.g., h264_nvenc, libx264, libmp3lame). Add `Convertor` logic to retrieve supported formats via FFmpeg utilities and manage encoders for audio, video, and image processing.
This commit is contained in:
2025-06-08 17:26:17 +05:00
parent 6c0abac1c5
commit 9cdfa18fc8
42 changed files with 1242 additions and 7 deletions

13
main.go
View File

@@ -20,12 +20,21 @@ func main() {
}
app.SetMetadata(appMetadata)
fyneApp := app.New()
progressBarService := application.NewProgressBar()
progressBarService := convertor.NewProgressBar()
appSetting := setting.NewSetting(fyneApp)
ffmpegService := ffmpeg.NewUtilities(appSetting)
convertorService := convertor.NewConvertor(ffmpegService)
itemsToConvert := convertor.NewItemsToConvert(ffmpegService)
queue := convertor.NewQueueList()
myApp := application.NewApp(fyneApp, appSetting, progressBarService, ffmpegService, itemsToConvert, queue)
myApp := application.NewApp(
fyneApp,
appSetting,
progressBarService,
ffmpegService,
itemsToConvert,
queue,
convertorService,
)
mainController := controller.NewController(myApp)
mainController.Start()
myApp.Run()