Compare commits
12 Commits
d86c0d37af
...
0.3.0
Author | SHA1 | Date | |
---|---|---|---|
3dc59344cb
|
|||
f631c55eae | |||
d46d642e61
|
|||
a82d283c1a
|
|||
b7c363faaa
|
|||
2c0e20210f
|
|||
eec298bfd7
|
|||
2afc5f5b1a
|
|||
fd7ce5fa08
|
|||
05553f06b8
|
|||
0d5cfab38d
|
|||
0cd32bb0f0 |
1887
LICENSE-3RD-PARTY.txt
Normal file
1887
LICENSE-3RD-PARTY.txt
Normal file
File diff suppressed because it is too large
Load Diff
44
README.md
44
README.md
@@ -1,5 +1,43 @@
|
|||||||
# ffmpeg-gui
|
# GUI for FFmpeg
|
||||||
|
|
||||||
Простенький интерфейс к программе ffmpeg.
|
<p>Простенький интерфейс для консольной утилиты FFmpeg. Но я <strong>не являюсь</strong> автором самой утилиты <strong>FFmpeg</strong>.</p>
|
||||||
|
<p><strong>FFmpeg</strong> — торговая марка <strong><a href="http://bellard.org/" target="_blank">Fabrice Bellard</a></strong>, создателя проекта <strong><a href="https://ffmpeg.org/about.html" target="_blank">FFmpeg</a></strong>.</p>
|
||||||
|
|
||||||
<img src="images/screenshot-ffmpeg-gui.png">
|
<p>Программное обеспечение является MIT (см. <a href="https://git.kor-elf.net/kor-elf/gui-for-ffmpeg/src/branch/main/LICENSE">LICENSE</a>) и использует сторонние библиотеки, которые распространяются на их собственных условиях (см. <a href="https://git.kor-elf.net/kor-elf/gui-for-ffmpeg/src/branch/main/LICENSE-3RD-PARTY.txt">LICENSE-3RD-PARTY.txt</a>).</p>
|
||||||
|
|
||||||
|
<img src="images/screenshot-gui-for-ffmpeg.png">
|
||||||
|
|
||||||
|
<p>Скачать скомпилированные готовые версии можно тут: <a href="https://git.kor-elf.net/kor-elf/gui-for-ffmpeg/releases">https://git.kor-elf.net/kor-elf/gui-for-ffmpeg/releases</a>.</p>
|
||||||
|
|
||||||
|
## Установка через fyne:
|
||||||
|
1. go install fyne.io/fyne/v2/cmd/fyne@latest
|
||||||
|
2. fyne get git.kor-elf.net/kor-elf/gui-for-ffmpeg/src
|
||||||
|
|
||||||
|
## Скомпилировать через исходники:
|
||||||
|
1. git clone https://git.kor-elf.net/kor-elf/gui-for-ffmpeg.git
|
||||||
|
2. Переходим в папку проекта и там переходим в папку src: **cd gui-for-ffmpeg/src**
|
||||||
|
3. Ознакамливаемся, что нужно ещё установить для Вашей ОС для простого запуска (через go run) тут: https://docs.fyne.io/started/
|
||||||
|
4. *(не обязательный шаг)* Просто запустить можно так: **go run main.go**
|
||||||
|
5. go install github.com/fyne-io/fyne-cross@latest
|
||||||
|
* У Вас так же должен быть установлен docker
|
||||||
|
* О fyne-cross можно по подробней почитать тут: https://github.com/fyne-io/fyne-cross
|
||||||
|
6. * fyne-cross windows --icon icon.png --app-id "." -name "gui-for-ffmpeg"
|
||||||
|
* fyne-cross linux --icon icon.png --app-id "." -name "gui-for-ffmpeg"
|
||||||
|
7. Создаться папка **fyne-cross/bin** и там будет созданна папка с тем названием под которую Вы компилировали приложения (linux-amd64 или windows-amd64).
|
||||||
|
8. В папку **fyne-cross/bin/linux-amd64** или **fyne-cross/bin/windows-amd64** копируете:
|
||||||
|
* src/icon.png
|
||||||
|
* src/data
|
||||||
|
* src/languages
|
||||||
|
* LICENSE
|
||||||
|
* LICENSE-3RD-PARTY.txt
|
||||||
|
<p><strong>Структура должна получиться такая:</strong></p>
|
||||||
|
<img src="images/screenshot-folder-structure.png">
|
||||||
|
|
||||||
|
## Работа с переводами:
|
||||||
|
1. go install -v github.com/nicksnyder/go-i18n/v2/goi18n@latest
|
||||||
|
2. Переходим в папке проекта в папку src: **cd ./src**
|
||||||
|
3. goi18n merge -sourceLanguage ru -outdir languages languages/active.\*.toml languages/translate.\*.toml
|
||||||
|
4. В файлах **languages/translate.\*.toml** переводим текст на нужный язык
|
||||||
|
5. goi18n merge -sourceLanguage ru -outdir languages languages/active.\*.toml languages/translate.\*.toml
|
||||||
|
|
||||||
|
Более подробно можно почитать тут: https://github.com/nicksnyder/go-i18n
|
Binary file not shown.
Before Width: | Height: | Size: 39 KiB |
BIN
images/screenshot-folder-structure.png
Normal file
BIN
images/screenshot-folder-structure.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 7.4 KiB |
BIN
images/screenshot-gui-for-ffmpeg.png
Normal file
BIN
images/screenshot-gui-for-ffmpeg.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 31 KiB |
36
src/convertor/repository.go
Normal file
36
src/convertor/repository.go
Normal file
@@ -0,0 +1,36 @@
|
|||||||
|
package convertor
|
||||||
|
|
||||||
|
import (
|
||||||
|
"git.kor-elf.net/kor-elf/gui-for-ffmpeg/src/setting"
|
||||||
|
)
|
||||||
|
|
||||||
|
type RepositoryContract interface {
|
||||||
|
GetPathFfmpeg() (string, error)
|
||||||
|
SavePathFfmpeg(code string) (setting.Setting, error)
|
||||||
|
GetPathFfprobe() (string, error)
|
||||||
|
SavePathFfprobe(code string) (setting.Setting, error)
|
||||||
|
}
|
||||||
|
|
||||||
|
type Repository struct {
|
||||||
|
settingRepository setting.RepositoryContract
|
||||||
|
}
|
||||||
|
|
||||||
|
func NewRepository(settingRepository setting.RepositoryContract) *Repository {
|
||||||
|
return &Repository{settingRepository: settingRepository}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (r Repository) GetPathFfmpeg() (string, error) {
|
||||||
|
return r.settingRepository.GetValue("ffmpeg")
|
||||||
|
}
|
||||||
|
|
||||||
|
func (r Repository) SavePathFfmpeg(path string) (setting.Setting, error) {
|
||||||
|
return r.settingRepository.CreateOrUpdate("ffmpeg", path)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (r Repository) GetPathFfprobe() (string, error) {
|
||||||
|
return r.settingRepository.GetValue("ffprobe")
|
||||||
|
}
|
||||||
|
|
||||||
|
func (r Repository) SavePathFfprobe(path string) (setting.Setting, error) {
|
||||||
|
return r.settingRepository.CreateOrUpdate("ffprobe", path)
|
||||||
|
}
|
@@ -2,7 +2,7 @@ package convertor
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"errors"
|
"errors"
|
||||||
"ffmpegGui/helper"
|
"git.kor-elf.net/kor-elf/gui-for-ffmpeg/src/helper"
|
||||||
"io"
|
"io"
|
||||||
"os/exec"
|
"os/exec"
|
||||||
"regexp"
|
"regexp"
|
||||||
|
@@ -2,13 +2,13 @@ package convertor
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"errors"
|
"errors"
|
||||||
"ffmpegGui/helper"
|
|
||||||
"ffmpegGui/localizer"
|
|
||||||
"fyne.io/fyne/v2"
|
"fyne.io/fyne/v2"
|
||||||
"fyne.io/fyne/v2/canvas"
|
"fyne.io/fyne/v2/canvas"
|
||||||
"fyne.io/fyne/v2/container"
|
"fyne.io/fyne/v2/container"
|
||||||
"fyne.io/fyne/v2/dialog"
|
"fyne.io/fyne/v2/dialog"
|
||||||
"fyne.io/fyne/v2/widget"
|
"fyne.io/fyne/v2/widget"
|
||||||
|
"git.kor-elf.net/kor-elf/gui-for-ffmpeg/src/helper"
|
||||||
|
"git.kor-elf.net/kor-elf/gui-for-ffmpeg/src/localizer"
|
||||||
"github.com/nicksnyder/go-i18n/v2/i18n"
|
"github.com/nicksnyder/go-i18n/v2/i18n"
|
||||||
"image/color"
|
"image/color"
|
||||||
)
|
)
|
||||||
@@ -18,7 +18,11 @@ type ViewContract interface {
|
|||||||
runConvert func(setting HandleConvertSetting, progressbar *widget.ProgressBar) error,
|
runConvert func(setting HandleConvertSetting, progressbar *widget.ProgressBar) error,
|
||||||
)
|
)
|
||||||
SelectFFPath(
|
SelectFFPath(
|
||||||
func(ffmpegPath string, ffprobePath string) error,
|
ffmpegPath string,
|
||||||
|
ffprobePath string,
|
||||||
|
save func(ffmpegPath string, ffprobePath string) error,
|
||||||
|
cancel func(),
|
||||||
|
donwloadFFmpeg func(progressBar *widget.ProgressBar, progressMessage *canvas.Text) error,
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -51,7 +55,7 @@ func (v View) Main(
|
|||||||
) {
|
) {
|
||||||
form := &widget.Form{}
|
form := &widget.Form{}
|
||||||
|
|
||||||
conversionMessage := canvas.NewText("", color.RGBA{255, 0, 0, 255})
|
conversionMessage := canvas.NewText("", color.RGBA{R: 255, G: 0, B: 0, A: 255})
|
||||||
conversionMessage.TextSize = 16
|
conversionMessage.TextSize = 16
|
||||||
conversionMessage.TextStyle = fyne.TextStyle{Bold: true}
|
conversionMessage.TextStyle = fyne.TextStyle{Bold: true}
|
||||||
|
|
||||||
@@ -135,7 +139,7 @@ func (v View) Main(
|
|||||||
func (v View) getButtonFileVideoForConversion(form *widget.Form, progress *widget.ProgressBar, conversionMessage *canvas.Text) (*widget.Button, *canvas.Text, *File) {
|
func (v View) getButtonFileVideoForConversion(form *widget.Form, progress *widget.ProgressBar, conversionMessage *canvas.Text) (*widget.Button, *canvas.Text, *File) {
|
||||||
fileInput := &File{}
|
fileInput := &File{}
|
||||||
|
|
||||||
fileVideoForConversionMessage := canvas.NewText("", color.RGBA{255, 0, 0, 255})
|
fileVideoForConversionMessage := canvas.NewText("", color.RGBA{R: 255, G: 0, B: 0, A: 255})
|
||||||
fileVideoForConversionMessage.TextSize = 16
|
fileVideoForConversionMessage.TextSize = 16
|
||||||
fileVideoForConversionMessage.TextStyle = fyne.TextStyle{Bold: true}
|
fileVideoForConversionMessage.TextStyle = fyne.TextStyle{Bold: true}
|
||||||
|
|
||||||
@@ -175,7 +179,7 @@ func (v View) getButtonFileVideoForConversion(form *widget.Form, progress *widge
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (v View) getButtonForSelectingDirectoryForSaving() (button *widget.Button, buttonMessage *canvas.Text, dirPath *string) {
|
func (v View) getButtonForSelectingDirectoryForSaving() (button *widget.Button, buttonMessage *canvas.Text, dirPath *string) {
|
||||||
buttonMessage = canvas.NewText("", color.RGBA{255, 0, 0, 255})
|
buttonMessage = canvas.NewText("", color.RGBA{R: 255, G: 0, B: 0, A: 255})
|
||||||
buttonMessage.TextSize = 16
|
buttonMessage.TextSize = 16
|
||||||
buttonMessage.TextStyle = fyne.TextStyle{Bold: true}
|
buttonMessage.TextStyle = fyne.TextStyle{Bold: true}
|
||||||
|
|
||||||
@@ -211,12 +215,12 @@ func (v View) getButtonForSelectingDirectoryForSaving() (button *widget.Button,
|
|||||||
}
|
}
|
||||||
|
|
||||||
func setStringErrorStyle(text *canvas.Text) {
|
func setStringErrorStyle(text *canvas.Text) {
|
||||||
text.Color = color.RGBA{255, 0, 0, 255}
|
text.Color = color.RGBA{R: 255, G: 0, B: 0, A: 255}
|
||||||
text.Refresh()
|
text.Refresh()
|
||||||
}
|
}
|
||||||
|
|
||||||
func setStringSuccessStyle(text *canvas.Text) {
|
func setStringSuccessStyle(text *canvas.Text) {
|
||||||
text.Color = color.RGBA{49, 127, 114, 255}
|
text.Color = color.RGBA{R: 49, G: 127, B: 114, A: 255}
|
||||||
text.Refresh()
|
text.Refresh()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -1,24 +1,30 @@
|
|||||||
package convertor
|
package convertor
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"ffmpegGui/helper"
|
|
||||||
"fyne.io/fyne/v2"
|
"fyne.io/fyne/v2"
|
||||||
"fyne.io/fyne/v2/canvas"
|
"fyne.io/fyne/v2/canvas"
|
||||||
"fyne.io/fyne/v2/container"
|
"fyne.io/fyne/v2/container"
|
||||||
"fyne.io/fyne/v2/dialog"
|
"fyne.io/fyne/v2/dialog"
|
||||||
"fyne.io/fyne/v2/widget"
|
"fyne.io/fyne/v2/widget"
|
||||||
|
"git.kor-elf.net/kor-elf/gui-for-ffmpeg/src/helper"
|
||||||
"github.com/nicksnyder/go-i18n/v2/i18n"
|
"github.com/nicksnyder/go-i18n/v2/i18n"
|
||||||
"image/color"
|
"image/color"
|
||||||
"net/url"
|
"net/url"
|
||||||
)
|
)
|
||||||
|
|
||||||
func (v View) SelectFFPath(save func(ffmpegPath string, ffprobePath string) error) {
|
func (v View) SelectFFPath(
|
||||||
errorMessage := canvas.NewText("", color.RGBA{255, 0, 0, 255})
|
currentPathFfmpeg string,
|
||||||
|
currentPathFfprobe string,
|
||||||
|
save func(ffmpegPath string, ffprobePath string) error,
|
||||||
|
cancel func(),
|
||||||
|
donwloadFFmpeg func(progressBar *widget.ProgressBar, progressMessage *canvas.Text) error,
|
||||||
|
) {
|
||||||
|
errorMessage := canvas.NewText("", color.RGBA{R: 255, G: 0, B: 0, A: 255})
|
||||||
errorMessage.TextSize = 16
|
errorMessage.TextSize = 16
|
||||||
errorMessage.TextStyle = fyne.TextStyle{Bold: true}
|
errorMessage.TextStyle = fyne.TextStyle{Bold: true}
|
||||||
|
|
||||||
ffmpegPath, buttonFFmpeg, buttonFFmpegMessage := v.getButtonSelectFile()
|
ffmpegPath, buttonFFmpeg, buttonFFmpegMessage := v.getButtonSelectFile(currentPathFfmpeg)
|
||||||
ffprobePath, buttonFFprobe, buttonFFprobeMessage := v.getButtonSelectFile()
|
ffprobePath, buttonFFprobe, buttonFFprobeMessage := v.getButtonSelectFile(currentPathFfprobe)
|
||||||
|
|
||||||
link := widget.NewHyperlink("https://ffmpeg.org/download.html", &url.URL{
|
link := widget.NewHyperlink("https://ffmpeg.org/download.html", &url.URL{
|
||||||
Scheme: "https",
|
Scheme: "https",
|
||||||
@@ -60,23 +66,32 @@ func (v View) SelectFFPath(save func(ffmpegPath string, ffprobePath string) erro
|
|||||||
MessageID: "save",
|
MessageID: "save",
|
||||||
}),
|
}),
|
||||||
OnSubmit: func() {
|
OnSubmit: func() {
|
||||||
err := save(string(*ffmpegPath), string(*ffprobePath))
|
err := save(*ffmpegPath, *ffprobePath)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
errorMessage.Text = err.Error()
|
errorMessage.Text = err.Error()
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
if cancel != nil {
|
||||||
|
form.OnCancel = cancel
|
||||||
|
form.CancelText = v.localizerService.GetMessage(&i18n.LocalizeConfig{
|
||||||
|
MessageID: "cancel",
|
||||||
|
})
|
||||||
|
}
|
||||||
selectFFPathTitle := v.localizerService.GetMessage(&i18n.LocalizeConfig{
|
selectFFPathTitle := v.localizerService.GetMessage(&i18n.LocalizeConfig{
|
||||||
MessageID: "selectFFPathTitle",
|
MessageID: "selectFFPathTitle",
|
||||||
})
|
})
|
||||||
v.w.SetContent(widget.NewCard(selectFFPathTitle, "", container.NewVBox(form)))
|
|
||||||
|
v.w.SetContent(widget.NewCard(selectFFPathTitle, "", container.NewVBox(
|
||||||
|
form,
|
||||||
|
v.blockDownloadFFmpeg(donwloadFFmpeg),
|
||||||
|
)))
|
||||||
}
|
}
|
||||||
|
|
||||||
func (v View) getButtonSelectFile() (filePath *string, button *widget.Button, buttonMessage *canvas.Text) {
|
func (v View) getButtonSelectFile(path string) (filePath *string, button *widget.Button, buttonMessage *canvas.Text) {
|
||||||
path := ""
|
|
||||||
filePath = &path
|
filePath = &path
|
||||||
|
|
||||||
buttonMessage = canvas.NewText("", color.RGBA{255, 0, 0, 255})
|
buttonMessage = canvas.NewText(path, color.RGBA{R: 49, G: 127, B: 114, A: 255})
|
||||||
buttonMessage.TextSize = 16
|
buttonMessage.TextSize = 16
|
||||||
buttonMessage.TextStyle = fyne.TextStyle{Bold: true}
|
buttonMessage.TextStyle = fyne.TextStyle{Bold: true}
|
||||||
|
|
||||||
|
17
src/convertor/view_setting_button_download_ffmpeg_anyos.go
Normal file
17
src/convertor/view_setting_button_download_ffmpeg_anyos.go
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
//go:build !windows
|
||||||
|
// +build !windows
|
||||||
|
|
||||||
|
package convertor
|
||||||
|
|
||||||
|
import (
|
||||||
|
"fyne.io/fyne/v2"
|
||||||
|
"fyne.io/fyne/v2/canvas"
|
||||||
|
"fyne.io/fyne/v2/container"
|
||||||
|
"fyne.io/fyne/v2/widget"
|
||||||
|
)
|
||||||
|
|
||||||
|
func (v View) blockDownloadFFmpeg(
|
||||||
|
donwloadFFmpeg func(progressBar *widget.ProgressBar, progressMessage *canvas.Text) error,
|
||||||
|
) *fyne.Container {
|
||||||
|
return container.NewVBox()
|
||||||
|
}
|
63
src/convertor/view_setting_button_download_ffmpeg_windows.go
Normal file
63
src/convertor/view_setting_button_download_ffmpeg_windows.go
Normal file
@@ -0,0 +1,63 @@
|
|||||||
|
//go:build windows
|
||||||
|
// +build windows
|
||||||
|
|
||||||
|
package convertor
|
||||||
|
|
||||||
|
import (
|
||||||
|
"fyne.io/fyne/v2"
|
||||||
|
"fyne.io/fyne/v2/canvas"
|
||||||
|
"fyne.io/fyne/v2/container"
|
||||||
|
"fyne.io/fyne/v2/widget"
|
||||||
|
"github.com/nicksnyder/go-i18n/v2/i18n"
|
||||||
|
"golang.org/x/image/colornames"
|
||||||
|
"image/color"
|
||||||
|
)
|
||||||
|
|
||||||
|
func (v View) blockDownloadFFmpeg(
|
||||||
|
donwloadFFmpeg func(progressBar *widget.ProgressBar, progressMessage *canvas.Text) error,
|
||||||
|
) *fyne.Container {
|
||||||
|
|
||||||
|
errorDownloadFFmpegMessage := canvas.NewText("", color.RGBA{R: 255, G: 0, B: 0, A: 255})
|
||||||
|
errorDownloadFFmpegMessage.TextSize = 16
|
||||||
|
errorDownloadFFmpegMessage.TextStyle = fyne.TextStyle{Bold: true}
|
||||||
|
|
||||||
|
progressDownloadFFmpegMessage := canvas.NewText("", color.RGBA{R: 49, G: 127, B: 114, A: 255})
|
||||||
|
progressDownloadFFmpegMessage.TextSize = 16
|
||||||
|
progressDownloadFFmpegMessage.TextStyle = fyne.TextStyle{Bold: true}
|
||||||
|
|
||||||
|
progressBar := widget.NewProgressBar()
|
||||||
|
|
||||||
|
var buttonDownloadFFmpeg *widget.Button
|
||||||
|
|
||||||
|
buttonDownloadFFmpeg = widget.NewButton(v.localizerService.GetMessage(&i18n.LocalizeConfig{
|
||||||
|
MessageID: "download",
|
||||||
|
}), func() {
|
||||||
|
buttonDownloadFFmpeg.Disable()
|
||||||
|
|
||||||
|
err := donwloadFFmpeg(progressBar, progressDownloadFFmpegMessage)
|
||||||
|
if err != nil {
|
||||||
|
errorDownloadFFmpegMessage.Text = err.Error()
|
||||||
|
}
|
||||||
|
|
||||||
|
buttonDownloadFFmpeg.Enable()
|
||||||
|
})
|
||||||
|
|
||||||
|
downloadFFmpegFromSiteMessage := v.localizerService.GetMessage(&i18n.LocalizeConfig{
|
||||||
|
MessageID: "downloadFFmpegFromSite",
|
||||||
|
})
|
||||||
|
|
||||||
|
return container.NewVBox(
|
||||||
|
canvas.NewLine(colornames.Darkgreen),
|
||||||
|
widget.NewCard(v.localizerService.GetMessage(&i18n.LocalizeConfig{
|
||||||
|
MessageID: "buttonDownloadFFmpeg",
|
||||||
|
}), "", container.NewVBox(
|
||||||
|
widget.NewRichTextFromMarkdown(
|
||||||
|
downloadFFmpegFromSiteMessage+" [https://github.com/BtbN/FFmpeg-Builds/releases](https://github.com/BtbN/FFmpeg-Builds/releases)",
|
||||||
|
),
|
||||||
|
buttonDownloadFFmpeg,
|
||||||
|
errorDownloadFFmpegMessage,
|
||||||
|
progressDownloadFFmpegMessage,
|
||||||
|
progressBar,
|
||||||
|
)),
|
||||||
|
)
|
||||||
|
}
|
@@ -1,10 +1,10 @@
|
|||||||
package error
|
package error
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"ffmpegGui/localizer"
|
|
||||||
"fyne.io/fyne/v2"
|
"fyne.io/fyne/v2"
|
||||||
"fyne.io/fyne/v2/container"
|
"fyne.io/fyne/v2/container"
|
||||||
"fyne.io/fyne/v2/widget"
|
"fyne.io/fyne/v2/widget"
|
||||||
|
"git.kor-elf.net/kor-elf/gui-for-ffmpeg/src/localizer"
|
||||||
"github.com/nicksnyder/go-i18n/v2/i18n"
|
"github.com/nicksnyder/go-i18n/v2/i18n"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
module ffmpegGui
|
module git.kor-elf.net/kor-elf/gui-for-ffmpeg/src
|
||||||
|
|
||||||
go 1.21
|
go 1.21
|
||||||
|
|
||||||
|
@@ -3,11 +3,10 @@ package handler
|
|||||||
import (
|
import (
|
||||||
"bufio"
|
"bufio"
|
||||||
"errors"
|
"errors"
|
||||||
"ffmpegGui/convertor"
|
|
||||||
"ffmpegGui/helper"
|
|
||||||
"ffmpegGui/localizer"
|
|
||||||
"ffmpegGui/setting"
|
|
||||||
"fyne.io/fyne/v2/widget"
|
"fyne.io/fyne/v2/widget"
|
||||||
|
"git.kor-elf.net/kor-elf/gui-for-ffmpeg/src/convertor"
|
||||||
|
"git.kor-elf.net/kor-elf/gui-for-ffmpeg/src/helper"
|
||||||
|
"git.kor-elf.net/kor-elf/gui-for-ffmpeg/src/localizer"
|
||||||
"github.com/nicksnyder/go-i18n/v2/i18n"
|
"github.com/nicksnyder/go-i18n/v2/i18n"
|
||||||
"io"
|
"io"
|
||||||
"regexp"
|
"regexp"
|
||||||
@@ -17,26 +16,29 @@ import (
|
|||||||
|
|
||||||
type ConvertorHandlerContract interface {
|
type ConvertorHandlerContract interface {
|
||||||
MainConvertor()
|
MainConvertor()
|
||||||
|
FfPathSelection()
|
||||||
|
GetFfmpegVersion() (string, error)
|
||||||
|
GetFfprobeVersion() (string, error)
|
||||||
}
|
}
|
||||||
|
|
||||||
type ConvertorHandler struct {
|
type ConvertorHandler struct {
|
||||||
convertorService convertor.ServiceContract
|
convertorService convertor.ServiceContract
|
||||||
convertorView convertor.ViewContract
|
convertorView convertor.ViewContract
|
||||||
settingRepository setting.RepositoryContract
|
convertorRepository convertor.RepositoryContract
|
||||||
localizerService localizer.ServiceContract
|
localizerService localizer.ServiceContract
|
||||||
}
|
}
|
||||||
|
|
||||||
func NewConvertorHandler(
|
func NewConvertorHandler(
|
||||||
convertorService convertor.ServiceContract,
|
convertorService convertor.ServiceContract,
|
||||||
convertorView convertor.ViewContract,
|
convertorView convertor.ViewContract,
|
||||||
settingRepository setting.RepositoryContract,
|
convertorRepository convertor.RepositoryContract,
|
||||||
localizerService localizer.ServiceContract,
|
localizerService localizer.ServiceContract,
|
||||||
) *ConvertorHandler {
|
) *ConvertorHandler {
|
||||||
return &ConvertorHandler{
|
return &ConvertorHandler{
|
||||||
convertorService: convertorService,
|
convertorService: convertorService,
|
||||||
convertorView: convertorView,
|
convertorView: convertorView,
|
||||||
settingRepository: settingRepository,
|
convertorRepository: convertorRepository,
|
||||||
localizerService: localizerService,
|
localizerService: localizerService,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -45,7 +47,21 @@ func (h ConvertorHandler) MainConvertor() {
|
|||||||
h.convertorView.Main(h.runConvert)
|
h.convertorView.Main(h.runConvert)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
h.convertorView.SelectFFPath(h.saveSettingFFPath)
|
h.convertorView.SelectFFPath("", "", h.saveSettingFFPath, nil, h.downloadFFmpeg)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (h ConvertorHandler) FfPathSelection() {
|
||||||
|
ffmpeg, _ := h.convertorRepository.GetPathFfmpeg()
|
||||||
|
ffprobe, _ := h.convertorRepository.GetPathFfprobe()
|
||||||
|
h.convertorView.SelectFFPath(ffmpeg, ffprobe, h.saveSettingFFPath, h.MainConvertor, h.downloadFFmpeg)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (h ConvertorHandler) GetFfmpegVersion() (string, error) {
|
||||||
|
return h.convertorService.GetFFmpegVesrion()
|
||||||
|
}
|
||||||
|
|
||||||
|
func (h ConvertorHandler) GetFfprobeVersion() (string, error) {
|
||||||
|
return h.convertorService.GetFFprobeVersion()
|
||||||
}
|
}
|
||||||
|
|
||||||
func (h ConvertorHandler) runConvert(setting convertor.HandleConvertSetting, progressbar *widget.ProgressBar) error {
|
func (h ConvertorHandler) runConvert(setting convertor.HandleConvertSetting, progressbar *widget.ProgressBar) error {
|
||||||
@@ -84,10 +100,8 @@ func (h ConvertorHandler) checkingFFPathUtilities() bool {
|
|||||||
if ffprobeChecking == false {
|
if ffprobeChecking == false {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
ffmpegEntity := setting.Setting{Code: "ffmpeg", Value: item.FFmpeg}
|
_, _ = h.convertorRepository.SavePathFfmpeg(item.FFmpeg)
|
||||||
_, _ = h.settingRepository.Create(ffmpegEntity)
|
_, _ = h.convertorRepository.SavePathFfprobe(item.FFprobe)
|
||||||
ffprobeEntity := setting.Setting{Code: "ffprobe", Value: item.FFprobe}
|
|
||||||
_, _ = h.settingRepository.Create(ffprobeEntity)
|
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -111,10 +125,8 @@ func (h ConvertorHandler) saveSettingFFPath(ffmpegPath string, ffprobePath strin
|
|||||||
return errors.New(errorText)
|
return errors.New(errorText)
|
||||||
}
|
}
|
||||||
|
|
||||||
ffmpegEntity := setting.Setting{Code: "ffmpeg", Value: ffmpegPath}
|
_, _ = h.convertorRepository.SavePathFfmpeg(ffmpegPath)
|
||||||
_, _ = h.settingRepository.Create(ffmpegEntity)
|
_, _ = h.convertorRepository.SavePathFfprobe(ffprobePath)
|
||||||
ffprobeEntity := setting.Setting{Code: "ffprobe", Value: ffprobePath}
|
|
||||||
_, _ = h.settingRepository.Create(ffprobeEntity)
|
|
||||||
|
|
||||||
h.MainConvertor()
|
h.MainConvertor()
|
||||||
|
|
||||||
|
@@ -3,8 +3,16 @@
|
|||||||
|
|
||||||
package handler
|
package handler
|
||||||
|
|
||||||
import "ffmpegGui/convertor"
|
import (
|
||||||
|
"fyne.io/fyne/v2/canvas"
|
||||||
|
"fyne.io/fyne/v2/widget"
|
||||||
|
"git.kor-elf.net/kor-elf/gui-for-ffmpeg/src/convertor"
|
||||||
|
)
|
||||||
|
|
||||||
func getPathsToFF() []convertor.FFPathUtilities {
|
func getPathsToFF() []convertor.FFPathUtilities {
|
||||||
return []convertor.FFPathUtilities{{"ffmpeg/bin/ffmpeg", "ffmpeg/bin/ffprobe"}, {"ffmpeg", "ffprobe"}}
|
return []convertor.FFPathUtilities{{"ffmpeg/bin/ffmpeg", "ffmpeg/bin/ffprobe"}, {"ffmpeg", "ffprobe"}}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (h ConvertorHandler) downloadFFmpeg(progressBar *widget.ProgressBar, progressMessage *canvas.Text) (err error) {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
@@ -3,8 +3,151 @@
|
|||||||
|
|
||||||
package handler
|
package handler
|
||||||
|
|
||||||
import "ffmpegGui/convertor"
|
import (
|
||||||
|
"archive/zip"
|
||||||
|
"errors"
|
||||||
|
"fyne.io/fyne/v2/canvas"
|
||||||
|
"fyne.io/fyne/v2/widget"
|
||||||
|
"git.kor-elf.net/kor-elf/gui-for-ffmpeg/convertor"
|
||||||
|
"github.com/nicksnyder/go-i18n/v2/i18n"
|
||||||
|
"io"
|
||||||
|
"net/http"
|
||||||
|
"os"
|
||||||
|
"path/filepath"
|
||||||
|
"strings"
|
||||||
|
)
|
||||||
|
|
||||||
func getPathsToFF() []convertor.FFPathUtilities {
|
func getPathsToFF() []convertor.FFPathUtilities {
|
||||||
return []convertor.FFPathUtilities{{"ffmpeg\\bin\\ffmpeg.exe", "ffmpeg\\bin\\ffprobe.exe"}}
|
return []convertor.FFPathUtilities{{"ffmpeg\\bin\\ffmpeg.exe", "ffmpeg\\bin\\ffprobe.exe"}}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (h ConvertorHandler) downloadFFmpeg(progressBar *widget.ProgressBar, progressMessage *canvas.Text) (err error) {
|
||||||
|
isDirectoryFFmpeg := isDirectory("ffmpeg")
|
||||||
|
if isDirectoryFFmpeg == false {
|
||||||
|
err = os.Mkdir("ffmpeg", 0777)
|
||||||
|
if err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
}
|
||||||
|
progressMessage.Text = h.localizerService.GetMessage(&i18n.LocalizeConfig{
|
||||||
|
MessageID: "downloadRun",
|
||||||
|
})
|
||||||
|
progressMessage.Refresh()
|
||||||
|
err = downloadFile("ffmpeg/ffmpeg.zip", "https://github.com/BtbN/FFmpeg-Builds/releases/download/latest/ffmpeg-master-latest-win64-gpl.zip", progressBar)
|
||||||
|
if err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
|
||||||
|
progressMessage.Text = h.localizerService.GetMessage(&i18n.LocalizeConfig{
|
||||||
|
MessageID: "unzipRun",
|
||||||
|
})
|
||||||
|
progressMessage.Refresh()
|
||||||
|
err = unZip("ffmpeg/ffmpeg.zip", "ffmpeg")
|
||||||
|
if err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
_ = os.Remove("ffmpeg/ffmpeg.zip")
|
||||||
|
|
||||||
|
progressMessage.Text = h.localizerService.GetMessage(&i18n.LocalizeConfig{
|
||||||
|
MessageID: "testFF",
|
||||||
|
})
|
||||||
|
progressMessage.Refresh()
|
||||||
|
err = h.saveSettingFFPath("ffmpeg/ffmpeg-master-latest-win64-gpl/bin/ffmpeg.exe", "ffmpeg/ffmpeg-master-latest-win64-gpl/bin/ffprobe.exe")
|
||||||
|
if err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func downloadFile(filepath string, url string, progressBar *widget.ProgressBar) (err error) {
|
||||||
|
progressBar.Value = 0
|
||||||
|
progressBar.Max = 100
|
||||||
|
|
||||||
|
req, err := http.NewRequest("GET", url, nil)
|
||||||
|
if err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
resp, err := http.DefaultClient.Do(req)
|
||||||
|
if err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
defer resp.Body.Close()
|
||||||
|
|
||||||
|
f, err := os.OpenFile(filepath, os.O_CREATE|os.O_WRONLY, 0644)
|
||||||
|
if err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
defer f.Close()
|
||||||
|
|
||||||
|
buf := make([]byte, 32*1024)
|
||||||
|
var downloaded int64
|
||||||
|
for {
|
||||||
|
n, err := resp.Body.Read(buf)
|
||||||
|
if err != nil {
|
||||||
|
if err == io.EOF {
|
||||||
|
break
|
||||||
|
}
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
if n > 0 {
|
||||||
|
f.Write(buf[:n])
|
||||||
|
downloaded += int64(n)
|
||||||
|
progressBar.Value = float64(downloaded) / float64(resp.ContentLength) * 100
|
||||||
|
progressBar.Refresh()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func unZip(fileZip string, directory string) error {
|
||||||
|
archive, err := zip.OpenReader(fileZip)
|
||||||
|
if err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
defer archive.Close()
|
||||||
|
|
||||||
|
for _, f := range archive.File {
|
||||||
|
filePath := filepath.Join(directory, f.Name)
|
||||||
|
|
||||||
|
if !strings.HasPrefix(filePath, filepath.Clean(directory)+string(os.PathSeparator)) {
|
||||||
|
return errors.New("invalid file path")
|
||||||
|
}
|
||||||
|
if f.FileInfo().IsDir() {
|
||||||
|
os.MkdirAll(filePath, os.ModePerm)
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
|
||||||
|
if err := os.MkdirAll(filepath.Dir(filePath), os.ModePerm); err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
|
||||||
|
dstFile, err := os.OpenFile(filePath, os.O_WRONLY|os.O_CREATE|os.O_TRUNC, f.Mode())
|
||||||
|
if err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
|
||||||
|
fileInArchive, err := f.Open()
|
||||||
|
if err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
|
||||||
|
if _, err := io.Copy(dstFile, fileInArchive); err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
|
||||||
|
dstFile.Close()
|
||||||
|
fileInArchive.Close()
|
||||||
|
}
|
||||||
|
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func isDirectory(path string) bool {
|
||||||
|
fileInfo, err := os.Stat(path)
|
||||||
|
if err != nil {
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
|
||||||
|
return fileInfo.IsDir()
|
||||||
|
}
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
package handler
|
package handler
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"ffmpegGui/localizer"
|
"git.kor-elf.net/kor-elf/gui-for-ffmpeg/src/localizer"
|
||||||
)
|
)
|
||||||
|
|
||||||
type MainHandler struct {
|
type MainHandler struct {
|
||||||
|
@@ -1,8 +1,9 @@
|
|||||||
package handler
|
package handler
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"ffmpegGui/localizer"
|
|
||||||
"fyne.io/fyne/v2"
|
"fyne.io/fyne/v2"
|
||||||
|
"git.kor-elf.net/kor-elf/gui-for-ffmpeg/src/localizer"
|
||||||
|
"git.kor-elf.net/kor-elf/gui-for-ffmpeg/src/menu"
|
||||||
"github.com/nicksnyder/go-i18n/v2/i18n"
|
"github.com/nicksnyder/go-i18n/v2/i18n"
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -18,6 +19,7 @@ type menuItems struct {
|
|||||||
|
|
||||||
type MenuHandler struct {
|
type MenuHandler struct {
|
||||||
convertorHandler ConvertorHandlerContract
|
convertorHandler ConvertorHandlerContract
|
||||||
|
menuView menu.ViewContract
|
||||||
localizerService localizer.ServiceContract
|
localizerService localizer.ServiceContract
|
||||||
localizerView localizer.ViewContract
|
localizerView localizer.ViewContract
|
||||||
localizerRepository localizer.RepositoryContract
|
localizerRepository localizer.RepositoryContract
|
||||||
@@ -26,12 +28,14 @@ type MenuHandler struct {
|
|||||||
|
|
||||||
func NewMenuHandler(
|
func NewMenuHandler(
|
||||||
convertorHandler ConvertorHandlerContract,
|
convertorHandler ConvertorHandlerContract,
|
||||||
|
menuView menu.ViewContract,
|
||||||
localizerService localizer.ServiceContract,
|
localizerService localizer.ServiceContract,
|
||||||
localizerView localizer.ViewContract,
|
localizerView localizer.ViewContract,
|
||||||
localizerRepository localizer.RepositoryContract,
|
localizerRepository localizer.RepositoryContract,
|
||||||
) *MenuHandler {
|
) *MenuHandler {
|
||||||
return &MenuHandler{
|
return &MenuHandler{
|
||||||
convertorHandler: convertorHandler,
|
convertorHandler: convertorHandler,
|
||||||
|
menuView: menuView,
|
||||||
localizerService: localizerService,
|
localizerService: localizerService,
|
||||||
localizerView: localizerView,
|
localizerView: localizerView,
|
||||||
localizerRepository: localizerRepository,
|
localizerRepository: localizerRepository,
|
||||||
@@ -40,6 +44,13 @@ func NewMenuHandler(
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (h MenuHandler) GetMainMenu() *fyne.MainMenu {
|
func (h MenuHandler) GetMainMenu() *fyne.MainMenu {
|
||||||
|
settings := h.getMenuSettings()
|
||||||
|
help := h.getMenuHelp()
|
||||||
|
|
||||||
|
return fyne.NewMainMenu(settings, help)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (h MenuHandler) getMenuSettings() *fyne.Menu {
|
||||||
quit := fyne.NewMenuItem(h.localizerService.GetMessage(&i18n.LocalizeConfig{
|
quit := fyne.NewMenuItem(h.localizerService.GetMessage(&i18n.LocalizeConfig{
|
||||||
MessageID: "exit",
|
MessageID: "exit",
|
||||||
}), nil)
|
}), nil)
|
||||||
@@ -51,12 +62,48 @@ func (h MenuHandler) GetMainMenu() *fyne.MainMenu {
|
|||||||
}), h.LanguageSelection)
|
}), h.LanguageSelection)
|
||||||
h.menuItems.menuItem["changeLanguage"] = languageSelection
|
h.menuItems.menuItem["changeLanguage"] = languageSelection
|
||||||
|
|
||||||
|
ffPathSelection := fyne.NewMenuItem(h.localizerService.GetMessage(&i18n.LocalizeConfig{
|
||||||
|
MessageID: "changeFFPath",
|
||||||
|
}), h.convertorHandler.FfPathSelection)
|
||||||
|
h.menuItems.menuItem["changeFFPath"] = ffPathSelection
|
||||||
|
|
||||||
settings := fyne.NewMenu(h.localizerService.GetMessage(&i18n.LocalizeConfig{
|
settings := fyne.NewMenu(h.localizerService.GetMessage(&i18n.LocalizeConfig{
|
||||||
MessageID: "settings",
|
MessageID: "settings",
|
||||||
}), languageSelection, quit)
|
}), languageSelection, ffPathSelection, quit)
|
||||||
h.menuItems.menu["settings"] = settings
|
h.menuItems.menu["settings"] = settings
|
||||||
|
|
||||||
return fyne.NewMainMenu(settings)
|
return settings
|
||||||
|
}
|
||||||
|
|
||||||
|
func (h MenuHandler) getMenuHelp() *fyne.Menu {
|
||||||
|
about := fyne.NewMenuItem(h.localizerService.GetMessage(&i18n.LocalizeConfig{
|
||||||
|
MessageID: "about",
|
||||||
|
}), h.openAbout)
|
||||||
|
h.menuItems.menuItem["about"] = about
|
||||||
|
|
||||||
|
help := fyne.NewMenu(h.localizerService.GetMessage(&i18n.LocalizeConfig{
|
||||||
|
MessageID: "help",
|
||||||
|
}), about)
|
||||||
|
h.menuItems.menu["help"] = help
|
||||||
|
|
||||||
|
return help
|
||||||
|
}
|
||||||
|
|
||||||
|
func (h MenuHandler) openAbout() {
|
||||||
|
ffmpeg, err := h.convertorHandler.GetFfmpegVersion()
|
||||||
|
if err != nil {
|
||||||
|
ffmpeg = h.localizerService.GetMessage(&i18n.LocalizeConfig{
|
||||||
|
MessageID: "errorFFmpegVersion",
|
||||||
|
})
|
||||||
|
}
|
||||||
|
ffprobe, err := h.convertorHandler.GetFfprobeVersion()
|
||||||
|
if err != nil {
|
||||||
|
ffprobe = h.localizerService.GetMessage(&i18n.LocalizeConfig{
|
||||||
|
MessageID: "errorFFprobeVersion",
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
h.menuView.About(ffmpeg, ffprobe)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (h MenuHandler) LanguageSelection() {
|
func (h MenuHandler) LanguageSelection() {
|
||||||
|
BIN
src/icon.png
BIN
src/icon.png
Binary file not shown.
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 29 KiB |
@@ -1,7 +1,31 @@
|
|||||||
|
[AlsoUsedProgram]
|
||||||
|
hash = "sha1-a72be72e7808bb8a0144ed7a93acb29c568b1ed4"
|
||||||
|
other = "The program also uses:"
|
||||||
|
|
||||||
|
[about]
|
||||||
|
hash = "sha1-3da0b9ef719fd707f443ac00404447f29445976f"
|
||||||
|
other = "About"
|
||||||
|
|
||||||
|
[aboutText]
|
||||||
|
hash = "sha1-8bd565814118ba8b90c40eb5b62acf8d2676e7d6"
|
||||||
|
other = "A simple interface for the FFmpeg console utility. \nBut I am not the author of the FFmpeg utility itself."
|
||||||
|
|
||||||
|
[buttonDownloadFFmpeg]
|
||||||
|
hash = "sha1-c223c2e15171156192bc3146aee91e6094bb475b"
|
||||||
|
other = "Download FFmpeg automatically"
|
||||||
|
|
||||||
[buttonForSelectedDirTitle]
|
[buttonForSelectedDirTitle]
|
||||||
hash = "sha1-52b13f1b13e82d22e8c4102332db5d4ec551247b"
|
hash = "sha1-52b13f1b13e82d22e8c4102332db5d4ec551247b"
|
||||||
other = "Folder where it will be saved:"
|
other = "Folder where it will be saved:"
|
||||||
|
|
||||||
|
[cancel]
|
||||||
|
hash = "sha1-0ec753be8df955a117404fb634b01b45eb386e2a"
|
||||||
|
other = "Cancel"
|
||||||
|
|
||||||
|
[changeFFPath]
|
||||||
|
hash = "sha1-46793a2844600d0eb19fa3540fb9564ee5705491"
|
||||||
|
other = "FFmpeg and FFprobe"
|
||||||
|
|
||||||
[changeLanguage]
|
[changeLanguage]
|
||||||
hash = "sha1-8b276eaf378d485c769fb3d5dcc06dfc25b0c01b"
|
hash = "sha1-8b276eaf378d485c769fb3d5dcc06dfc25b0c01b"
|
||||||
other = "Change language"
|
other = "Change language"
|
||||||
@@ -22,6 +46,18 @@ other = "Convert"
|
|||||||
hash = "sha1-4d972809e4c7f9c9ff2c110a126bbc183c9429ce"
|
hash = "sha1-4d972809e4c7f9c9ff2c110a126bbc183c9429ce"
|
||||||
other = "Converter video files to mp4"
|
other = "Converter video files to mp4"
|
||||||
|
|
||||||
|
[download]
|
||||||
|
hash = "sha1-fe8f79f29da457de2f6bc9531de6e536e0c426ad"
|
||||||
|
other = "Download"
|
||||||
|
|
||||||
|
[downloadFFmpegFromSite]
|
||||||
|
hash = "sha1-0889c95aa3a8659d8d903b4dab7097699c4d8aa4"
|
||||||
|
other = "Will be downloaded from the site:"
|
||||||
|
|
||||||
|
[downloadRun]
|
||||||
|
hash = "sha1-55f87f114628fa2d5d8e67d1e1cda22c0e4f9271"
|
||||||
|
other = "Downloading..."
|
||||||
|
|
||||||
[error]
|
[error]
|
||||||
hash = "sha1-a7df8f8b5d754f226ac4cb320577fe692b33e483"
|
hash = "sha1-a7df8f8b5d754f226ac4cb320577fe692b33e483"
|
||||||
other = "An error has occurred!"
|
other = "An error has occurred!"
|
||||||
@@ -38,10 +74,18 @@ other = "could not create file 'database' in folder 'data'"
|
|||||||
hash = "sha1-ccf0b95c0d1b392dc215258d917eb4e5d0b88ed0"
|
hash = "sha1-ccf0b95c0d1b392dc215258d917eb4e5d0b88ed0"
|
||||||
other = "this is not FFmpeg"
|
other = "this is not FFmpeg"
|
||||||
|
|
||||||
|
[errorFFmpegVersion]
|
||||||
|
hash = "sha1-9a4148d42186b6b32cf83bef726e23022c53283f"
|
||||||
|
other = "Could not determine FFmpeg version"
|
||||||
|
|
||||||
[errorFFprobe]
|
[errorFFprobe]
|
||||||
hash = "sha1-86d1b0b4c4ccd6a4f71e758fc67ce11aff4ba9b8"
|
hash = "sha1-86d1b0b4c4ccd6a4f71e758fc67ce11aff4ba9b8"
|
||||||
other = "this is not FFprobe"
|
other = "this is not FFprobe"
|
||||||
|
|
||||||
|
[errorFFprobeVersion]
|
||||||
|
hash = "sha1-da7b37d7df3fafbd153665b13888413d52b24c17"
|
||||||
|
other = "Failed to determine FFprobe version"
|
||||||
|
|
||||||
[errorSelectedFolderSave]
|
[errorSelectedFolderSave]
|
||||||
hash = "sha1-83da899677cdc90e4344e3b94ee03c46b51bee4c"
|
hash = "sha1-83da899677cdc90e4344e3b94ee03c46b51bee4c"
|
||||||
other = "You haven't selected a folder to save!"
|
other = "You haven't selected a folder to save!"
|
||||||
@@ -50,10 +94,22 @@ other = "You haven't selected a folder to save!"
|
|||||||
hash = "sha1-c42457057d1ab7950cea00719cbe0b078891775f"
|
hash = "sha1-c42457057d1ab7950cea00719cbe0b078891775f"
|
||||||
other = "Exit"
|
other = "Exit"
|
||||||
|
|
||||||
|
[ffmpegLGPL]
|
||||||
|
hash = "sha1-d395b16cc8f8eab98a8a970307c5b010ba22dde6"
|
||||||
|
other = "This software uses libraries from the **FFmpeg** project under the **[LGPLv2.1](http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html)**."
|
||||||
|
|
||||||
|
[ffmpegTrademark]
|
||||||
|
hash = "sha1-45f772b2eca5098cd6d31f2d1dc6edec1987a617"
|
||||||
|
other = "**FFmpeg** is a trademark of **[Fabrice Bellard](http://bellard.org/)**, originator of the **[FFmpeg](https://ffmpeg.org/about.html)** project."
|
||||||
|
|
||||||
[fileVideoForConversionTitle]
|
[fileVideoForConversionTitle]
|
||||||
hash = "sha1-5e727d4a2ff3f21080e51e81641595b2e668f3be"
|
hash = "sha1-5e727d4a2ff3f21080e51e81641595b2e668f3be"
|
||||||
other = "File for conversion:"
|
other = "File for conversion:"
|
||||||
|
|
||||||
|
[help]
|
||||||
|
hash = "sha1-6a45cef900c668effcb2ab10da05855c1fd10f6f"
|
||||||
|
other = "Help"
|
||||||
|
|
||||||
[languageSelectionFormHead]
|
[languageSelectionFormHead]
|
||||||
hash = "sha1-0ff5fa82cf684112660128cba1711297acf11003"
|
hash = "sha1-0ff5fa82cf684112660128cba1711297acf11003"
|
||||||
other = "Switch language"
|
other = "Switch language"
|
||||||
@@ -62,13 +118,29 @@ other = "Switch language"
|
|||||||
hash = "sha1-daf1108fc10d3b1a908288d611f749b3cc651e4b"
|
hash = "sha1-daf1108fc10d3b1a908288d611f749b3cc651e4b"
|
||||||
other = "Choose language"
|
other = "Choose language"
|
||||||
|
|
||||||
|
[licenseLink]
|
||||||
|
hash = "sha1-ea18ab849f0eea030d770da82c2a6b3484a7bd13"
|
||||||
|
other = "License information"
|
||||||
|
|
||||||
|
[licenseLinkOther]
|
||||||
|
hash = "sha1-359fff328717c05104e51a2d29f05bf1875d26b7"
|
||||||
|
other = "Licenses from other products used in the program"
|
||||||
|
|
||||||
[pathToFfmpeg]
|
[pathToFfmpeg]
|
||||||
hash = "sha1-2eba439f365640ff77e0ed6a7486fcb662573850"
|
hash = "sha1-fafc50f1db0f720fe83a96cd70a9e1ad824e96b6"
|
||||||
other = "Path to ffmpeg:"
|
other = "Path to FFmpeg:"
|
||||||
|
|
||||||
[pathToFfprobe]
|
[pathToFfprobe]
|
||||||
hash = "sha1-02ad53337801906f8ebfee4616100dd9f43eabd7"
|
hash = "sha1-b872edc9633a2e81ef678dc46fe46a7e91732024"
|
||||||
other = "Path to ffprobe:"
|
other = "Path to FFprobe:"
|
||||||
|
|
||||||
|
[programmLink]
|
||||||
|
hash = "sha1-18f9a3fad6aacefe1b05eed23122800b391ff5ca"
|
||||||
|
other = "Project website"
|
||||||
|
|
||||||
|
[programmVersion]
|
||||||
|
hash = "sha1-fa2e4994a301bb24bc2a8fa166e5486ea95a7475"
|
||||||
|
other = "**Program version:** {{.Version}}"
|
||||||
|
|
||||||
[save]
|
[save]
|
||||||
hash = "sha1-4864057d626a868fa60f999bed3191d61d045ddc"
|
hash = "sha1-4864057d626a868fa60f999bed3191d61d045ddc"
|
||||||
@@ -82,6 +154,14 @@ other = "Specify the path to FFmpeg and FFprobe"
|
|||||||
hash = "sha1-7f17c7c62a7fd8d1a508481f4778688927734c2f"
|
hash = "sha1-7f17c7c62a7fd8d1a508481f4778688927734c2f"
|
||||||
other = "Settings"
|
other = "Settings"
|
||||||
|
|
||||||
|
[testFF]
|
||||||
|
hash = "sha1-f5b8ed88e9609963035d2235be0a79bbec619976"
|
||||||
|
other = "Checking FFmpeg for serviceability..."
|
||||||
|
|
||||||
[titleDownloadLink]
|
[titleDownloadLink]
|
||||||
hash = "sha1-92df86371f6c3a06ca1e4754f113142776a32d49"
|
hash = "sha1-92df86371f6c3a06ca1e4754f113142776a32d49"
|
||||||
other = "You can download it from here"
|
other = "You can download it from here"
|
||||||
|
|
||||||
|
[unzipRun]
|
||||||
|
hash = "sha1-c554dad13026668a1f6adf3171837c5d51bbac36"
|
||||||
|
other = "Unpacked..."
|
||||||
|
@@ -1,7 +1,31 @@
|
|||||||
|
[AlsoUsedProgram]
|
||||||
|
hash = "sha1-a72be72e7808bb8a0144ed7a93acb29c568b1ed4"
|
||||||
|
other = "Бағдарлама сонымен қатар пайдаланады:"
|
||||||
|
|
||||||
|
[about]
|
||||||
|
hash = "sha1-3da0b9ef719fd707f443ac00404447f29445976f"
|
||||||
|
other = "Бағдарлама туралы"
|
||||||
|
|
||||||
|
[aboutText]
|
||||||
|
hash = "sha1-8bd565814118ba8b90c40eb5b62acf8d2676e7d6"
|
||||||
|
other = "FFmpeg консоль утилитасы үшін қарапайым интерфейс. \nБірақ мен FFmpeg утилитасының авторы емеспін."
|
||||||
|
|
||||||
|
[buttonDownloadFFmpeg]
|
||||||
|
hash = "sha1-c223c2e15171156192bc3146aee91e6094bb475b"
|
||||||
|
other = "FFmpeg автоматты түрде жүктеп алыңыз"
|
||||||
|
|
||||||
[buttonForSelectedDirTitle]
|
[buttonForSelectedDirTitle]
|
||||||
hash = "sha1-52b13f1b13e82d22e8c4102332db5d4ec551247b"
|
hash = "sha1-52b13f1b13e82d22e8c4102332db5d4ec551247b"
|
||||||
other = "Файлды сақтауға арналған каталог:"
|
other = "Файлды сақтауға арналған каталог:"
|
||||||
|
|
||||||
|
[cancel]
|
||||||
|
hash = "sha1-0ec753be8df955a117404fb634b01b45eb386e2a"
|
||||||
|
other = "Болдырмау"
|
||||||
|
|
||||||
|
[changeFFPath]
|
||||||
|
hash = "sha1-46793a2844600d0eb19fa3540fb9564ee5705491"
|
||||||
|
other = "FFmpeg және FFprobe"
|
||||||
|
|
||||||
[changeLanguage]
|
[changeLanguage]
|
||||||
hash = "sha1-8b276eaf378d485c769fb3d5dcc06dfc25b0c01b"
|
hash = "sha1-8b276eaf378d485c769fb3d5dcc06dfc25b0c01b"
|
||||||
other = "Тілді өзгерту"
|
other = "Тілді өзгерту"
|
||||||
@@ -22,6 +46,18 @@ other = "Файлды түрлендіру"
|
|||||||
hash = "sha1-4d972809e4c7f9c9ff2c110a126bbc183c9429ce"
|
hash = "sha1-4d972809e4c7f9c9ff2c110a126bbc183c9429ce"
|
||||||
other = "Бейне файлдарын mp4 форматына түрлендіру"
|
other = "Бейне файлдарын mp4 форматына түрлендіру"
|
||||||
|
|
||||||
|
[download]
|
||||||
|
hash = "sha1-fe8f79f29da457de2f6bc9531de6e536e0c426ad"
|
||||||
|
other = "Жүктеп алу"
|
||||||
|
|
||||||
|
[downloadFFmpegFromSite]
|
||||||
|
hash = "sha1-0889c95aa3a8659d8d903b4dab7097699c4d8aa4"
|
||||||
|
other = "Сайттан жүктеледі:"
|
||||||
|
|
||||||
|
[downloadRun]
|
||||||
|
hash = "sha1-55f87f114628fa2d5d8e67d1e1cda22c0e4f9271"
|
||||||
|
other = "Жүктеп алынуда..."
|
||||||
|
|
||||||
[error]
|
[error]
|
||||||
hash = "sha1-a7df8f8b5d754f226ac4cb320577fe692b33e483"
|
hash = "sha1-a7df8f8b5d754f226ac4cb320577fe692b33e483"
|
||||||
other = "Қате орын алды!"
|
other = "Қате орын алды!"
|
||||||
@@ -38,10 +74,18 @@ other = "'data' қалтасында 'database' файлын жасау мүмк
|
|||||||
hash = "sha1-ccf0b95c0d1b392dc215258d917eb4e5d0b88ed0"
|
hash = "sha1-ccf0b95c0d1b392dc215258d917eb4e5d0b88ed0"
|
||||||
other = "бұл FFmpeg емес"
|
other = "бұл FFmpeg емес"
|
||||||
|
|
||||||
|
[errorFFmpegVersion]
|
||||||
|
hash = "sha1-9a4148d42186b6b32cf83bef726e23022c53283f"
|
||||||
|
other = "FFmpeg нұсқасын анықтау мүмкін болмады"
|
||||||
|
|
||||||
[errorFFprobe]
|
[errorFFprobe]
|
||||||
hash = "sha1-86d1b0b4c4ccd6a4f71e758fc67ce11aff4ba9b8"
|
hash = "sha1-86d1b0b4c4ccd6a4f71e758fc67ce11aff4ba9b8"
|
||||||
other = "бұл FFprobe емес"
|
other = "бұл FFprobe емес"
|
||||||
|
|
||||||
|
[errorFFprobeVersion]
|
||||||
|
hash = "sha1-da7b37d7df3fafbd153665b13888413d52b24c17"
|
||||||
|
other = "FFprobe нұсқасын анықтау мүмкін болмады"
|
||||||
|
|
||||||
[errorSelectedFolderSave]
|
[errorSelectedFolderSave]
|
||||||
hash = "sha1-83da899677cdc90e4344e3b94ee03c46b51bee4c"
|
hash = "sha1-83da899677cdc90e4344e3b94ee03c46b51bee4c"
|
||||||
other = "Сіз сақталатын қалтаны таңдамадыңыз!"
|
other = "Сіз сақталатын қалтаны таңдамадыңыз!"
|
||||||
@@ -50,10 +94,22 @@ other = "Сіз сақталатын қалтаны таңдамадыңыз!"
|
|||||||
hash = "sha1-c42457057d1ab7950cea00719cbe0b078891775f"
|
hash = "sha1-c42457057d1ab7950cea00719cbe0b078891775f"
|
||||||
other = "Шығу"
|
other = "Шығу"
|
||||||
|
|
||||||
|
[ffmpegLGPL]
|
||||||
|
hash = "sha1-d395b16cc8f8eab98a8a970307c5b010ba22dde6"
|
||||||
|
other = "Бұл бағдарламалық құрал **[LGPLv2.1](http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html)** астында **FFmpeg** жобасының кітапханаларын пайдаланады."
|
||||||
|
|
||||||
|
[ffmpegTrademark]
|
||||||
|
hash = "sha1-45f772b2eca5098cd6d31f2d1dc6edec1987a617"
|
||||||
|
other = "FFmpeg — **[FFmpeg](https://ffmpeg.org/about.html)** жобасын жасаушы **[Fabrice Bellard](http://bellard.org/)** сауда белгісі."
|
||||||
|
|
||||||
[fileVideoForConversionTitle]
|
[fileVideoForConversionTitle]
|
||||||
hash = "sha1-5e727d4a2ff3f21080e51e81641595b2e668f3be"
|
hash = "sha1-5e727d4a2ff3f21080e51e81641595b2e668f3be"
|
||||||
other = "Түрлендіруге арналған файл:"
|
other = "Түрлендіруге арналған файл:"
|
||||||
|
|
||||||
|
[help]
|
||||||
|
hash = "sha1-6a45cef900c668effcb2ab10da05855c1fd10f6f"
|
||||||
|
other = "Анықтама"
|
||||||
|
|
||||||
[languageSelectionFormHead]
|
[languageSelectionFormHead]
|
||||||
hash = "sha1-0ff5fa82cf684112660128cba1711297acf11003"
|
hash = "sha1-0ff5fa82cf684112660128cba1711297acf11003"
|
||||||
other = "Тілді ауыстыру"
|
other = "Тілді ауыстыру"
|
||||||
@@ -62,13 +118,29 @@ other = "Тілді ауыстыру"
|
|||||||
hash = "sha1-daf1108fc10d3b1a908288d611f749b3cc651e4b"
|
hash = "sha1-daf1108fc10d3b1a908288d611f749b3cc651e4b"
|
||||||
other = "Тілді таңдаңыз"
|
other = "Тілді таңдаңыз"
|
||||||
|
|
||||||
|
[licenseLink]
|
||||||
|
hash = "sha1-ea18ab849f0eea030d770da82c2a6b3484a7bd13"
|
||||||
|
other = "Лицензия туралы ақпарат"
|
||||||
|
|
||||||
|
[licenseLinkOther]
|
||||||
|
hash = "sha1-359fff328717c05104e51a2d29f05bf1875d26b7"
|
||||||
|
other = "Бағдарламада пайдаланылатын басқа өнімдердің лицензиялары"
|
||||||
|
|
||||||
[pathToFfmpeg]
|
[pathToFfmpeg]
|
||||||
hash = "sha1-2eba439f365640ff77e0ed6a7486fcb662573850"
|
hash = "sha1-fafc50f1db0f720fe83a96cd70a9e1ad824e96b6"
|
||||||
other = "ffmpeg жол:"
|
other = "FFmpeg жол:"
|
||||||
|
|
||||||
[pathToFfprobe]
|
[pathToFfprobe]
|
||||||
hash = "sha1-02ad53337801906f8ebfee4616100dd9f43eabd7"
|
hash = "sha1-b872edc9633a2e81ef678dc46fe46a7e91732024"
|
||||||
other = "ffprobe жол:"
|
other = "FFprobe жол:"
|
||||||
|
|
||||||
|
[programmLink]
|
||||||
|
hash = "sha1-18f9a3fad6aacefe1b05eed23122800b391ff5ca"
|
||||||
|
other = "Жобаның веб-сайты"
|
||||||
|
|
||||||
|
[programmVersion]
|
||||||
|
hash = "sha1-fa2e4994a301bb24bc2a8fa166e5486ea95a7475"
|
||||||
|
other = "**Бағдарлама нұсқасы:** {{.Version}}"
|
||||||
|
|
||||||
[save]
|
[save]
|
||||||
hash = "sha1-4864057d626a868fa60f999bed3191d61d045ddc"
|
hash = "sha1-4864057d626a868fa60f999bed3191d61d045ddc"
|
||||||
@@ -82,6 +154,14 @@ other = "FFmpeg және FFprobe жолын көрсетіңіз"
|
|||||||
hash = "sha1-7f17c7c62a7fd8d1a508481f4778688927734c2f"
|
hash = "sha1-7f17c7c62a7fd8d1a508481f4778688927734c2f"
|
||||||
other = "Параметрлер"
|
other = "Параметрлер"
|
||||||
|
|
||||||
|
[testFF]
|
||||||
|
hash = "sha1-f5b8ed88e9609963035d2235be0a79bbec619976"
|
||||||
|
other = "FFmpeg функционалдығы тексерілуде..."
|
||||||
|
|
||||||
[titleDownloadLink]
|
[titleDownloadLink]
|
||||||
hash = "sha1-92df86371f6c3a06ca1e4754f113142776a32d49"
|
hash = "sha1-92df86371f6c3a06ca1e4754f113142776a32d49"
|
||||||
other = "Сіз оны осы жерден жүктей аласыз"
|
other = "Сіз оны осы жерден жүктей аласыз"
|
||||||
|
|
||||||
|
[unzipRun]
|
||||||
|
hash = "sha1-c554dad13026668a1f6adf3171837c5d51bbac36"
|
||||||
|
other = "Орамнан шығарылуда..."
|
||||||
|
@@ -1,22 +1,42 @@
|
|||||||
|
AlsoUsedProgram = "Также в программе используется:"
|
||||||
|
about = "О программе"
|
||||||
|
aboutText = "Простенький интерфейс для консольной утилиты FFmpeg. \nНо я не являюсь автором самой утилиты FFmpeg."
|
||||||
|
buttonDownloadFFmpeg = "Скачать автоматически FFmpeg"
|
||||||
buttonForSelectedDirTitle = "Папка куда будет сохраняться:"
|
buttonForSelectedDirTitle = "Папка куда будет сохраняться:"
|
||||||
|
cancel = "Отмена"
|
||||||
|
changeFFPath = "FFmpeg и FFprobe"
|
||||||
changeLanguage = "Поменять язык"
|
changeLanguage = "Поменять язык"
|
||||||
checkboxOverwriteOutputFilesTitle = "Разрешить перезаписать файл"
|
checkboxOverwriteOutputFilesTitle = "Разрешить перезаписать файл"
|
||||||
choose = "выбрать"
|
choose = "выбрать"
|
||||||
converterVideoFilesSubmitTitle = "Конвертировать"
|
converterVideoFilesSubmitTitle = "Конвертировать"
|
||||||
converterVideoFilesTitle = "Конвертор видео файлов в mp4"
|
converterVideoFilesTitle = "Конвертор видео файлов в mp4"
|
||||||
|
download = "Скачать"
|
||||||
|
downloadFFmpegFromSite = "Будет скачано с сайта:"
|
||||||
|
downloadRun = "Скачивается..."
|
||||||
error = "Произошла ошибка!"
|
error = "Произошла ошибка!"
|
||||||
errorConverter = "не смогли отконвертировать видео"
|
errorConverter = "не смогли отконвертировать видео"
|
||||||
errorDatabase = "не смогли создать файл 'database' в папке 'data'"
|
errorDatabase = "не смогли создать файл 'database' в папке 'data'"
|
||||||
errorFFmpeg = "это не FFmpeg"
|
errorFFmpeg = "это не FFmpeg"
|
||||||
|
errorFFmpegVersion = "Не смогли определить версию FFmpeg"
|
||||||
errorFFprobe = "это не FFprobe"
|
errorFFprobe = "это не FFprobe"
|
||||||
|
errorFFprobeVersion = "Не смогли определить версию FFprobe"
|
||||||
errorSelectedFolderSave = "Не выбрали папку для сохранения!"
|
errorSelectedFolderSave = "Не выбрали папку для сохранения!"
|
||||||
exit = "Выход"
|
exit = "Выход"
|
||||||
|
ffmpegLGPL = "Это программное обеспечение использует библиотеки из проекта **FFmpeg** под **[LGPLv2.1](http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html)**."
|
||||||
|
ffmpegTrademark = "**FFmpeg** — торговая марка **[Fabrice Bellard](http://bellard.org/)** , создателя проекта **[FFmpeg](https://ffmpeg.org/about.html)**."
|
||||||
fileVideoForConversionTitle = "Файл для ковертации:"
|
fileVideoForConversionTitle = "Файл для ковертации:"
|
||||||
|
help = "Справка"
|
||||||
languageSelectionFormHead = "Переключить язык"
|
languageSelectionFormHead = "Переключить язык"
|
||||||
languageSelectionHead = "Выберите язык"
|
languageSelectionHead = "Выберите язык"
|
||||||
pathToFfmpeg = "Путь к ffmpeg:"
|
licenseLink = "Сведения о лицензии"
|
||||||
pathToFfprobe = "Путь к ffprobe:"
|
licenseLinkOther = "Лицензии от других продуктов, которые используются в программе"
|
||||||
|
pathToFfmpeg = "Путь к FFmpeg:"
|
||||||
|
pathToFfprobe = "Путь к FFprobe:"
|
||||||
|
programmLink = "Сайт проекта"
|
||||||
|
programmVersion = "**Версия программы:** {{.Version}}"
|
||||||
save = "Сохранить"
|
save = "Сохранить"
|
||||||
selectFFPathTitle = "Укажите путь к FFmpeg и к FFprobe"
|
selectFFPathTitle = "Укажите путь к FFmpeg и к FFprobe"
|
||||||
settings = "Настройки"
|
settings = "Настройки"
|
||||||
|
testFF = "Проверка FFmpeg на работоспособность..."
|
||||||
titleDownloadLink = "Скачать можно от сюда"
|
titleDownloadLink = "Скачать можно от сюда"
|
||||||
|
unzipRun = "Распаковывается..."
|
||||||
|
@@ -1,11 +1,3 @@
|
|||||||
[changeLanguage]
|
[testFF]
|
||||||
hash = "sha1-8b276eaf378d485c769fb3d5dcc06dfc25b0c01b"
|
hash = "sha1-f5b8ed88e9609963035d2235be0a79bbec619976"
|
||||||
other = "Change language"
|
other = "Checking FFmpeg for serviceability..."
|
||||||
|
|
||||||
[exit]
|
|
||||||
hash = "sha1-c42457057d1ab7950cea00719cbe0b078891775f"
|
|
||||||
other = "Exit"
|
|
||||||
|
|
||||||
[settings]
|
|
||||||
hash = "sha1-7f17c7c62a7fd8d1a508481f4778688927734c2f"
|
|
||||||
other = "Settings"
|
|
||||||
|
@@ -1,11 +1,3 @@
|
|||||||
[changeLanguage]
|
[testFF]
|
||||||
hash = "sha1-8b276eaf378d485c769fb3d5dcc06dfc25b0c01b"
|
hash = "sha1-f5b8ed88e9609963035d2235be0a79bbec619976"
|
||||||
other = "Тілді өзгерту"
|
other = "FFmpeg функционалдығы тексерілуде..."
|
||||||
|
|
||||||
[exit]
|
|
||||||
hash = "sha1-c42457057d1ab7950cea00719cbe0b078891775f"
|
|
||||||
other = "Шығу"
|
|
||||||
|
|
||||||
[settings]
|
|
||||||
hash = "sha1-7f17c7c62a7fd8d1a508481f4778688927734c2f"
|
|
||||||
other = "Параметрлер"
|
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
package localizer
|
package localizer
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"ffmpegGui/setting"
|
"git.kor-elf.net/kor-elf/gui-for-ffmpeg/src/setting"
|
||||||
)
|
)
|
||||||
|
|
||||||
type RepositoryContract interface {
|
type RepositoryContract interface {
|
||||||
|
27
src/main.go
27
src/main.go
@@ -2,16 +2,17 @@ package main
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"errors"
|
"errors"
|
||||||
"ffmpegGui/convertor"
|
|
||||||
error2 "ffmpegGui/error"
|
|
||||||
"ffmpegGui/handler"
|
|
||||||
"ffmpegGui/localizer"
|
|
||||||
"ffmpegGui/migration"
|
|
||||||
"ffmpegGui/setting"
|
|
||||||
"fyne.io/fyne/v2"
|
"fyne.io/fyne/v2"
|
||||||
"fyne.io/fyne/v2/app"
|
"fyne.io/fyne/v2/app"
|
||||||
"fyne.io/fyne/v2/container"
|
"fyne.io/fyne/v2/container"
|
||||||
"fyne.io/fyne/v2/widget"
|
"fyne.io/fyne/v2/widget"
|
||||||
|
"git.kor-elf.net/kor-elf/gui-for-ffmpeg/src/convertor"
|
||||||
|
error2 "git.kor-elf.net/kor-elf/gui-for-ffmpeg/src/error"
|
||||||
|
"git.kor-elf.net/kor-elf/gui-for-ffmpeg/src/handler"
|
||||||
|
"git.kor-elf.net/kor-elf/gui-for-ffmpeg/src/localizer"
|
||||||
|
"git.kor-elf.net/kor-elf/gui-for-ffmpeg/src/menu"
|
||||||
|
"git.kor-elf.net/kor-elf/gui-for-ffmpeg/src/migration"
|
||||||
|
"git.kor-elf.net/kor-elf/gui-for-ffmpeg/src/setting"
|
||||||
_ "github.com/mattn/go-sqlite3"
|
_ "github.com/mattn/go-sqlite3"
|
||||||
"golang.org/x/text/language"
|
"golang.org/x/text/language"
|
||||||
"gorm.io/driver/sqlite"
|
"gorm.io/driver/sqlite"
|
||||||
@@ -19,7 +20,7 @@ import (
|
|||||||
"os"
|
"os"
|
||||||
)
|
)
|
||||||
|
|
||||||
//const appVersion string = "0.2.0"
|
const appVersion string = "0.3.0"
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
a := app.New()
|
a := app.New()
|
||||||
@@ -27,7 +28,7 @@ func main() {
|
|||||||
if err == nil {
|
if err == nil {
|
||||||
a.SetIcon(iconResource)
|
a.SetIcon(iconResource)
|
||||||
}
|
}
|
||||||
w := a.NewWindow("FFMpeg GUI!")
|
w := a.NewWindow("GUI for FFmpeg")
|
||||||
w.Resize(fyne.Size{Width: 800, Height: 600})
|
w.Resize(fyne.Size{Width: 800, Height: 600})
|
||||||
w.CenterOnScreen()
|
w.CenterOnScreen()
|
||||||
|
|
||||||
@@ -62,13 +63,14 @@ func main() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
settingRepository := setting.NewRepository(db)
|
settingRepository := setting.NewRepository(db)
|
||||||
pathFFmpeg, err := settingRepository.GetValue("ffmpeg")
|
convertorRepository := convertor.NewRepository(settingRepository)
|
||||||
|
pathFFmpeg, err := convertorRepository.GetPathFfmpeg()
|
||||||
if err != nil && errors.Is(err, gorm.ErrRecordNotFound) == false {
|
if err != nil && errors.Is(err, gorm.ErrRecordNotFound) == false {
|
||||||
errorView.PanicError(err)
|
errorView.PanicError(err)
|
||||||
w.ShowAndRun()
|
w.ShowAndRun()
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
pathFFprobe, err := settingRepository.GetValue("ffprobe")
|
pathFFprobe, err := convertorRepository.GetPathFfprobe()
|
||||||
if err != nil && errors.Is(err, gorm.ErrRecordNotFound) == false {
|
if err != nil && errors.Is(err, gorm.ErrRecordNotFound) == false {
|
||||||
errorView.PanicError(err)
|
errorView.PanicError(err)
|
||||||
w.ShowAndRun()
|
w.ShowAndRun()
|
||||||
@@ -81,10 +83,11 @@ func main() {
|
|||||||
convertorView := convertor.NewView(w, localizerService)
|
convertorView := convertor.NewView(w, localizerService)
|
||||||
convertorService := convertor.NewService(ffPathUtilities)
|
convertorService := convertor.NewService(ffPathUtilities)
|
||||||
defer appCloseWithConvert(convertorService)
|
defer appCloseWithConvert(convertorService)
|
||||||
convertorHandler := handler.NewConvertorHandler(convertorService, convertorView, settingRepository, localizerService)
|
convertorHandler := handler.NewConvertorHandler(convertorService, convertorView, convertorRepository, localizerService)
|
||||||
|
|
||||||
localizerRepository := localizer.NewRepository(settingRepository)
|
localizerRepository := localizer.NewRepository(settingRepository)
|
||||||
mainMenu := handler.NewMenuHandler(convertorHandler, localizerService, localizerView, localizerRepository)
|
menuView := menu.NewView(w, a, appVersion, localizerService)
|
||||||
|
mainMenu := handler.NewMenuHandler(convertorHandler, menuView, localizerService, localizerView, localizerRepository)
|
||||||
|
|
||||||
mainHandler := handler.NewMainHandler(convertorHandler, mainMenu, localizerRepository, localizerService)
|
mainHandler := handler.NewMainHandler(convertorHandler, mainMenu, localizerRepository, localizerService)
|
||||||
mainHandler.Start()
|
mainHandler.Start()
|
||||||
|
641
src/menu/view.go
Normal file
641
src/menu/view.go
Normal file
@@ -0,0 +1,641 @@
|
|||||||
|
package menu
|
||||||
|
|
||||||
|
import (
|
||||||
|
"fyne.io/fyne/v2"
|
||||||
|
"fyne.io/fyne/v2/canvas"
|
||||||
|
"fyne.io/fyne/v2/container"
|
||||||
|
"fyne.io/fyne/v2/widget"
|
||||||
|
"git.kor-elf.net/kor-elf/gui-for-ffmpeg/src/localizer"
|
||||||
|
"github.com/nicksnyder/go-i18n/v2/i18n"
|
||||||
|
"golang.org/x/image/colornames"
|
||||||
|
"net/url"
|
||||||
|
)
|
||||||
|
|
||||||
|
type ViewContract interface {
|
||||||
|
About(ffmpegVersion string, ffprobeVersion string)
|
||||||
|
}
|
||||||
|
|
||||||
|
type View struct {
|
||||||
|
w fyne.Window
|
||||||
|
app fyne.App
|
||||||
|
appVersion string
|
||||||
|
localizerService localizer.ServiceContract
|
||||||
|
}
|
||||||
|
|
||||||
|
func NewView(w fyne.Window, app fyne.App, appVersion string, localizerService localizer.ServiceContract) *View {
|
||||||
|
return &View{
|
||||||
|
w: w,
|
||||||
|
app: app,
|
||||||
|
appVersion: appVersion,
|
||||||
|
localizerService: localizerService,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (v View) About(ffmpegVersion string, ffprobeVersion string) {
|
||||||
|
view := v.app.NewWindow(v.localizerService.GetMessage(&i18n.LocalizeConfig{
|
||||||
|
MessageID: "about",
|
||||||
|
}))
|
||||||
|
view.Resize(fyne.Size{Width: 793, Height: 550})
|
||||||
|
view.SetFixedSize(true)
|
||||||
|
|
||||||
|
programmName := canvas.NewText(" GUI for FFmpeg", colornames.Darkgreen)
|
||||||
|
programmName.TextStyle = fyne.TextStyle{Bold: true}
|
||||||
|
programmName.TextSize = 20
|
||||||
|
|
||||||
|
programmLink := widget.NewHyperlink(v.localizerService.GetMessage(&i18n.LocalizeConfig{
|
||||||
|
MessageID: "programmLink",
|
||||||
|
}), &url.URL{
|
||||||
|
Scheme: "https",
|
||||||
|
Host: "git.kor-elf.net",
|
||||||
|
Path: "kor-elf/gui-for-ffmpeg/releases",
|
||||||
|
})
|
||||||
|
|
||||||
|
licenseLink := widget.NewHyperlink(v.localizerService.GetMessage(&i18n.LocalizeConfig{
|
||||||
|
MessageID: "licenseLink",
|
||||||
|
}), &url.URL{
|
||||||
|
Scheme: "https",
|
||||||
|
Host: "git.kor-elf.net",
|
||||||
|
Path: "kor-elf/gui-for-ffmpeg/src/branch/main/LICENSE",
|
||||||
|
})
|
||||||
|
|
||||||
|
licenseLinkOther := widget.NewHyperlink(v.localizerService.GetMessage(&i18n.LocalizeConfig{
|
||||||
|
MessageID: "licenseLinkOther",
|
||||||
|
}), &url.URL{
|
||||||
|
Scheme: "https",
|
||||||
|
Host: "git.kor-elf.net",
|
||||||
|
Path: "kor-elf/gui-for-ffmpeg/src/branch/main/LICENSE-3RD-PARTY.txt",
|
||||||
|
})
|
||||||
|
|
||||||
|
programmVersion := widget.NewRichTextFromMarkdown(v.localizerService.GetMessage(&i18n.LocalizeConfig{
|
||||||
|
MessageID: "programmVersion",
|
||||||
|
TemplateData: map[string]string{
|
||||||
|
"Version": v.appVersion,
|
||||||
|
},
|
||||||
|
}))
|
||||||
|
|
||||||
|
aboutText := widget.NewRichText(
|
||||||
|
&widget.TextSegment{
|
||||||
|
Text: v.localizerService.GetMessage(&i18n.LocalizeConfig{
|
||||||
|
MessageID: "aboutText",
|
||||||
|
}),
|
||||||
|
},
|
||||||
|
)
|
||||||
|
image := canvas.NewImageFromFile("icon.png")
|
||||||
|
image.SetMinSize(fyne.Size{Width: 100, Height: 100})
|
||||||
|
image.FillMode = canvas.ImageFillContain
|
||||||
|
|
||||||
|
ffmpegTrademark := widget.NewRichTextFromMarkdown(v.localizerService.GetMessage(&i18n.LocalizeConfig{
|
||||||
|
MessageID: "ffmpegTrademark",
|
||||||
|
}))
|
||||||
|
ffmpegLGPL := widget.NewRichTextFromMarkdown(v.localizerService.GetMessage(&i18n.LocalizeConfig{
|
||||||
|
MessageID: "ffmpegLGPL",
|
||||||
|
}))
|
||||||
|
|
||||||
|
view.SetContent(
|
||||||
|
container.NewScroll(container.NewVBox(
|
||||||
|
container.NewBorder(nil, nil, container.NewVBox(image), nil, container.NewVBox(
|
||||||
|
programmName,
|
||||||
|
programmVersion,
|
||||||
|
aboutText,
|
||||||
|
ffmpegTrademark,
|
||||||
|
ffmpegLGPL,
|
||||||
|
v.getCopyright(),
|
||||||
|
container.NewHBox(programmLink, licenseLink),
|
||||||
|
container.NewHBox(licenseLinkOther),
|
||||||
|
)),
|
||||||
|
v.getAboutFfmpeg(ffmpegVersion),
|
||||||
|
v.getAboutFfprobe(ffprobeVersion),
|
||||||
|
widget.NewCard(v.localizerService.GetMessage(&i18n.LocalizeConfig{
|
||||||
|
MessageID: "AlsoUsedProgram",
|
||||||
|
}), "", v.getOther()),
|
||||||
|
)),
|
||||||
|
)
|
||||||
|
view.CenterOnScreen()
|
||||||
|
view.Show()
|
||||||
|
}
|
||||||
|
|
||||||
|
func (v View) getCopyright() *widget.RichText {
|
||||||
|
return widget.NewRichTextFromMarkdown("Copyright (c) 2024 **[Leonid Nikitin (kor-elf)](https://git.kor-elf.net/kor-elf/)**.")
|
||||||
|
}
|
||||||
|
|
||||||
|
func (v View) getAboutFfmpeg(version string) *fyne.Container {
|
||||||
|
programmName := canvas.NewText(" FFmpeg", colornames.Darkgreen)
|
||||||
|
programmName.TextStyle = fyne.TextStyle{Bold: true}
|
||||||
|
programmName.TextSize = 20
|
||||||
|
|
||||||
|
programmLink := widget.NewHyperlink(v.localizerService.GetMessage(&i18n.LocalizeConfig{
|
||||||
|
MessageID: "programmLink",
|
||||||
|
}), &url.URL{
|
||||||
|
Scheme: "https",
|
||||||
|
Host: "ffmpeg.org",
|
||||||
|
Path: "",
|
||||||
|
})
|
||||||
|
|
||||||
|
licenseLink := widget.NewHyperlink(v.localizerService.GetMessage(&i18n.LocalizeConfig{
|
||||||
|
MessageID: "licenseLink",
|
||||||
|
}), &url.URL{
|
||||||
|
Scheme: "https",
|
||||||
|
Host: "ffmpeg.org",
|
||||||
|
Path: "legal.html",
|
||||||
|
})
|
||||||
|
|
||||||
|
return container.NewVBox(
|
||||||
|
programmName,
|
||||||
|
widget.NewLabel(version),
|
||||||
|
widget.NewRichTextFromMarkdown("**FFmpeg** is a trademark of **[Fabrice Bellard](http://bellard.org/)**, originator of the **[FFmpeg](https://ffmpeg.org/about.html)** project."),
|
||||||
|
widget.NewRichTextFromMarkdown("This software uses libraries from the **FFmpeg** project under the **[LGPLv2.1](http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html)**."),
|
||||||
|
container.NewHBox(programmLink, licenseLink),
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (v View) getAboutFfprobe(version string) *fyne.Container {
|
||||||
|
programmName := canvas.NewText(" FFprobe", colornames.Darkgreen)
|
||||||
|
programmName.TextStyle = fyne.TextStyle{Bold: true}
|
||||||
|
programmName.TextSize = 20
|
||||||
|
|
||||||
|
programmLink := widget.NewHyperlink(v.localizerService.GetMessage(&i18n.LocalizeConfig{
|
||||||
|
MessageID: "programmLink",
|
||||||
|
}), &url.URL{
|
||||||
|
Scheme: "https",
|
||||||
|
Host: "ffmpeg.org",
|
||||||
|
Path: "ffprobe.html",
|
||||||
|
})
|
||||||
|
|
||||||
|
licenseLink := widget.NewHyperlink(v.localizerService.GetMessage(&i18n.LocalizeConfig{
|
||||||
|
MessageID: "licenseLink",
|
||||||
|
}), &url.URL{
|
||||||
|
Scheme: "https",
|
||||||
|
Host: "ffmpeg.org",
|
||||||
|
Path: "legal.html",
|
||||||
|
})
|
||||||
|
|
||||||
|
return container.NewVBox(
|
||||||
|
programmName,
|
||||||
|
widget.NewLabel(version),
|
||||||
|
widget.NewRichTextFromMarkdown("**FFmpeg** is a trademark of **[Fabrice Bellard](http://bellard.org/)**, originator of the **[FFmpeg](https://ffmpeg.org/about.html)** project."),
|
||||||
|
widget.NewRichTextFromMarkdown("This software uses libraries from the **FFmpeg** project under the **[LGPLv2.1](http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html)**."),
|
||||||
|
container.NewHBox(programmLink, licenseLink),
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (v View) getOther() *fyne.Container {
|
||||||
|
return container.NewVBox(
|
||||||
|
canvas.NewLine(colornames.Darkgreen),
|
||||||
|
|
||||||
|
container.NewHBox(widget.NewHyperlink("fyne.io/fyne/v2", &url.URL{
|
||||||
|
Scheme: "https",
|
||||||
|
Host: "github.com",
|
||||||
|
Path: "fyne-io/fyne",
|
||||||
|
})),
|
||||||
|
container.NewHBox(widget.NewHyperlink("BSD 3-Clause License", &url.URL{
|
||||||
|
Scheme: "https",
|
||||||
|
Host: "github.com",
|
||||||
|
Path: "fyne-io/fyne/blob/master/LICENSE",
|
||||||
|
})),
|
||||||
|
widget.NewRichTextFromMarkdown("Copyright (C) 2018 Fyne.io developers (see [AUTHORS](https://github.com/fyne-io/fyne/blob/master/AUTHORS))"),
|
||||||
|
canvas.NewLine(colornames.Darkgreen),
|
||||||
|
|
||||||
|
container.NewHBox(widget.NewHyperlink("fyne.io/systray", &url.URL{
|
||||||
|
Scheme: "https",
|
||||||
|
Host: "github.com",
|
||||||
|
Path: "fyne-io/systray",
|
||||||
|
})),
|
||||||
|
container.NewHBox(widget.NewHyperlink("Apache License", &url.URL{
|
||||||
|
Scheme: "https",
|
||||||
|
Host: "github.com",
|
||||||
|
Path: "fyne-io/systray/blob/master/LICENSE",
|
||||||
|
})),
|
||||||
|
canvas.NewLine(colornames.Darkgreen),
|
||||||
|
|
||||||
|
container.NewHBox(widget.NewHyperlink("github.com/BurntSushi/toml", &url.URL{
|
||||||
|
Scheme: "https",
|
||||||
|
Host: "github.com",
|
||||||
|
Path: "BurntSushi/toml",
|
||||||
|
})),
|
||||||
|
container.NewHBox(widget.NewHyperlink("The MIT License (MIT)", &url.URL{
|
||||||
|
Scheme: "https",
|
||||||
|
Host: "github.com",
|
||||||
|
Path: "BurntSushi/toml/blob/master/COPYING",
|
||||||
|
})),
|
||||||
|
widget.NewLabel("Copyright (c) 2013 TOML authors"),
|
||||||
|
canvas.NewLine(colornames.Darkgreen),
|
||||||
|
|
||||||
|
container.NewHBox(widget.NewHyperlink("github.com/davecgh/go-spew", &url.URL{
|
||||||
|
Scheme: "https",
|
||||||
|
Host: "github.com",
|
||||||
|
Path: "davecgh/go-spew",
|
||||||
|
})),
|
||||||
|
container.NewHBox(widget.NewHyperlink("ISC License", &url.URL{
|
||||||
|
Scheme: "https",
|
||||||
|
Host: "github.com",
|
||||||
|
Path: "davecgh/go-spew/blob/master/LICENSE",
|
||||||
|
})),
|
||||||
|
widget.NewLabel("Copyright (c) 2012-2016 Dave Collins <dave@davec.name>"),
|
||||||
|
canvas.NewLine(colornames.Darkgreen),
|
||||||
|
|
||||||
|
container.NewHBox(widget.NewHyperlink("github.com/fredbi/uri", &url.URL{
|
||||||
|
Scheme: "https",
|
||||||
|
Host: "github.com",
|
||||||
|
Path: "fredbi/uri",
|
||||||
|
})),
|
||||||
|
container.NewHBox(widget.NewHyperlink("The MIT License (MIT)", &url.URL{
|
||||||
|
Scheme: "https",
|
||||||
|
Host: "github.com",
|
||||||
|
Path: "fredbi/uri/blob/master/LICENSE.md",
|
||||||
|
})),
|
||||||
|
widget.NewLabel("Copyright (c) 2018 Frederic Bidon"),
|
||||||
|
widget.NewLabel("Copyright (c) 2015 Trey Tacon"),
|
||||||
|
canvas.NewLine(colornames.Darkgreen),
|
||||||
|
|
||||||
|
container.NewHBox(widget.NewHyperlink("github.com/fsnotify/fsnotify", &url.URL{
|
||||||
|
Scheme: "https",
|
||||||
|
Host: "github.com",
|
||||||
|
Path: "fsnotify/fsnotify",
|
||||||
|
})),
|
||||||
|
container.NewHBox(widget.NewHyperlink("BSD-3-Clause license", &url.URL{
|
||||||
|
Scheme: "https",
|
||||||
|
Host: "github.com",
|
||||||
|
Path: "fsnotify/fsnotify/blob/main/LICENSE",
|
||||||
|
})),
|
||||||
|
widget.NewLabel("Copyright © 2012 The Go Authors. All rights reserved."),
|
||||||
|
widget.NewLabel("Copyright © fsnotify Authors. All rights reserved."),
|
||||||
|
canvas.NewLine(colornames.Darkgreen),
|
||||||
|
|
||||||
|
container.NewHBox(widget.NewHyperlink("github.com/fyne-io/gl-js", &url.URL{
|
||||||
|
Scheme: "https",
|
||||||
|
Host: "github.com",
|
||||||
|
Path: "fyne-io/gl-js",
|
||||||
|
})),
|
||||||
|
container.NewHBox(widget.NewHyperlink("BSD-3-Clause license", &url.URL{
|
||||||
|
Scheme: "https",
|
||||||
|
Host: "github.com",
|
||||||
|
Path: "fyne-io/gl-js/blob/master/LICENSE",
|
||||||
|
})),
|
||||||
|
widget.NewLabel("Copyright (c) 2009 The Go Authors. All rights reserved."),
|
||||||
|
canvas.NewLine(colornames.Darkgreen),
|
||||||
|
|
||||||
|
container.NewHBox(widget.NewHyperlink("github.com/fyne-io/glfw-js", &url.URL{
|
||||||
|
Scheme: "https",
|
||||||
|
Host: "github.com",
|
||||||
|
Path: "fyne-io/glfw-js",
|
||||||
|
})),
|
||||||
|
container.NewHBox(widget.NewHyperlink("MIT License", &url.URL{
|
||||||
|
Scheme: "https",
|
||||||
|
Host: "github.com",
|
||||||
|
Path: "fyne-io/glfw-js/blob/master/LICENSE",
|
||||||
|
})),
|
||||||
|
widget.NewLabel("Copyright (c) 2014 Dmitri Shuralyov"),
|
||||||
|
canvas.NewLine(colornames.Darkgreen),
|
||||||
|
|
||||||
|
container.NewHBox(widget.NewHyperlink("github.com/fyne-io/image", &url.URL{
|
||||||
|
Scheme: "https",
|
||||||
|
Host: "github.com",
|
||||||
|
Path: "fyne-io/image",
|
||||||
|
})),
|
||||||
|
container.NewHBox(widget.NewHyperlink("BSD 3-Clause License", &url.URL{
|
||||||
|
Scheme: "https",
|
||||||
|
Host: "github.com",
|
||||||
|
Path: "fyne-io/image/blob/main/LICENSE",
|
||||||
|
})),
|
||||||
|
widget.NewLabel("Copyright (c) 2022, Fyne.io"),
|
||||||
|
canvas.NewLine(colornames.Darkgreen),
|
||||||
|
|
||||||
|
container.NewHBox(widget.NewHyperlink("github.com/go-gl/gl", &url.URL{
|
||||||
|
Scheme: "https",
|
||||||
|
Host: "github.com",
|
||||||
|
Path: "go-gl/gl",
|
||||||
|
})),
|
||||||
|
container.NewHBox(widget.NewHyperlink("The MIT License (MIT)", &url.URL{
|
||||||
|
Scheme: "https",
|
||||||
|
Host: "github.com",
|
||||||
|
Path: "go-gl/gl/blob/master/LICENSE",
|
||||||
|
})),
|
||||||
|
widget.NewLabel("Copyright (c) 2014 Eric Woroshow"),
|
||||||
|
canvas.NewLine(colornames.Darkgreen),
|
||||||
|
|
||||||
|
container.NewHBox(widget.NewHyperlink("github.com/go-gl/glfw/v3.3/glfw", &url.URL{
|
||||||
|
Scheme: "https",
|
||||||
|
Host: "github.com",
|
||||||
|
Path: "go-gl/glfw/",
|
||||||
|
})),
|
||||||
|
container.NewHBox(widget.NewHyperlink("BSD-3-Clause license", &url.URL{
|
||||||
|
Scheme: "https",
|
||||||
|
Host: "github.com",
|
||||||
|
Path: "go-gl/glfw/blob/master/LICENSE",
|
||||||
|
})),
|
||||||
|
widget.NewLabel("Copyright (c) 2012 The glfw3-go Authors. All rights reserved."),
|
||||||
|
canvas.NewLine(colornames.Darkgreen),
|
||||||
|
|
||||||
|
container.NewHBox(widget.NewHyperlink("github.com/go-text/render", &url.URL{
|
||||||
|
Scheme: "https",
|
||||||
|
Host: "github.com",
|
||||||
|
Path: "go-text/render",
|
||||||
|
})),
|
||||||
|
container.NewHBox(widget.NewHyperlink("Unlicense OR BSD-3-Clause", &url.URL{
|
||||||
|
Scheme: "https",
|
||||||
|
Host: "github.com",
|
||||||
|
Path: "go-text/render/blob/main/LICENSE",
|
||||||
|
})),
|
||||||
|
widget.NewLabel("Copyright 2021 The go-text authors"),
|
||||||
|
canvas.NewLine(colornames.Darkgreen),
|
||||||
|
|
||||||
|
container.NewHBox(widget.NewHyperlink("github.com/go-text/typesetting", &url.URL{
|
||||||
|
Scheme: "https",
|
||||||
|
Host: "github.com",
|
||||||
|
Path: "go-text/typesetting",
|
||||||
|
})),
|
||||||
|
container.NewHBox(widget.NewHyperlink("Unlicense OR BSD-3-Clause", &url.URL{
|
||||||
|
Scheme: "https",
|
||||||
|
Host: "github.com",
|
||||||
|
Path: "go-text/typesetting/blob/main/LICENSE",
|
||||||
|
})),
|
||||||
|
widget.NewLabel("Copyright 2021 The go-text authors"),
|
||||||
|
canvas.NewLine(colornames.Darkgreen),
|
||||||
|
|
||||||
|
container.NewHBox(widget.NewHyperlink("github.com/godbus/dbus/v5", &url.URL{
|
||||||
|
Scheme: "https",
|
||||||
|
Host: "github.com",
|
||||||
|
Path: "godbus/dbus",
|
||||||
|
})),
|
||||||
|
container.NewHBox(widget.NewHyperlink("BSD 2-Clause \"Simplified\" License", &url.URL{
|
||||||
|
Scheme: "https",
|
||||||
|
Host: "github.com",
|
||||||
|
Path: "godbus/dbus/blob/master/LICENSE",
|
||||||
|
})),
|
||||||
|
widget.NewLabel("Copyright (c) 2013, Georg Reinke (<guelfey at gmail dot com>), Google"),
|
||||||
|
canvas.NewLine(colornames.Darkgreen),
|
||||||
|
|
||||||
|
container.NewHBox(widget.NewHyperlink("github.com/gopherjs/gopherjs", &url.URL{
|
||||||
|
Scheme: "https",
|
||||||
|
Host: "github.com",
|
||||||
|
Path: "gopherjs/gopherjs",
|
||||||
|
})),
|
||||||
|
container.NewHBox(widget.NewHyperlink("BSD 2-Clause \"Simplified\" License", &url.URL{
|
||||||
|
Scheme: "https",
|
||||||
|
Host: "github.com",
|
||||||
|
Path: "gopherjs/gopherjs/blob/master/LICENSE",
|
||||||
|
})),
|
||||||
|
widget.NewLabel("Copyright (c) 2013 Richard Musiol. All rights reserved."),
|
||||||
|
canvas.NewLine(colornames.Darkgreen),
|
||||||
|
|
||||||
|
container.NewHBox(widget.NewHyperlink("github.com/jinzhu/inflection", &url.URL{
|
||||||
|
Scheme: "https",
|
||||||
|
Host: "github.com",
|
||||||
|
Path: "jinzhu/inflection",
|
||||||
|
})),
|
||||||
|
container.NewHBox(widget.NewHyperlink("The MIT License (MIT)", &url.URL{
|
||||||
|
Scheme: "https",
|
||||||
|
Host: "github.com",
|
||||||
|
Path: "jinzhu/inflection/blob/master/LICENSE",
|
||||||
|
})),
|
||||||
|
widget.NewLabel("Copyright (c) 2015 - Jinzhu"),
|
||||||
|
canvas.NewLine(colornames.Darkgreen),
|
||||||
|
|
||||||
|
container.NewHBox(widget.NewHyperlink("github.com/jsummers/gobmp", &url.URL{
|
||||||
|
Scheme: "https",
|
||||||
|
Host: "github.com",
|
||||||
|
Path: "jsummers/gobmp",
|
||||||
|
})),
|
||||||
|
container.NewHBox(widget.NewHyperlink("The MIT License (MIT)", &url.URL{
|
||||||
|
Scheme: "https",
|
||||||
|
Host: "github.com",
|
||||||
|
Path: "jsummers/gobmp/blob/master/COPYING.txt",
|
||||||
|
})),
|
||||||
|
widget.NewLabel("Copyright (c) 2012-2015 Jason Summers"),
|
||||||
|
canvas.NewLine(colornames.Darkgreen),
|
||||||
|
|
||||||
|
container.NewHBox(widget.NewHyperlink("github.com/mattn/go-sqlite3", &url.URL{
|
||||||
|
Scheme: "https",
|
||||||
|
Host: "github.com",
|
||||||
|
Path: "mattn/go-sqlite3",
|
||||||
|
})),
|
||||||
|
container.NewHBox(widget.NewHyperlink("The MIT License (MIT)", &url.URL{
|
||||||
|
Scheme: "https",
|
||||||
|
Host: "github.com",
|
||||||
|
Path: "mattn/go-sqlite3/blob/master/LICENSE",
|
||||||
|
})),
|
||||||
|
widget.NewLabel("Copyright (c) 2014 Yasuhiro Matsumoto"),
|
||||||
|
canvas.NewLine(colornames.Darkgreen),
|
||||||
|
|
||||||
|
container.NewHBox(widget.NewHyperlink("github.com/nicksnyder/go-i18n/v2", &url.URL{
|
||||||
|
Scheme: "https",
|
||||||
|
Host: "github.com",
|
||||||
|
Path: "nicksnyder/go-i18n",
|
||||||
|
})),
|
||||||
|
container.NewHBox(widget.NewHyperlink("The MIT License (MIT)", &url.URL{
|
||||||
|
Scheme: "https",
|
||||||
|
Host: "github.com",
|
||||||
|
Path: "nicksnyder/go-i18n/blob/main/LICENSE",
|
||||||
|
})),
|
||||||
|
widget.NewRichTextFromMarkdown("Copyright (c) 2014 Nick Snyder [https://github.com/nicksnyder](https://github.com/nicksnyder)"),
|
||||||
|
canvas.NewLine(colornames.Darkgreen),
|
||||||
|
|
||||||
|
container.NewHBox(widget.NewHyperlink("github.com/pmezard/go-difflib", &url.URL{
|
||||||
|
Scheme: "https",
|
||||||
|
Host: "github.com",
|
||||||
|
Path: "pmezard/go-difflib",
|
||||||
|
})),
|
||||||
|
container.NewHBox(widget.NewHyperlink("License", &url.URL{
|
||||||
|
Scheme: "https",
|
||||||
|
Host: "github.com",
|
||||||
|
Path: "pmezard/go-difflib/blob/master/LICENSE",
|
||||||
|
})),
|
||||||
|
widget.NewLabel("Copyright (c) 2013, Patrick Mezard"),
|
||||||
|
canvas.NewLine(colornames.Darkgreen),
|
||||||
|
|
||||||
|
container.NewHBox(widget.NewHyperlink("github.com/srwiley/oksvg", &url.URL{
|
||||||
|
Scheme: "https",
|
||||||
|
Host: "github.com",
|
||||||
|
Path: "srwiley/oksvg",
|
||||||
|
})),
|
||||||
|
container.NewHBox(widget.NewHyperlink("BSD 3-Clause License", &url.URL{
|
||||||
|
Scheme: "https",
|
||||||
|
Host: "github.com",
|
||||||
|
Path: "srwiley/oksvg/blob/master/LICENSE",
|
||||||
|
})),
|
||||||
|
widget.NewLabel("Copyright (c) 2018, Steven R Wiley"),
|
||||||
|
canvas.NewLine(colornames.Darkgreen),
|
||||||
|
|
||||||
|
container.NewHBox(widget.NewHyperlink("github.com/srwiley/rasterx", &url.URL{
|
||||||
|
Scheme: "https",
|
||||||
|
Host: "github.com",
|
||||||
|
Path: "srwiley/rasterx",
|
||||||
|
})),
|
||||||
|
container.NewHBox(widget.NewHyperlink("BSD 3-Clause License", &url.URL{
|
||||||
|
Scheme: "https",
|
||||||
|
Host: "github.com",
|
||||||
|
Path: "srwiley/rasterx/blob/master/LICENSE",
|
||||||
|
})),
|
||||||
|
widget.NewLabel("Copyright (c) 2018, Steven R Wiley"),
|
||||||
|
canvas.NewLine(colornames.Darkgreen),
|
||||||
|
|
||||||
|
container.NewHBox(widget.NewHyperlink("github.com/stretchr/testify", &url.URL{
|
||||||
|
Scheme: "https",
|
||||||
|
Host: "github.com",
|
||||||
|
Path: "stretchr/testify",
|
||||||
|
})),
|
||||||
|
container.NewHBox(widget.NewHyperlink("MIT License", &url.URL{
|
||||||
|
Scheme: "https",
|
||||||
|
Host: "github.com",
|
||||||
|
Path: "stretchr/testify/blob/master/LICENSE",
|
||||||
|
})),
|
||||||
|
widget.NewLabel("Copyright (c) 2012-2020 Mat Ryer, Tyler Bunnell and contributors."),
|
||||||
|
canvas.NewLine(colornames.Darkgreen),
|
||||||
|
|
||||||
|
container.NewHBox(widget.NewHyperlink("github.com/tevino/abool", &url.URL{
|
||||||
|
Scheme: "https",
|
||||||
|
Host: "github.com",
|
||||||
|
Path: "tevino/abool",
|
||||||
|
})),
|
||||||
|
container.NewHBox(widget.NewHyperlink("The MIT License (MIT)", &url.URL{
|
||||||
|
Scheme: "https",
|
||||||
|
Host: "github.com",
|
||||||
|
Path: "tevino/abool/blob/master/LICENSE",
|
||||||
|
})),
|
||||||
|
widget.NewLabel("Copyright (c) 2016 Tevin Zhang"),
|
||||||
|
canvas.NewLine(colornames.Darkgreen),
|
||||||
|
|
||||||
|
container.NewHBox(widget.NewHyperlink("github.com/yuin/goldmark", &url.URL{
|
||||||
|
Scheme: "https",
|
||||||
|
Host: "github.com",
|
||||||
|
Path: "yuin/goldmark",
|
||||||
|
})),
|
||||||
|
container.NewHBox(widget.NewHyperlink("MIT License", &url.URL{
|
||||||
|
Scheme: "https",
|
||||||
|
Host: "github.com",
|
||||||
|
Path: "yuin/goldmark/blob/master/LICENSE",
|
||||||
|
})),
|
||||||
|
widget.NewLabel("Copyright (c) 2019 Yusuke Inuzuka"),
|
||||||
|
canvas.NewLine(colornames.Darkgreen),
|
||||||
|
|
||||||
|
container.NewHBox(widget.NewHyperlink("golang.org/x/image", &url.URL{
|
||||||
|
Scheme: "https",
|
||||||
|
Host: "pkg.go.dev",
|
||||||
|
Path: "golang.org/x/image",
|
||||||
|
})),
|
||||||
|
container.NewHBox(widget.NewHyperlink("License", &url.URL{
|
||||||
|
Scheme: "https",
|
||||||
|
Host: "cs.opensource.google",
|
||||||
|
Path: "go/x/image/+/master:LICENSE",
|
||||||
|
})),
|
||||||
|
widget.NewLabel("Copyright (c) 2009 The Go Authors. All rights reserved."),
|
||||||
|
canvas.NewLine(colornames.Darkgreen),
|
||||||
|
|
||||||
|
container.NewHBox(widget.NewHyperlink("golang.org/x/mobile", &url.URL{
|
||||||
|
Scheme: "https",
|
||||||
|
Host: "pkg.go.dev",
|
||||||
|
Path: "golang.org/x/mobile",
|
||||||
|
})),
|
||||||
|
container.NewHBox(widget.NewHyperlink("License", &url.URL{
|
||||||
|
Scheme: "https",
|
||||||
|
Host: "cs.opensource.google",
|
||||||
|
Path: "go/x/mobile/+/master:LICENSE",
|
||||||
|
})),
|
||||||
|
widget.NewLabel("Copyright (c) 2009 The Go Authors. All rights reserved."),
|
||||||
|
canvas.NewLine(colornames.Darkgreen),
|
||||||
|
|
||||||
|
container.NewHBox(widget.NewHyperlink("golang.org/x/net", &url.URL{
|
||||||
|
Scheme: "https",
|
||||||
|
Host: "pkg.go.dev",
|
||||||
|
Path: "golang.org/x/net",
|
||||||
|
})),
|
||||||
|
container.NewHBox(widget.NewHyperlink("License", &url.URL{
|
||||||
|
Scheme: "https",
|
||||||
|
Host: "cs.opensource.google",
|
||||||
|
Path: "go/x/net/+/master:LICENSE",
|
||||||
|
})),
|
||||||
|
widget.NewLabel("Copyright (c) 2009 The Go Authors. All rights reserved."),
|
||||||
|
canvas.NewLine(colornames.Darkgreen),
|
||||||
|
|
||||||
|
container.NewHBox(widget.NewHyperlink("golang.org/x/sys", &url.URL{
|
||||||
|
Scheme: "https",
|
||||||
|
Host: "pkg.go.dev",
|
||||||
|
Path: "golang.org/x/sys",
|
||||||
|
})),
|
||||||
|
container.NewHBox(widget.NewHyperlink("License", &url.URL{
|
||||||
|
Scheme: "https",
|
||||||
|
Host: "cs.opensource.google",
|
||||||
|
Path: "go/x/sys/+/master:LICENSE",
|
||||||
|
})),
|
||||||
|
widget.NewLabel("Copyright (c) 2009 The Go Authors. All rights reserved."),
|
||||||
|
canvas.NewLine(colornames.Darkgreen),
|
||||||
|
|
||||||
|
container.NewHBox(widget.NewHyperlink("golang.org/x/text", &url.URL{
|
||||||
|
Scheme: "https",
|
||||||
|
Host: "pkg.go.dev",
|
||||||
|
Path: "golang.org/x/text",
|
||||||
|
})),
|
||||||
|
container.NewHBox(widget.NewHyperlink("License", &url.URL{
|
||||||
|
Scheme: "https",
|
||||||
|
Host: "cs.opensource.google",
|
||||||
|
Path: "go/x/text/+/master:LICENSE",
|
||||||
|
})),
|
||||||
|
widget.NewLabel("Copyright (c) 2009 The Go Authors. All rights reserved."),
|
||||||
|
canvas.NewLine(colornames.Darkgreen),
|
||||||
|
|
||||||
|
container.NewHBox(widget.NewHyperlink("gopkg.in/yaml.v3", &url.URL{
|
||||||
|
Scheme: "https",
|
||||||
|
Host: "github.com",
|
||||||
|
Path: "go-yaml/yaml/tree/v3.0.1",
|
||||||
|
})),
|
||||||
|
container.NewHBox(widget.NewHyperlink("Licensed under the Apache License, Version 2.0", &url.URL{
|
||||||
|
Scheme: "http",
|
||||||
|
Host: "www.apache.org",
|
||||||
|
Path: "licenses/LICENSE-2.0",
|
||||||
|
})),
|
||||||
|
widget.NewLabel("Copyright 2011-2016 Canonical Ltd."),
|
||||||
|
canvas.NewLine(colornames.Darkgreen),
|
||||||
|
|
||||||
|
container.NewHBox(widget.NewHyperlink("gorm.io/gorm", &url.URL{
|
||||||
|
Scheme: "https",
|
||||||
|
Host: "github.com",
|
||||||
|
Path: "go-gorm/gorm",
|
||||||
|
})),
|
||||||
|
container.NewHBox(widget.NewHyperlink("The MIT License (MIT)", &url.URL{
|
||||||
|
Scheme: "https",
|
||||||
|
Host: "github.com",
|
||||||
|
Path: "go-gorm/gorm/blob/master/LICENSE",
|
||||||
|
})),
|
||||||
|
widget.NewLabel("Copyright (c) 2013-NOW Jinzhu <wosmvp@gmail.com>"),
|
||||||
|
canvas.NewLine(colornames.Darkgreen),
|
||||||
|
|
||||||
|
container.NewHBox(widget.NewHyperlink("honnef.co/go/js/dom", &url.URL{
|
||||||
|
Scheme: "https",
|
||||||
|
Host: "github.com",
|
||||||
|
Path: "dominikh/go-js-dom",
|
||||||
|
})),
|
||||||
|
container.NewHBox(widget.NewHyperlink("The MIT License (MIT)", &url.URL{
|
||||||
|
Scheme: "https",
|
||||||
|
Host: "github.com",
|
||||||
|
Path: "dominikh/go-js-dom/blob/master/LICENSE",
|
||||||
|
})),
|
||||||
|
widget.NewLabel("Copyright (c) 2014 Dominik Honnef"),
|
||||||
|
canvas.NewLine(colornames.Darkgreen),
|
||||||
|
|
||||||
|
container.NewHBox(widget.NewHyperlink("github.com/golang/go", &url.URL{
|
||||||
|
Scheme: "https",
|
||||||
|
Host: "github.com",
|
||||||
|
Path: "golang/go",
|
||||||
|
})),
|
||||||
|
container.NewHBox(widget.NewHyperlink("BSD 3-Clause \"New\" or \"Revised\" License", &url.URL{
|
||||||
|
Scheme: "https",
|
||||||
|
Host: "github.com",
|
||||||
|
Path: "golang/go/blob/master/LICENSE",
|
||||||
|
})),
|
||||||
|
widget.NewLabel("Copyright (c) 2009 The Go Authors. All rights reserved."),
|
||||||
|
canvas.NewLine(colornames.Darkgreen),
|
||||||
|
|
||||||
|
container.NewHBox(widget.NewHyperlink("github.com/golang/go", &url.URL{
|
||||||
|
Scheme: "https",
|
||||||
|
Host: "github.com",
|
||||||
|
Path: "golang/go",
|
||||||
|
})),
|
||||||
|
container.NewHBox(widget.NewHyperlink("BSD 3-Clause \"New\" or \"Revised\" License", &url.URL{
|
||||||
|
Scheme: "https",
|
||||||
|
Host: "github.com",
|
||||||
|
Path: "golang/go/blob/master/LICENSE",
|
||||||
|
})),
|
||||||
|
widget.NewLabel("Copyright (c) 2009 The Go Authors. All rights reserved."),
|
||||||
|
canvas.NewLine(colornames.Darkgreen),
|
||||||
|
)
|
||||||
|
}
|
@@ -1,7 +1,7 @@
|
|||||||
package migration
|
package migration
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"ffmpegGui/setting"
|
"git.kor-elf.net/kor-elf/gui-for-ffmpeg/src/setting"
|
||||||
"gorm.io/gorm"
|
"gorm.io/gorm"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user