mkvremux

package module
v0.0.0-...-f2638c0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 28, 2022 License: MIT Imports: 7 Imported by: 0

README

mkv-remux

Documentation

Index

Constants

This section is empty.

Variables

View Source
var MkvExec string
View Source
var MkvExecPath string
View Source
var Options []string

Functions

func ImageMimeType

func ImageMimeType(ext string) string

Types

type Attachment

type Attachment struct {
	// contains filtered or unexported fields
}

type Chapter

type Chapter struct {
	// contains filtered or unexported fields
}

func (*Chapter) SetChapterCharset

func (c *Chapter) SetChapterCharset(s string)

func (*Chapter) SetChapterLanguage

func (c *Chapter) SetChapterLanguage(s Language)

type ChapterMode

type ChapterMode struct {
	// contains filtered or unexported fields
}

type Date

type Date string

format: YYYY-MM-DD hh:mm:ss

type File

type File struct {
	// contains filtered or unexported fields
}

func (*File) NewTrack

func (f *File) NewTrack(trackID uint, language Language) *Track

func (*File) NoAttachments

func (f *File) NoAttachments()

func (*File) NoAudio

func (f *File) NoAudio()

func (*File) NoChapters

func (f *File) NoChapters()

func (*File) NoSubtitle

func (f *File) NoSubtitle()

func (*File) NoTags

func (f *File) NoTags()

func (*File) NoVideo

func (f *File) NoVideo()

func (*File) SetAudioTracks

func (f *File) SetAudioTracks(track ...string)

func (*File) SetButtonTracks

func (f *File) SetButtonTracks(track ...string)

func (*File) SetSubtitleTracks

func (f *File) SetSubtitleTracks(track ...string)

func (*File) SetVideoTracks

func (f *File) SetVideoTracks(track ...string)

type Global

type Global struct {
	// contains filtered or unexported fields
}

func (*Global) AddChapterFile

func (g *Global) AddChapterFile(s string) *Chapter

func (*Global) AddCoverArt

func (g *Global) AddCoverArt(s string)

func (*Global) AddFont

func (g *Global) AddFont(s string) *Attachment

func (*Global) AddFontFolder

func (g *Global) AddFontFolder(d string)

func (*Global) SetExecPath

func (g *Global) SetExecPath(s string)

func (*Global) SetNextUID

func (g *Global) SetNextUID(s Hex)

Merge: Link the last file to the given SID.

Propedit: Next segment's unique ID: A unique ID to identify the next chained segment (Hex 32 bits).

func (*Global) SetPreviousUID

func (g *Global) SetPreviousUID(s Hex)

Merge: Link the first file to the given SID.

Propedit: Previous segment's unique ID: A unique ID to identify the previous chained segment (Hex 32 bits).

func (*Global) SetTitle

func (g *Global) SetTitle(s string)

Merge: Title for this destination file.

Propedit: The title for the whole movie.

type Hex

type Hex string

type Language

type Language string
const (
	Undetermined Language = "und"
	Japanese     Language = "jpn"
	English      Language = "eng"
	Thai         Language = "tha"
)

type Merge

type Merge struct {
	*Global
	// contains filtered or unexported fields
}

func NewMerge

func NewMerge() *Merge

func (*Merge) AddFile

func (m *Merge) AddFile(s string) *File

func (*Merge) Run

func (m *Merge) Run()

func (*Merge) SetOutput

func (m *Merge) SetOutput(output string)

func (*Merge) SetTrackOrder

func (m *Merge) SetTrackOrder(s ...string)

ex: "0:1", "0:2"

func (*Merge) ShowCommand

func (m *Merge) ShowCommand()

type NoType

type NoType string

type Property

type Property struct {
	*Global
	// contains filtered or unexported fields
}

func NewPropedit

func NewPropedit() *Property

func (*Property) SetDate

func (p *Property) SetDate(date Date)

Date: The date the file was created. ex: YYYY-MM-DD hh:mm:ss

func (*Property) SetMuxingApp

func (p *Property) SetMuxingApp(s string)

Multiplexing application: The name of the application or library used for multiplexing the file.

func (*Property) SetNextFilename

func (p *Property) SetNextFilename(s string)

Next filename: An escaped filename corresponding to the next segment.

func (*Property) SetPreviousFilename

func (p *Property) SetPreviousFilename(s string)

Previous filename: An escaped filename corresponding the next segment.

func (*Property) SetSegmentFilename

func (p *Property) SetSegmentFilename(s string)

Segment filename: The file name for this segment.

func (*Property) SetSegmentUID

func (p *Property) SetSegmentUID(s Hex)

Segment unique ID: A randomly generated unique ID to identify the current segment between many others (Hex 32 bits).

func (*Property) SetWritingApp

func (p *Property) SetWritingApp(s string)

Writing application: The name of the application or library used for writing the file.

type Track

type Track struct {
	// contains filtered or unexported fields
}

func (*Track) Default

func (t *Track) Default()

func (*Track) SetTrackName

func (t *Track) SetTrackName(name string)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL